/* ===========================================================================
   Parents & Groups (.gp-*). The register is the entity record's and TMC Entities': a dark band or header with a few
   figures, tabs with counts, dense tables, a persistent navigator. Neutral surfaces, gold as chrome, one gold figure
   per dark band, status colours only for STATE (health), company colours only where a company is named WITH its badge.
   Every colour is a theme-aware token except the dark bands, whose ground (--shell-800) is the same in both themes.
   Nothing rests at opacity 0; every motion is a transform or colour change that is off under prefers-reduced-motion.
   =========================================================================== */
.gp-root { display: block; }
.gp-view[hidden], .gp-pane[hidden] { display: none; }
.gp-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.gp-dim { color: var(--text-dim); font-size: var(--fs-xs); }
.gp-pad { padding: .6rem 1rem; margin: 0; }
.gp-r { text-align: right; justify-self: end; }
.gp-root b { font-weight: var(--fw-bold); }

/* ---- buttons ---- */
.gp-btn {
  display: inline-flex; align-items: center; gap: .4rem; padding: .38rem .8rem; border-radius: var(--r-sm, 8px);
  border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: var(--fs-sm); font-weight: var(--fw-medium);
  line-height: 1.25; text-decoration: none; cursor: pointer; transition: background .16s var(--ease), border-color .16s var(--ease), transform .16s var(--ease);
}
.gp-btn:hover { background: var(--surface-2); border-color: var(--gold-500); color: var(--text); }
.gp-btn:focus-visible, .gp-tab:focus-visible, .gp-chip:focus-visible, .gp-stat:focus-visible, .gp-pg:focus-visible, .gp-sortb:focus-visible, .gp-hrow:focus-visible, .gp-lnk:focus-visible, .gp-iconb:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
.gp-btn[aria-disabled="true"], .gp-pg[aria-disabled="true"] { cursor: not-allowed; opacity: 1; color: var(--text-dim); background: var(--inset); border-color: var(--border); }
.gp-btn-gold { background: var(--gold-400); border-color: var(--gold-500); color: var(--accent-on); }
.gp-btn-gold:hover { background: var(--gold-300); color: var(--accent-on); border-color: var(--gold-500); }
.gp-btn-gold[aria-disabled="true"] { background: var(--inset); color: var(--text-dim); }
.gp-btn-s { padding: .22rem .6rem; font-size: var(--fs-xs); }
.gp-btn-d { background: rgba(255, 255, 255, .07); border-color: var(--shell-line); color: #fff; }
.gp-btn-d:hover { background: rgba(255, 255, 255, .13); color: #fff; border-color: var(--gold-400); }
.gp-skip { position: absolute; left: -999px; top: 0; z-index: 5; }
.gp-skip:focus { left: 8px; top: 8px; }
.gp-lnk { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; font: inherit; }
.gp-iconb { width: 2rem; height: 2rem; display: inline-grid; place-items: center; border: 1px solid var(--border); border-radius: var(--r-sm, 8px); background: var(--surface); color: var(--text-soft); cursor: pointer; }
.gp-iconb:hover { border-color: var(--gold-500); color: var(--text); }

/* ---- the list's dark band ---- */
.gp-band {
  position: relative; overflow: hidden; border-radius: 14px; background: var(--shell-800); border: 1px solid var(--shell-line); color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), var(--lift-2, 0 6px 20px rgba(0, 0, 0, .16));
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(18rem, 1fr); gap: 1.6rem; padding: 1.35rem 1.6rem 1.25rem; margin-bottom: .9rem;
}
.gp-band::before { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0; background-image: var(--grain); background-size: 160px 160px; }
.gp-band::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; z-index: 0; background: var(--gold-500); opacity: .7; }
.gp-band > * { position: relative; z-index: 1; min-width: 0; }
.gp-eyebrow { margin: 0 0 .45rem; font-size: var(--fs-xs); letter-spacing: var(--ls-caps); text-transform: uppercase; color: #fff; font-weight: var(--fw-bold); }
.gp-fig { display: flex; align-items: baseline; gap: .7rem; flex-wrap: wrap; }
.gp-fig b { font-family: var(--font-display, Georgia, serif); font-size: var(--fs-5xl); line-height: 1.02; color: var(--gold-300); font-weight: var(--fw-bold); letter-spacing: var(--ls-tight); }
.gp-fig span { color: rgba(255, 255, 255, .86); font-size: var(--fs-md); }
.gp-band-s { margin: .55rem 0 0; color: rgba(255, 255, 255, .86); font-size: var(--fs-md); line-height: var(--lh-snug); max-width: 46rem; }
.gp-band-s b { color: #fff; }
.gp-band-f { margin: .7rem 0 0; color: rgba(255, 255, 255, .68); font-size: var(--fs-xs); line-height: var(--lh-snug); max-width: 46rem; }
.gp-band-r { display: flex; flex-direction: column; gap: .8rem; }
.gp-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.gp-stat {
  display: flex; flex-direction: column; align-items: flex-start; gap: .1rem; padding: .6rem .75rem; border-radius: 10px; cursor: pointer; text-align: left;
  background: rgba(255, 255, 255, .06); border: 1px solid var(--shell-line); color: #fff; transition: background .16s var(--ease), border-color .16s var(--ease), transform .16s var(--ease);
}
.gp-stat:hover { background: rgba(255, 255, 255, .12); border-color: var(--gold-400); transform: translateY(-1px); }
.gp-stat b { font-size: var(--fs-2xl); line-height: 1.1; color: #fff; }
.gp-stat span { font-size: var(--fs-xs); color: rgba(255, 255, 255, .74); }
.gp-big { display: flex; flex-direction: column; gap: 1px; }
.gp-big-h { font-size: var(--fs-xs); letter-spacing: var(--ls-caps); text-transform: uppercase; color: rgba(255, 255, 255, .7); margin-bottom: .25rem; }
.gp-big-r { display: flex; justify-content: space-between; gap: 1rem; padding: .28rem .1rem; color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: var(--fs-sm); }
.gp-big-r:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.gp-big-r span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gp-big-r b { color: rgba(255, 255, 255, .9); font-variant-numeric: tabular-nums; }

/* ---- tabs ---- */
.gp-tabs { display: flex; gap: .15rem; align-items: flex-end; padding: 0 .25rem; margin-bottom: -1px; position: relative; z-index: 1; }
.gp-tab {
  display: inline-flex; align-items: center; gap: .45rem; padding: .55rem .95rem .6rem; background: transparent; border: 0; border-bottom: 2px solid transparent;
  color: var(--text-soft); font-size: var(--fs-md); font-weight: var(--fw-medium); cursor: pointer; transition: color .16s var(--ease), border-color .16s var(--ease);
}
.gp-tab:hover { color: var(--text); }
.gp-tab.is-on { color: var(--text); border-bottom-color: var(--gold-500); }
.gp-tab-n { min-width: 1.5rem; padding: .02rem .4rem; border-radius: 999px; background: var(--inset); color: var(--text-soft); font-size: var(--fs-xs); text-align: center; font-variant-numeric: tabular-nums; }
.gp-tab.is-on .gp-tab-n { background: var(--accent-weak); color: var(--accent-ink); }

/* ---- cards ---- */
.gp-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); min-width: 0; }
.gp-pane { padding: 0 0 .5rem; }
.gp-ch { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; padding: .85rem 1.05rem .55rem; flex-wrap: wrap; }
.gp-ch h3 { margin: 0; font-size: var(--fs-lg); font-weight: var(--fw-bold); color: var(--text); }
.gp-ch-s { font-size: var(--fs-xs); color: var(--text-soft); }
.gp-note { margin: .6rem 1.05rem .9rem; font-size: var(--fs-xs); color: var(--text-soft); line-height: var(--lh-snug); max-width: 62rem; }
.gp-foot { padding: .4rem 1.05rem .9rem; }

/* ---- the toolbar ---- */
.gp-bar { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; padding: .9rem 1.05rem .5rem; }
.gp-bar-r { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.gp-search { width: min(34rem, 100%); flex: 1 1 22rem; }
.gp-search > input.form-control { font-size: var(--fs-md); padding-top: .45rem; padding-bottom: .45rem; }
.gp-filters { display: flex; align-items: flex-end; gap: .55rem .9rem; flex-wrap: wrap; padding: .15rem 1.05rem .7rem; border-bottom: 1px solid var(--border-soft); }
.gp-fg { display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; }
.gp-fl { font-size: var(--fs-xs); color: var(--text-soft); text-transform: uppercase; letter-spacing: var(--ls-caps); margin-right: .15rem; }
.gp-fg-flags { flex-basis: 100%; }
.gp-chip {
  display: inline-flex; align-items: center; gap: .35rem; padding: .22rem .6rem; border-radius: 999px; border: 1px solid var(--border); background: var(--surface);
  color: var(--text); font-size: var(--fs-sm); cursor: pointer; transition: background .16s var(--ease), border-color .16s var(--ease);
}
.gp-chip i { font-style: normal; color: var(--text-soft); font-size: var(--fs-xs); font-variant-numeric: tabular-nums; }
.gp-chip:hover { border-color: var(--gold-500); background: var(--surface-2); }
.gp-chip.is-on { background: var(--accent-weak); border-color: var(--gold-500); color: var(--accent-ink); }
.gp-chip.is-on i { color: var(--accent-ink); }
.gp-chip .bbadge { transform: scale(.9); }
.gp-sel { display: flex; flex-direction: column; gap: .12rem; font-size: var(--fs-xs); color: var(--text-soft); }
.gp-sel select { font-size: var(--fs-sm); padding: .26rem 1.6rem .26rem .5rem; min-width: 7.5rem; border-radius: var(--r-sm, 8px); }
.gp-sel-sort select { min-width: 11rem; }
.gp-check { display: inline-flex; align-items: center; gap: .4rem; font-size: var(--fs-sm); color: var(--text); padding-bottom: .3rem; }
.gp-meta { padding: .6rem 1.05rem .3rem; font-size: var(--fs-sm); color: var(--text-soft); }
#gpChips .lk-af { padding: .55rem 1.05rem 0; }
.gp-exp { padding: .3rem .75rem; }

/* ---- the table ---- */
.gp-table { display: block; }
.gp-row {
  display: grid; align-items: center; column-gap: .9rem; padding: .62rem 1.05rem; border-bottom: 1px solid var(--border-soft); cursor: pointer;
  grid-template-columns: minmax(15rem, 2.6fr) 6rem 8.6rem minmax(9.5rem, 1.35fr) 8rem 11rem 5.6rem;
  transition: background .16s var(--ease);
}
.gp-lrow { grid-template-columns: minmax(14rem, 2.2fr) 8.6rem 8.4rem minmax(10rem, 1.8fr) 7rem 5.6rem; cursor: default; }
.gp-row:not(.gp-rowh):hover { background: var(--surface-2); }
.gp-row.lk-cur, .gp-row.is-here { background: var(--accent-weak); box-shadow: inset 3px 0 0 var(--gold-500); }
.gp-rowh { cursor: default; position: sticky; top: calc(var(--hdr-h, 62px)); z-index: 2; background: var(--inset); padding-top: .5rem; padding-bottom: .5rem; border-bottom: 1px solid var(--border); }
.gp-th { font-size: var(--fs-xs); letter-spacing: var(--ls-caps); text-transform: uppercase; color: var(--text-soft); font-weight: var(--fw-bold); }
.gp-c-num, .gp-c-money, .gp-c-act, .gp-c-reach { font-variant-numeric: tabular-nums; }
.gp-c-num { display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
.gp-c-num b { font-size: var(--fs-lg); }
.gp-c-act { color: var(--text-soft); font-size: var(--fs-sm); }
.gp-c-br { display: flex; flex-wrap: wrap; gap: 3px; align-items: center; }
.gp-bb { display: inline-flex; }
.gp-c-name { display: flex; align-items: center; gap: .65rem; min-width: 0; }
.gp-nm { display: flex; flex-direction: column; gap: .12rem; min-width: 0; }
.gp-name { font-weight: var(--fw-bold); font-size: var(--fs-md); color: var(--text); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gp-name:hover { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 2px; }
.gp-name:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
.gp-sub { display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; font-size: var(--fs-xs); color: var(--text-soft); }
.gp-match { font-size: var(--fs-xs); color: var(--text-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gp-ini { flex: 0 0 auto; display: inline-grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 9px; background: var(--inset); color: var(--text-soft); font-size: var(--fs-sm); font-weight: var(--fw-bold); letter-spacing: .02em; border: 1px solid var(--border); }
.gp-ini-l { width: 3.2rem; height: 3.2rem; border-radius: 13px; font-size: var(--fs-xl); background: rgba(255, 255, 255, .08); border-color: var(--shell-line); color: #fff; }
.gp-tag { display: inline-flex; align-items: center; gap: .2rem; padding: .02rem .42rem; border-radius: 999px; background: var(--inset); color: var(--text-soft); font-size: var(--fs-xs); border: 1px solid var(--border); }
.gp-tag.is-warn { background: var(--warn-weak); color: var(--warn-ink); border-color: var(--warn-line); }
.gp-tag.is-info { background: var(--info-weak); color: var(--info-ink); border-color: var(--info-line); }
.gp-mn { display: flex; flex-direction: column; align-items: flex-start; gap: .05rem; }
.gp-mn b { font-size: var(--fs-md); }
.gp-c-money { display: flex; align-items: center; gap: .6rem; }
.gp-spark { margin-left: .4rem; line-height: 0; }
.gp-gr { font-size: var(--fs-xs); font-weight: var(--fw-bold); color: var(--text-soft); }
.gp-gr.is-up { color: var(--ok-ink); }
.gp-gr.is-down { color: var(--bad-ink); }
.gp-gr.is-na { color: var(--text-dim); font-weight: var(--fw-normal); }
.gp-reach { display: flex; align-items: center; gap: .5rem; }
.gp-reach b { font-size: var(--fs-sm); min-width: 2.6rem; }
.gp-meter { flex: 1 1 auto; height: 8px; border-radius: 99px; background: var(--inset); overflow: hidden; min-width: 2.2rem; box-shadow: inset 0 0 0 1px var(--border); }
.gp-meter i { display: block; height: 100%; background: var(--gold-500); border-radius: 99px; }
.gp-c-health { display: flex; flex-direction: column; gap: .25rem; }
.gp-hbar { display: flex; gap: 2px; height: 9px; border-radius: 99px; overflow: hidden; width: 100%; background: var(--inset); }
.gp-hs { display: block; min-width: 3px; }
.gp-hs.is-ok, .gp-hd.is-ok { background: var(--ok); }
.gp-hs.is-warn, .gp-hd.is-warn { background: var(--warn); }
.gp-hs.is-soft, .gp-hd.is-soft { background: var(--text-dim); }
.gp-hs.is-bad, .gp-hd.is-bad { background: var(--bad); }
.gp-hs.is-dim, .gp-hd.is-dim { background: var(--border); }
.gp-hd { display: inline-block; width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto; }
.gp-hl { font-size: var(--fs-xs); color: var(--text-soft); display: inline-flex; align-items: center; gap: .35rem; }
.gp-hl.is-slipping { color: var(--warn-ink); font-weight: var(--fw-bold); }
.gp-hl.is-healthy { color: var(--ok-ink); }
.gp-hl.is-quiet { color: var(--bad-ink); }
.gp-skel { padding: .5rem 1.05rem; display: grid; gap: .6rem; }
.gp-skel-r { display: block; height: 2.4rem; border-radius: 8px; background: var(--inset); background-image: linear-gradient(90deg, transparent, var(--skel-hi, rgba(255, 255, 255, .55)), transparent); background-size: 200% 100%; animation: gpShim 1.4s linear infinite; }
@keyframes gpShim { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.is-busy { opacity: .72; transition: opacity .16s var(--ease); }
.gp-pager { display: flex; justify-content: center; align-items: center; gap: .8rem; padding: .8rem 1rem; }
.gp-pg { width: 2.1rem; height: 2.1rem; display: inline-grid; place-items: center; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text); cursor: pointer; }
.gp-pg:hover:not([aria-disabled="true"]) { border-color: var(--gold-500); }
.gp-pgn { font-size: var(--fs-sm); color: var(--text-soft); }
.gp-sortb { background: none; border: 0; padding: 0; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; font-weight: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: .25rem; }
.gp-sortb.is-on { color: var(--accent-ink); }
.gp-bm { display: inline-flex; align-items: center; gap: .25rem; margin-right: .5rem; font-size: var(--fs-xs); }
.gp-c-bm { display: flex; flex-wrap: wrap; gap: .15rem 0; }
.gp-c-st { font-size: var(--fs-sm); }

/* ---- possible duplicates ---- */
.gp-dups-h { padding: 1rem 1.2rem .4rem; }
.gp-dups-h h3 { margin: 0 0 .2rem; font-size: var(--fs-xl); }
.gp-dups-h p { margin: 0; color: var(--text-soft); font-size: var(--fs-sm); max-width: 52rem; }
.gp-dup { margin: .8rem 1.05rem; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); overflow: hidden; }
.gp-dup > header { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; padding: .7rem 1rem; background: var(--inset); border-bottom: 1px solid var(--border); }
.gp-dup > header > div:first-child { flex: 1 1 18rem; }
.gp-dup-t { font-size: var(--fs-sm); color: var(--text-soft); }
.gp-dup-k { display: block; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: var(--ls-caps); color: var(--text-soft); }
.gp-dup ul { list-style: none; margin: 0; padding: 0; }
.gp-dup li { display: grid; grid-template-columns: minmax(14rem, 1.2fr) minmax(12rem, 2fr) auto; gap: 1rem; align-items: center; padding: .65rem 1rem; border-bottom: 1px solid var(--border-soft); }
.gp-dup li:last-child { border-bottom: 0; }
.gp-dup-e { margin: 0; font-size: var(--fs-sm); color: var(--text-soft); }
.gp-dup-b { display: flex; gap: .4rem; }
.gp-dg { display: flex; flex-direction: column; text-decoration: none; color: var(--text); }
.gp-dg b { font-size: var(--fs-md); }
.gp-dg span { font-size: var(--fs-xs); color: var(--text-soft); }
.gp-dg:hover b { color: var(--accent-ink); text-decoration: underline; }
.gp-hist { margin: 1.2rem 1.05rem .8rem; }
.gp-hist h3 { font-size: var(--fs-lg); margin: 0 0 .4rem; }
.gp-hist ul { list-style: none; margin: 0; padding: 0; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.gp-hist li { display: flex; align-items: center; gap: .8rem; padding: .5rem .85rem; border-bottom: 1px solid var(--border-soft); font-size: var(--fs-sm); }
.gp-hist li:last-child { border-bottom: 0; }
.gp-hist-s { flex: 0 0 5.2rem; font-weight: var(--fw-bold); color: var(--ok-ink); }
.gp-hist li.is-rejected .gp-hist-s, .gp-hist li.is-undone .gp-hist-s { color: var(--text-soft); }
.gp-hist-t { flex: 1 1 auto; min-width: 0; }
.gp-hist-t em { display: block; font-style: normal; font-size: var(--fs-xs); color: var(--text-soft); }
.gp-dec-dlg { max-width: 36rem; }
.gp-dec-g { display: flex; flex-direction: column; gap: .5rem; align-items: flex-start; padding: .7rem .9rem; border-radius: 10px; background: var(--inset); }
.gp-dec-e { font-size: var(--fs-sm); color: var(--text-soft); margin: .7rem 0; }
.gp-dec-keep { border: 0; padding: 0; margin: 0 0 .7rem; display: flex; flex-direction: column; gap: .25rem; font-size: var(--fs-sm); }
.gp-dec-keep legend { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: var(--ls-caps); color: var(--text-soft); float: none; margin-bottom: .2rem; width: auto; }
.gp-dec-l { font-size: var(--fs-sm); font-weight: var(--fw-medium); margin-bottom: .25rem; }
.gp-dec-l em { font-weight: var(--fw-normal); color: var(--text-soft); }
.gp-dec-n { font-size: var(--fs-xs); color: var(--text-soft); margin: .6rem 0 0; }

/* ---- one group: the dark header ---- */
.gp-hero {
  position: relative; overflow: hidden; border-radius: 14px; background: var(--shell-800); border: 1px solid var(--shell-line); color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), var(--lift-2, 0 6px 20px rgba(0, 0, 0, .16)); padding: 1rem 1.4rem 1.2rem; margin-bottom: 1rem;
}
.gp-hero::before { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0; background-image: var(--grain); background-size: 160px 160px; }
.gp-hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; z-index: 0; background: var(--gold-500); opacity: .7; }
.gp-hero > * { position: relative; z-index: 1; }
.gp-hero-t { display: flex; justify-content: space-between; align-items: center; gap: .7rem; flex-wrap: wrap; margin-bottom: .6rem; }
.gp-back { color: rgba(255, 255, 255, .86); text-decoration: none; font-size: var(--fs-sm); display: inline-flex; gap: .4rem; align-items: center; }
.gp-back:hover { color: #fff; text-decoration: underline; }
.gp-hero-act { display: flex; gap: .45rem; flex-wrap: wrap; }
.gp-hero-id { display: flex; gap: 1rem; align-items: flex-start; }
.gp-hero-n { margin: 0; font-family: var(--font-display, Georgia, serif); font-size: var(--fs-3xl); line-height: 1.1; color: #fff; font-weight: var(--fw-bold); }
.gp-hero-m { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; align-items: center; margin-top: .45rem; font-size: var(--fs-sm); color: rgba(255, 255, 255, .84); }
.gp-hero-m > span { display: inline-flex; align-items: center; gap: .35rem; }
.gp-hero-m .bi { opacity: .85; }
.gp-hero-b { gap: 3px; }
.gp-hero .gp-hl { padding: .08rem .55rem; border-radius: 999px; background: rgba(255, 255, 255, .1); color: #fff; border: 1px solid var(--shell-line); font-weight: var(--fw-bold); }
.gp-hero-fold, .gp-hero-warn { margin: .55rem 0 0; font-size: var(--fs-sm); color: rgba(255, 255, 255, .88); }
.gp-hero-fold .bi, .gp-hero-warn .bi { margin-right: .3rem; }
.gp-hero-warn a { color: #fff; text-decoration: underline; }
.gp-hero-fold .gp-lnk { color: #fff; }
.gp-ks { display: grid; grid-template-columns: repeat(auto-fit, minmax(11.5rem, 1fr)); gap: .6rem; margin-top: 1rem; }
.gp-k { padding: .7rem .9rem; border-radius: 11px; background: rgba(255, 255, 255, .06); border: 1px solid var(--shell-line); display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.gp-k-l { font-size: var(--fs-xs); color: rgba(255, 255, 255, .8); display: inline-flex; gap: .4rem; align-items: center; }
.gp-k-v { font-size: var(--fs-3xl); line-height: 1.1; color: #fff; font-family: var(--font-display, Georgia, serif); font-variant-numeric: tabular-nums; }
.gp-k-v small { font-size: var(--fs-sm); font-family: inherit; color: rgba(255, 255, 255, .8); font-weight: var(--fw-normal); }
.gp-k.is-gold .gp-k-v { color: var(--gold-300); }
.gp-k-s { font-size: var(--fs-xs); color: rgba(255, 255, 255, .78); line-height: var(--lh-snug); }
.gp-hero .gp-gr { color: #fff; }
.gp-hero .gp-gr.is-up { color: #9FE0B5; }
.gp-hero .gp-gr.is-down { color: #FFB4A8; }

/* ---- one group: navigator and panes ---- */
.gp-rec { display: grid; grid-template-columns: 19rem minmax(0, 1fr); gap: 1rem; align-items: start; }
.gp-nav { position: sticky; top: calc(var(--hdr-h, 62px) + .8rem); max-height: calc(100vh - var(--hdr-h, 62px) - 1.6rem); display: flex; flex-direction: column; min-height: 0; }
.gp-nav-in { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); padding: .8rem .75rem .75rem; display: flex; flex-direction: column; min-height: 0; max-height: calc(100vh - var(--hdr-h, 62px) - 1.6rem); }
.gp-nav-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .5rem; }
.gp-nav-h h3 { margin: 0; font-size: var(--fs-lg); }
.gp-nav-h span { color: var(--text-soft); font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
.gp-nav-s { width: 100%; }
.gp-nav-k { margin: .35rem 0 .2rem; font-size: var(--fs-xs); color: var(--text-dim); }
.gp-nav-k kbd { background: var(--inset); color: var(--text-soft); border: 1px solid var(--border); border-radius: 4px; padding: 0 .3rem; margin-right: .2rem; font-size: var(--fs-2xs); }
.gp-nav-l { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: var(--ls-caps); color: var(--text-soft); margin: .55rem 0 .2rem; }
.gp-nav-list { overflow-y: auto; min-height: 0; flex: 1 1 auto; margin: 0 -.25rem; padding: 0 .25rem; }
.gp-nr { display: flex; align-items: center; gap: .5rem; padding: .42rem .45rem; border-radius: 8px; text-decoration: none; color: var(--text); border: 1px solid transparent; }
.gp-nr:hover { background: var(--surface-2); border-color: var(--border); color: var(--text); }
.gp-nr:focus-visible { outline: 2px solid var(--accent); outline-offset: -1px; }
.gp-nr.is-here, .gp-nr.lk-cur { background: var(--accent-weak); border-color: var(--gold-500); }
.gp-nr-b { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.gp-nr-b b { font-size: var(--fs-sm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gp-nr-b i { font-style: normal; font-size: var(--fs-xs); color: var(--text-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gp-nr-m { display: inline-flex; gap: 2px; flex: 0 0 auto; }
.gp-nr-m .bbadge { transform: scale(.82); transform-origin: right center; margin-left: -3px; }
.gp-nr-p { background: var(--inset); margin-bottom: 2px; }
.gp-nav-more { margin-top: .5rem; justify-content: center; }
.gp-main { min-width: 0; }
.gp-rtabs { padding: 0 .4rem; border-bottom: 1px solid var(--border); margin-bottom: .8rem; }
.gp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; align-items: stretch; }
.gp-span2 { grid-column: 1 / -1; }
.gp-viz { padding: 0 .6rem .8rem; min-height: 8rem; }
.gp-viz-l { min-height: 15rem; }

/* by company */
.gp-co { display: block; }
.gp-co-r { display: grid; grid-template-columns: minmax(13rem, 2fr) minmax(8rem, 1fr) minmax(8rem, 1fr) minmax(9rem, 1fr) 6rem; gap: .8rem; align-items: center; padding: .6rem 1.05rem; border-top: 1px solid var(--border-soft); font-variant-numeric: tabular-nums; }
.gp-co-h { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: var(--ls-caps); color: var(--text-soft); background: var(--inset); border-top: 1px solid var(--border); }
.gp-co-n { display: flex; align-items: center; gap: .55rem; }
.gp-co-n span { display: flex; flex-direction: column; }
.gp-co-n i { font-style: normal; font-size: var(--fs-xs); color: var(--text-soft); }
.gp-co small { color: var(--text-soft); }

/* health block */
.gp-hb { padding: .3rem 1.05rem .6rem; }
.gp-hb .gp-hbar { height: 14px; }
.gp-hlist { list-style: none; margin: 0; padding: 0 .6rem .2rem; }
.gp-hrow { width: 100%; display: grid; grid-template-columns: 1rem 1fr auto 3.8rem; align-items: center; gap: .5rem; padding: .36rem .5rem; background: transparent; border: 0; border-radius: 8px; text-align: left; font-size: var(--fs-sm); color: var(--text); cursor: pointer; }
.gp-hrow:hover:not([aria-disabled="true"]) { background: var(--surface-2); }
.gp-hrow[aria-disabled="true"] { cursor: default; color: var(--text-dim); }
.gp-hrow em { font-style: normal; color: var(--text-soft); font-size: var(--fs-xs); text-align: right; font-variant-numeric: tabular-nums; }
.gp-hrow b { font-variant-numeric: tabular-nums; }

/* movers, parents, checks */
.gp-mvs { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding: 0 1.05rem .9rem; }
.gp-mvs > div, .gp-pcols > div { min-width: 0; }
.gp-mvs h4, .gp-pcols h4 { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: var(--ls-caps); color: var(--text-soft); margin: .2rem 0 .3rem; }
.gp-mv { list-style: none; margin: 0; padding: 0; }
.gp-card > .gp-mv { padding: 0 1.05rem .8rem; }
.gp-mv a { display: flex; justify-content: space-between; gap: .6rem; align-items: center; padding: .4rem .3rem; border-bottom: 1px solid var(--border-soft); text-decoration: none; color: var(--text); }
.gp-mv a:hover { background: var(--surface-2); }
.gp-mv span { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.gp-mv b { font-size: var(--fs-sm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gp-mv i { font-style: normal; font-size: var(--fs-xs); color: var(--text-soft); }
.gp-mv em { font-style: normal; font-size: var(--fs-sm); font-weight: var(--fw-bold); font-variant-numeric: tabular-nums; white-space: nowrap; }
.gp-mv.is-up em { color: var(--ok-ink); }
.gp-mv.is-down em { color: var(--bad-ink); }
.gp-pcols { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 1.4rem; padding: 0 1.05rem 1rem; }
.gp-pl, .gp-fl2, .gp-dq { list-style: none; margin: 0; padding: 0; }
.gp-pl a { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: .6rem; align-items: center; padding: .45rem .3rem; border-bottom: 1px solid var(--border-soft); text-decoration: none; color: var(--text); }
.gp-pl a:hover { background: var(--surface-2); }
.gp-pl-n { display: flex; flex-direction: column; min-width: 0; }
.gp-pl-n b { font-size: var(--fs-sm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gp-pl-n i { font-style: normal; font-size: var(--fs-xs); color: var(--text-soft); }
.gp-pl em { font-style: normal; font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
.gp-pl-b { display: inline-flex; gap: 2px; }
.gp-fl2 li { display: flex; justify-content: space-between; align-items: center; gap: .7rem; padding: .45rem 0; border-bottom: 1px solid var(--border-soft); font-size: var(--fs-sm); }
.gp-fl2 i { font-style: normal; color: var(--text-soft); font-size: var(--fs-xs); display: block; }
.gp-dq li { display: flex; gap: .55rem; align-items: flex-start; padding: .4rem 0; font-size: var(--fs-sm); border-bottom: 1px solid var(--border-soft); }
.gp-dq li.is-warn .bi { color: var(--warn-ink); }
.gp-dq li .bi { margin-top: .12rem; color: var(--text-soft); }

/* opportunities */
.gp-opp-hl { padding: 1rem 1.2rem; border-radius: 12px; background: var(--accent-weak); border: 1px solid var(--gold-500); font-size: var(--fs-lg); line-height: var(--lh-snug); margin-bottom: .9rem; color: var(--text); }
.gp-opp-g { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; margin-top: .9rem; align-items: start; }
.gp-opp { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: .9rem 1.05rem; box-shadow: var(--shadow); }
.gp-opp header { display: flex; align-items: center; gap: .4rem; margin-bottom: .4rem; }
.gp-opp h3 { margin: 0 0 0 .4rem; font-size: var(--fs-md); }
.gp-opp-n { margin: 0 0 .4rem; font-size: var(--fs-md); line-height: var(--lh-snug); }
.gp-opp-f { margin: 0 0 .5rem; padding-left: 1.1rem; font-size: var(--fs-sm); color: var(--text-soft); }
.gp-opp-s { list-style: none; margin: 0 0 .6rem; padding: 0; border-top: 1px solid var(--border-soft); }
.gp-opp-s li { border-bottom: 1px solid var(--border-soft); display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.gp-opp-s a { flex: 1 1 auto; display: flex; justify-content: space-between; gap: .6rem; padding: .35rem .2rem; text-decoration: none; color: var(--text); min-width: 0; }
.gp-opp-s a:hover { background: var(--surface-2); }
.gp-opp-s a span { display: flex; flex-direction: column; min-width: 0; }
.gp-opp-s b { font-size: var(--fs-sm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gp-opp-s i { font-style: normal; font-size: var(--fs-xs); color: var(--text-soft); }
.gp-opp-s em { font-style: normal; font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
.gp-opps > .gp-card { margin-bottom: .9rem; }

@media (max-width: 1250px) {
  .gp-row { grid-template-columns: minmax(13rem, 2.4fr) 5.2rem 7.6rem minmax(8.5rem, 1.3fr) 6.6rem 9.5rem 5rem; column-gap: .7rem; }
  .gp-spark { display: none; }
  .gp-rec { grid-template-columns: 17rem minmax(0, 1fr); }
}
@media (max-width: 1100px) {
  .gp-band { grid-template-columns: 1fr; }
  .gp-rec { grid-template-columns: 1fr; }
  .gp-nav { position: static; max-height: none; }
  .gp-nav-in { max-height: 22rem; }
  .gp-grid, .gp-opp-g, .gp-mvs, .gp-pcols { grid-template-columns: 1fr; }
  .gp-dup li { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .gp-stat, .gp-btn, .gp-row, .gp-tab, .gp-chip { transition: none; }
  .gp-stat:hover { transform: none; }
  .gp-skel-r { animation: none; }
}

/* ---- the way from an entity record to its group page (the two links js/entities.js carries) ----
   They live here because entities.css is not this page's file; the classes are the entity record's own (.dt-*). */
.dt-side-p { flex-wrap: wrap; }
.dt-side-gl { display: inline-flex; align-items: center; gap: .3rem; margin-top: .3rem; flex-basis: 100%; font-size: var(--fs-xs); font-weight: var(--fw-bold); color: var(--accent-ink); text-decoration: none; }
.dt-side-gl:hover { text-decoration: underline; text-underline-offset: 2px; }
a.dt-parent { color: inherit; text-decoration: none; }
a.dt-parent:hover { text-decoration: underline; text-underline-offset: 2px; }

.gp-dtiers { padding: .5rem 1.2rem .2rem; }
.gp-hist h3 small { font-size: var(--fs-xs); color: var(--text-soft); font-weight: var(--fw-normal); margin-left: .5rem; }

.gp-band-l { align-self: center; }
.gp-hero-c { display: inline-flex; }
.gp-dup-a { min-width: 0; }
.gp-nav-p { margin-bottom: .2rem; }
.gp-locs { overflow: hidden; }
.gp-ltable { display: block; }
