/* The partner workspace follows the light Clubs workspace and its dark sign-in screen. */
:root {
  color-scheme: light;
  --paper: #f5f3f9;
  --surface: #fff;
  --surface-low: #faf8fc;
  --ink: #302b41;
  --secondary: #60576e;
  --muted: #71677c;
  --line: #e4ddec;
  --line-strong: #cdbfd9;
  --plum: #724e8e;
  --plum-deep: #513367;
  --lilac: #f0e9f6;
  --nav: #121b2c;
  --nav-ink: #f1eafb;
  --good: #216751;
  --good-bg: #e5f4ed;
  --warn: #7d5418;
  --warn-bg: #fcf1da;
  --bad: #a13652;
  --bad-bg: #f9e8ed;
  --radius: 20px;
  --shadow: 0 3px 8px #2b193503, 0 12px 30px #30203907;
  --gutter: clamp(20px, 3.2vw, 52px);
  --font: Manrope, "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.5 var(--font); }
:where(button, input, select, textarea) { font: inherit; color: inherit; }
:where(button, a) { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
:where(button, input, select, textarea, a):focus-visible, .table-wrap:focus-visible {
  outline: 3px solid #8e64ae;
  outline-offset: 3px;
}
button:disabled, [aria-disabled="true"] { opacity: .58; cursor: default; }
:where(h1, h2, h3, p, dl, dd, figure) { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
h1 { font-size: clamp(2rem, 3.1vw, 3.1rem); font-weight: 630; line-height: 1.12; letter-spacing: -.05em; }
h2 { font-size: clamp(1.3rem, 2vw, 1.75rem); font-weight: 630; line-height: 1.24; letter-spacing: -.04em; }
h3 { font-size: 1.075rem; font-weight: 650; letter-spacing: -.018em; }
a { color: var(--plum-deep); text-underline-offset: .2em; }
img, svg { max-width: 100%; }
[hidden] { display: none !important; }
.sr-only, .visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: .7rem; left: .7rem; z-index: 20; padding: .7rem 1rem;
  color: var(--ink); background: white; border-radius: 9px; transform: translateY(-160%);
}
.skip-link:focus { transform: none; }
.muted, .hint, .caption { color: var(--muted); }
.hint, .caption { font-size: .875rem; line-height: 1.55; }
.eyebrow {
  display: block; color: var(--plum); font-size: .77rem; font-weight: 720;
  letter-spacing: .075em; text-transform: uppercase;
}

.shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }
.sidebar {
  position: sticky; inset-block-start: 0; z-index: 3; display: flex; flex-direction: column;
  gap: 30px; align-self: start; min-height: 100vh; height: 100dvh; overflow-y: auto;
  padding: 30px 19px 22px; background: linear-gradient(150deg, #211f36 0%, #131b2d 56%, #101a2b 100%);
  color: var(--nav-ink); scrollbar-width: thin; scrollbar-color: #514861 transparent;
}
.brand {
  display: flex; align-items: center; gap: .75rem; min-width: 0; padding: 4px 11px;
  color: inherit; text-decoration: none; font-size: 1.52rem; font-weight: 700;
  letter-spacing: -.055em; line-height: 1.15;
}
.brand :is(img, svg), .brand-mark { flex: 0 0 39px; width: 39px; height: 39px; object-fit: contain; }
.brand small, .sidebar .account small {
  display: block; margin-top: .22rem; color: #b6a9c8; font-size: .77rem; letter-spacing: .02em;
  font-weight: 500; line-height: 1.4;
}
.sidebar nav { display: grid; gap: 5px; }
.sidebar nav :is(a, button) {
  position: relative; display: flex; align-items: center; gap: .85rem; width: 100%; min-height: 48px;
  border: 1px solid transparent; border-radius: 11px; padding: .7rem .85rem;
  text-align: left; text-decoration: none; background: transparent; color: #c5bcd0;
  font-size: .935rem; font-weight: 550; line-height: 1.35;
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}
.sidebar nav :is(a, button):hover { background: #e3d8fc0c; color: #fbf8ff; }
.sidebar nav :is([aria-current="page"], [aria-selected="true"], .active) {
  color: #f1e4ff; border-color: #c2a8e434; background: linear-gradient(100deg, #81669650, #75619626);
}
.sidebar nav :is(.icon, svg) { width: 20px; height: 20px; flex: 0 0 20px; color: #b395cf; }
.sidebar :is(a, button):focus-visible, .auth-art :focus-visible { outline-color: #d3b5f2; }
.account {
  display: flex; align-items: center; gap: 11px; margin-top: auto; padding: 18px 8px 0;
  border-top: 1px solid #e6d9fc22; min-width: 0; overflow-wrap: anywhere;
}
.avatar {
  display: grid; place-items: center; flex: 0 0 auto; width: 38px; height: 38px;
  border: 1px solid #d5bde740; border-radius: 11px; background: #b595cf1f; color: #e3c9f7;
  font-weight: 650;
}
.main { width: 100%; max-width: 1560px; min-width: 0; margin-inline: auto; padding: clamp(26px, 4vw, 58px) var(--gutter) 50px; }
.main > * + * { margin-top: 22px; }
.page-head, .panel-head, .toolbar, .actions, .row, .tabs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
}
.page-head, .panel-head, .toolbar { justify-content: space-between; }
.page-head { align-items: flex-end; gap: 18px; margin-bottom: 28px; }
.page-head > *, .panel-head > *, .row > * { min-width: 0; }
.page-head .eyebrow { margin-bottom: 9px; }
.page-head p, .panel-head p { margin-top: 7px; color: var(--secondary); max-width: 68ch; }
.panel-head { margin-bottom: 20px; }
.actions { gap: 8px; }

.hero {
  position: relative; isolation: isolate; overflow: hidden; min-height: 176px;
  border: 1px solid #463856; border-radius: var(--radius); padding: clamp(24px, 3vw, 42px);
  color: #f9f4ff; background: radial-gradient(ellipse at 86% 0, #6d578a8c, transparent 53%),
    linear-gradient(110deg, #211f35, #343047 65%, #323749);
}
.hero::before, .auth-art::before {
  content: ""; z-index: -1; position: absolute; pointer-events: none; border-radius: 50%;
  background: repeating-radial-gradient(ellipse at center, transparent 0 20px, #d9c5ed43 20.5px 21.3px, transparent 22px 39px);
  mask-image: radial-gradient(ellipse, #000 10%, #000b 57%, transparent 74%);
}
.hero::before { width: 59%; height: 235%; right: -9%; top: -63%; transform: rotate(-35deg) scaleX(.95); }
.hero > * { position: relative; }
.hero .eyebrow, .auth-art .eyebrow { color: #d3b7ea; }
.hero h2 { font-size: clamp(1.6rem, 3vw, 2.45rem); letter-spacing: -.047em; }
.hero p { color: #dbcfe6; max-width: min(57ch, 72%); margin-top: .5rem; }
.hero .actions { margin-top: 1.3rem; }
.hero .primary { color: #2b2034; background: #e6d5f3; border-color: #e6d5f3; box-shadow: none; }
.hero .primary:hover { background: #f4e8fb; }
.hero .secondary { color: #fbf5ff; background: #ffffff10; border-color: #dfc7ec5e; }
.panel, .metric {
  min-width: 0; padding: clamp(18px, 2.2vw, 30px); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 176px), 1fr)); gap: 14px; }
.metric { display: grid; align-content: start; gap: 5px; padding: 19px 22px 18px; }
.metric > small, .metric-label { color: var(--secondary); font-size: .87rem; font-weight: 600; }
.metric > strong, .metric-value {
  color: var(--ink); font-size: clamp(1.7rem, 3vw, 2.65rem); line-height: 1.22;
  font-weight: 580; letter-spacing: -.055em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere;
}
.metric > span { color: var(--muted); line-height: 1.4; font-size: .85rem; }
.metric [data-tone="ok"] { color: var(--good); }
.metric [data-tone="bad"] { color: var(--bad); }
.metric [data-tone="warn"] { color: var(--warn); }

.btn, .primary, .secondary, .danger, .icon-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .52rem;
  padding: .66rem 1.05rem; min-height: 44px; border: 1px solid var(--line-strong);
  border-radius: 11px; background: var(--surface); color: var(--ink); text-align: center;
  text-decoration: none; font-size: .925rem; font-weight: 630; line-height: 1.32;
  transition: background .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.btn:hover, .secondary:hover, .icon-btn:hover { border-color: #b9a2c9; background: var(--surface-low); }
.primary { color: #fff; background: linear-gradient(115deg, #71508a, #806098); border-color: #74518c; box-shadow: 0 3px 9px #65497724; }
.primary:hover { background: #664781; box-shadow: 0 4px 14px #65497732; }
.danger { color: var(--bad); background: var(--bad-bg); border-color: #ecc1ce; }
.danger:hover { background: #f6dbe4; }
.icon-btn { width: 44px; padding: 0; flex: 0 0 auto; }
.btn svg, .primary svg, .secondary svg, .icon-btn svg { width: 18px; height: 18px; }
.tabs { gap: 4px; padding: 4px; width: fit-content; max-width: 100%; border-radius: 11px; background: #eee9f2; }
.tabs :is(button, a) {
  min-height: 38px; border: 1px solid transparent; border-radius: 8px; padding: 6px 12px;
  background: none; color: var(--secondary); text-decoration: none; font-size: .89rem; font-weight: 560;
}
.tabs :is([aria-pressed="true"], [aria-selected="true"], [aria-current="page"], .active) {
  background: white; color: var(--plum-deep); border-color: var(--line); box-shadow: 0 2px 6px #3520440b;
}
.fields, form { min-width: 0; }
.fields { display: grid; gap: 17px; }
.fields label, .field { display: grid; align-content: start; gap: 6px; min-width: 0; font-size: .91rem; font-weight: 600; }
input:not([type="checkbox"], [type="radio"], [type="hidden"], [type="range"], [type="color"]), select, textarea {
  max-width: 100%; width: 100%; min-height: 46px; border: 1px solid var(--line-strong); border-radius: 10px;
  background: #fff; color: var(--ink); font-size: 1rem; line-height: 1.4; padding: .65rem .82rem;
}
input::placeholder, textarea::placeholder { color: #84788e; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--bad); }
textarea { resize: vertical; min-height: 90px; }
select { padding-inline-end: 1.85rem; }
input[type="checkbox"], input[type="radio"] { width: 1.1rem; height: 1.1rem; accent-color: var(--plum); }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.toolbar { gap: 12px; margin: 12px 0 18px; }
.toolbar :is(input, select) { width: auto; max-width: 100%; }
.toolbar input[type="search"] { flex: 1 1 18rem; }
.status {
  display: inline-flex; align-items: center; gap: 6px; width: fit-content; max-width: 100%;
  padding: 5px 10px; border-radius: 999px; background: #eeeaf2; color: var(--secondary);
  font-size: .8125rem; font-weight: 620; line-height: 1.4;
}
.status[data-tone="ok"], .status.ok { background: var(--good-bg); color: var(--good); }
.status[data-tone="warn"], .status.warn { background: var(--warn-bg); color: var(--warn); }
.status[data-tone="bad"], .status.bad { background: var(--bad-bg); color: var(--bad); }
.table-wrap { min-width: 0; max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; }
table { width: 100%; border-collapse: collapse; font-size: .925rem; text-align: left; }
th, td { padding: .95rem .8rem; vertical-align: middle; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-size: .81rem; font-weight: 620; white-space: nowrap; }
td { font-variant-numeric: tabular-nums; }
td :is(small, .muted) { display: block; font-size: .82rem; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--surface-low); }
.table-wrap th:first-child, .table-wrap td:first-child { padding-left: 0; }
.chart {
  width: 100%; min-width: 0; padding: 14px 0 0; color: var(--plum);
  font-size: .875rem; font-variant-numeric: tabular-nums;
}
.chart svg { display: block; width: 100%; height: auto; }
.chart-bars {
  display: flex; align-items: end; gap: clamp(3px, .7vw, 10px); height: 190px; min-width: 0;
  padding: 10px 0 0; background: repeating-linear-gradient(to top, var(--line) 0 1px, transparent 1px 42px);
  background-clip: content-box;
}
.chart-day { position: relative; display: flex; flex: 1 1 0; flex-direction: column; justify-content: end; align-items: center; min-width: 0; height: 100%; }
.chart-day .bar, .chart-bars > .bar {
  max-width: 32px; width: 73%; min-height: 0; border-radius: 5px 5px 1px 1px;
  background: linear-gradient(to top, #9472ac, #c0a4d5);
}
.chart-day :is(.bar:hover, .bar:focus-visible), .chart-bars > .bar:hover { background: var(--plum); }
.chart-day small { font-size: .76rem; height: 23px; line-height: 23px; color: var(--muted); white-space: nowrap; }
.chart-key { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 13px; font-size: .82rem; color: var(--secondary); }
.notice, .empty {
  padding: 16px 18px; border: 1px solid var(--line); border-radius: 13px;
  background: var(--surface-low); color: var(--secondary); overflow-wrap: anywhere;
}
.empty { display: grid; gap: 7px; place-content: center; min-height: 146px; text-align: center; }
.empty strong { color: var(--ink); }
.notice[data-tone="ok"] { background: var(--good-bg); color: var(--good); }
.notice[data-tone="warn"] { background: var(--warn-bg); color: var(--warn); }
.notice[data-tone="bad"], .notice[role="alert"] { background: var(--bad-bg); color: var(--bad); }
.help[data-tip] {
  position: relative; display: inline-grid; place-items: center; vertical-align: middle;
  width: 28px; height: 28px; padding: 0; border: 1px solid var(--line); border-radius: 50%;
  background: var(--surface-low); color: var(--plum); font-size: .85rem; line-height: 1; cursor: help;
}
.help[data-tip]::after {
  content: attr(data-tip); position: absolute; z-index: 4; left: 50%; bottom: calc(100% + 7px);
  width: max-content; max-width: min(230px, calc(100vw - 54px)); padding: 10px 13px; border-radius: 10px;
  box-shadow: 0 5px 20px #21172d33; background: #30293c; color: white; font: 500 .825rem/1.5 var(--font);
  text-align: left; white-space: normal; opacity: 0; visibility: hidden; transform: translate(-50%, 3px);
  pointer-events: none; transition: opacity .13s ease, transform .13s ease;
}
.help[data-tip]:is(:focus, [aria-expanded="true"])::after { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
@media (hover: hover) {
  .help[data-tip]:hover::after { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
}

.auth-shell {
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(320px, .88fr); gap: clamp(22px, 5vw, 86px);
  overflow: clip;
  align-items: center; min-height: 100vh; min-height: 100dvh; padding: clamp(24px, 6vw, 100px);
  color-scheme: dark; color: #f2eaf9; background:
    radial-gradient(ellipse at 21% 56%, #29374a55, transparent 55%),
    radial-gradient(ellipse at 87% 2%, #412c542e, transparent 45%), #0b101d;
}
.auth-art {
  position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: flex-start;
  justify-content: center; gap: 14px; min-height: 330px; padding-block-end: 100px;
}
.auth-art h1 { max-width: 16ch; font-size: clamp(2.6rem, 5vw, 5.2rem); line-height: 1.03; font-weight: 530; }
.auth-art h1 em { font-style: normal; color: #d6bef0; }
.auth-art p { line-height: 1.65; color: #bcbbd0; max-width: 48ch; }
.auth-art::before {
  width: 108%; height: 75%; left: -5%; bottom: -27%; transform: rotate(-22deg);
  background-color: #7b668c05;
}
.auth-art .brand { margin: 0 0 24px; padding: 0; }
.auth-card {
  width: 100%; max-width: 490px; justify-self: center; min-width: 0; padding: clamp(24px, 3vw, 42px);
  border: 1px solid #bba8cd40; border-radius: 22px; color: var(--ink); color-scheme: light;
  background: #faf8fc; box-shadow: 0 25px 85px #05061155;
}
.auth-card h1, .auth-card h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); margin-bottom: 9px; }
.auth-card p { color: var(--secondary); }
.auth-card :is(form, .fields) { display: grid; gap: 17px; margin-top: 22px; }
.auth-card form .fields { margin-top: 0; }
.auth-card .primary { min-height: 48px; }
.auth-card .notice { margin-top: 16px; }

@media (min-width: 1550px) {
  .shell { grid-template-columns: 266px minmax(0, 1fr); }
  .sidebar { padding-inline: 23px; }
}
@media (max-width: 1100px) {
  .shell { grid-template-columns: 214px minmax(0, 1fr); }
  .sidebar { padding-inline: 13px; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .shell { display: block; }
  .sidebar {
    position: relative; height: auto; min-height: 0; overflow: visible; gap: 12px;
    padding: 14px var(--gutter) 12px;
  }
  .sidebar .brand { padding: 0; font-size: 1.3rem; }
  .brand :is(img, svg), .brand-mark { flex-basis: 31px; width: 31px; height: 31px; }
  .sidebar nav { display: flex; gap: 5px; overflow-x: auto; padding-block: 4px; scrollbar-width: thin; }
  .sidebar nav :is(a, button) { width: auto; min-height: 44px; flex: 0 0 auto; padding-inline: .72rem; white-space: nowrap; }
  .sidebar nav :is(svg, .icon) { width: 17px; height: 17px; flex-basis: 17px; }
  .sidebar .account { margin-top: 0; padding: 0; border: 0; align-self: flex-start; }
  .main { padding-top: 26px; }
  .auth-shell { gap: 28px; padding: 28px; }
}
@media (max-width: 650px) {
  :root { --gutter: 16px; --radius: 16px; }
  .main > * + * { margin-top: 15px; }
  .page-head { align-items: start; margin-bottom: 18px; }
  .page-head .actions { width: 100%; }
  .grid-2 { grid-template-columns: minmax(0, 1fr); gap: 15px; }
  .metrics { gap: 9px; }
  .metric { padding: 15px 13px; }
  .metric > small, .metric-label { font-size: .84rem; }
  .hero { min-height: 150px; padding: 21px; }
  .hero p { max-width: 100%; }
  .hero::before { opacity: .42; right: -25%; }
  .chart-bars { height: 154px; }
  .help[data-tip] { width: 34px; height: 34px; }
  .auth-shell { grid-template-columns: minmax(0, 1fr); align-content: center; gap: 16px; padding: 22px var(--gutter); }
  .auth-art { min-height: 0; width: 100%; max-width: 490px; justify-self: center; gap: 8px; padding: 0; }
  .auth-art h1 { font-size: 2rem; }
  .auth-art .brand { margin-bottom: 7px; }
  .auth-art::before { inset: -35px 0 auto auto; width: 170px; height: 140px; opacity: .5; }
  .auth-card { padding: 24px 19px; }
}
@media (max-width: 360px) {
  :root { --gutter: 12px; }
  .actions .btn, .actions .primary, .actions .secondary { flex: 1 1 auto; }
  .toolbar > :is(input, select) { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0s !important; animation-duration: 0s !important; }
}
@media (forced-colors: active) {
  .status, .bar, .primary, .panel, .metric, .tabs [aria-pressed="true"] { border: 1px solid CanvasText; }
}

.stat-view { display: grid; min-width: 0; gap: 18px; }
.stat-period { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.stat-period > div:first-child { display: grid; gap: 2px; }
.stat-period strong { font-size: 1.01rem; font-weight: 630; }
.stat-period small { color: var(--muted); font-size: .82rem; }
.stat-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat-kpi { position: relative; }
.stat-kpi > small { padding-right: 20px; }
.stat-kpi > .stat-delta { justify-self: start; color: var(--secondary); font-size: .8rem; }
.stat-kpi > .stat-delta[data-direction="up"] { color: var(--good); }
.stat-kpi > .stat-delta[data-direction="down"] { color: #825773; }
.stat-definition { position: absolute; top: 10px; right: 9px; }
.stat-definition[open] { z-index: 3; }
.stat-definition summary {
  display: grid; place-items: center; width: 30px; height: 30px; cursor: help; list-style: none;
  border-radius: 50%; color: var(--plum); font-size: .85rem;
}
.stat-definition summary::-webkit-details-marker { display: none; }
.stat-definition summary:is(:hover, :focus-visible) { background: var(--lilac); }
.stat-definition summary:focus-visible { outline: 2px solid var(--plum); }
.stat-definition p {
  position: absolute; right: 0; z-index: 3; width: min(230px, calc(100vw - 52px)); padding: 11px 13px;
  border-radius: 9px; color: white; background: #382e43; box-shadow: var(--shadow);
  font-size: .84rem; line-height: 1.5;
}
@media (hover: hover) {
  .stat-definition:not([open]):hover::details-content { content-visibility: visible; }
  .stat-definition:hover { z-index: 3; }
}
.stat-chart { --chart-ink: #795393; --chart-fill: #a886be35; }
.stat-chart[data-series="connected"] { --chart-ink: #30745e; --chart-fill: #66a88c36; }
.stat-chart[data-series="amount"] { --chart-ink: #876234; --chart-fill: #b28a5930; }
.stat-plot {
  display: grid; grid-template-columns: minmax(32px, max-content) minmax(0, 1fr); gap: 10px;
  min-width: 0; padding-block-start: 8px; align-items: stretch;
}
.stat-scale {
  display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end;
  color: var(--muted); font-size: .76rem; font-variant-numeric: tabular-nums;
}
.stat-stage {
  position: relative; height: clamp(144px, 17vw, 224px); min-width: 0;
  border-block-end: 1px solid var(--line); background: repeating-linear-gradient(to top, var(--line) 0 1px, transparent 1px 25%);
}
.stat-stage svg { display: block; width: 100%; height: 100%; overflow: visible; }
.stat-area { fill: var(--chart-fill); }
.stat-line { stroke: var(--chart-ink); stroke-width: 2.7px; stroke-linejoin: round; stroke-linecap: round; }
.stat-marker { position: absolute; top: 0; bottom: 0; width: 0; border-left: 1px dashed #b6a4c3; }
.stat-marker::after {
  content: ""; position: absolute; top: var(--level); left: -1px; width: 10px; height: 10px;
  transform: translate(-50%, -50%); border: 2px solid white; border-radius: 50%; background: var(--chart-ink);
  box-shadow: 0 0 0 1px var(--chart-ink);
}
.stat-stage input.stat-scrubber {
  position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; padding: 0;
  cursor: crosshair;
}
.stat-stage:focus-within { outline: 2px solid var(--plum); outline-offset: 3px; }
.stat-dates { display: flex; justify-content: space-between; gap: 8px; margin: 6px 0 0 42px; color: var(--muted); font-size: .77rem; }
.stat-reading { margin-top: 15px; color: var(--secondary); font-size: .9rem; font-variant-numeric: tabular-nums; }
.stat-detail .panel h2 { font-size: 1.25rem; }
.stat-conversion-body { display: flex; gap: clamp(16px, 3vw, 30px); align-items: center; margin-top: 22px; }
.stat-ring {
  display: grid; place-items: center; flex: 0 0 auto; width: clamp(82px, 9.5vw, 130px); aspect-ratio: 1;
  border-radius: 50%; background: conic-gradient(from -90deg, #82639b var(--filled), #f0ebf4 0);
}
.stat-ring strong {
  display: grid; place-items: center; width: 78%; height: 78%; border-radius: 50%;
  background: white; font-size: clamp(1.05rem, 2vw, 1.65rem); font-weight: 650; letter-spacing: -.05em;
}
.stat-conversion-copy { min-width: 0; overflow-wrap: anywhere; }
.stat-conversion-copy strong { font-size: 1.22rem; letter-spacing: -.03em; }
.stat-conversion-copy p { margin-top: 3px; font-size: .9rem; }
.stat-popular .caption { margin-top: 4px; }
.stat-ranking { display: grid; gap: 13px; padding: 0; margin: 18px 0 0; list-style: none; }
.stat-rank-label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; color: var(--secondary); font-size: .9rem; }
.stat-rank-label span { overflow-wrap: anywhere; min-width: 0; }
.stat-rank-label b { color: var(--ink); font-variant-numeric: tabular-nums; }
.stat-track { height: 5px; margin-top: 6px; border-radius: 4px; background: #f0ebf4; }
.stat-track span { display: block; height: 100%; border-radius: inherit; background: #a388b5; }
.stat-blank { color: var(--muted); margin-top: 16px; }
@media (max-width: 650px) {
  .stat-view { gap: 13px; }
  .stat-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-metrics .stat-kpi:last-child { grid-column: 1 / -1; }
  .stat-kpi:nth-child(odd) .stat-definition p { right: -60px; }
  .stat-kpi:last-child .stat-definition p { right: 0; }
  .stat-chart .tabs { gap: 1px; }
  .stat-chart .tabs button { padding-inline: .5rem; }
  .stat-reading { font-size: .85rem; }
}
