@keyframes stHeroRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes stProfileIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes stPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, .55); } 50% { box-shadow: 0 0 0 4px rgba(16, 185, 129, 0); } }

:root {
  --surface: var(--bg-2);          /* chart surface: the player palette was validated against it */
  --grid: rgba(167, 139, 250, .09);
  --axis: rgba(167, 139, 250, .26);
  --track: rgba(167, 139, 250, .07);
}

/* ---------- hero ---------- */
.st-hero {
  text-align: center;
  padding: clamp(28px, 5vw, 52px) var(--gutter) clamp(18px, 3vw, 28px);
  background:
    radial-gradient(ellipse 70% 120% at 50% 0%, rgba(167, 139, 250, .1), transparent 70%),
    linear-gradient(#0d0f33, var(--bg));
}
.st-hero > div { animation: stHeroRise .7s ease-out both; }
.st-hero h1 { font-size: clamp(28px, 4.6vw, 44px); font-weight: 900; letter-spacing: -.02em; line-height: 1.1; }
.st-hero p { margin: 14px auto 0; max-width: 620px; font-size: 14px; line-height: 1.65; color: var(--muted); }
.st-hero strong { color: var(--ink-2); }

/* ---------- sticky player bar ---------- */
.st-bar {
  position: sticky; top: 0; z-index: 9;
  background: rgba(6, 7, 26, .9); backdrop-filter: blur(10px);
  border-top: 1px solid rgba(167, 139, 250, .12); border-bottom: 1px solid var(--line);
}
.st-bar-inner { display: flex; align-items: center; gap: 10px 18px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.st-pick { display: flex; align-items: center; gap: 10px; }
.st-pick .k { font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.st-pick .select { min-width: 170px; }
.st-legend { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px 4px 5px; min-height: 32px;
  font: 700 12px/1 var(--sans); color: var(--ink-2); background: var(--bg-2);
  border: 1px solid var(--line); cursor: pointer; transition: opacity .3s, border-color .15s, background .15s;
}
.chip:hover { border-color: var(--line-2); color: var(--ink); }
.chip[aria-pressed="true"] { border-color: var(--accent); background: rgba(167, 139, 250, .12); color: var(--ink); }
.chip-head { position: relative; display: inline-flex; }
.chip-head .live {
  position: absolute; right: -3px; bottom: -3px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--ok); border: 2px solid var(--bg-2); animation: stPulse 2s ease-in-out infinite;
}
.st-updated { margin-left: auto; font: 11.5px var(--mono); color: var(--faint); }
@media (max-width: 640px) {
  .st-pick { width: 100%; }
  .st-pick .select { flex: 1; }
  .st-legend { order: 3; width: 100%; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
  .st-legend::-webkit-scrollbar { display: none; }
  .chip { flex-shrink: 0; }
  .st-updated { display: none; }
}

/* ---------- common ---------- */
.head { image-rendering: pixelated; flex-shrink: 0; background: var(--bg-3); }
.ic { width: 16px; height: 16px; flex-shrink: 0; }
.sw { display: inline-block; flex-shrink: 0; width: 10px; height: 10px; border-radius: 2px; }
.sw-line { width: 14px; height: 2px; border-radius: 1px; }
.dim { opacity: .2; }
[data-p] { transition: opacity .3s ease; }
.st-error { margin: 20px 0 0; padding: 12px 16px; border: 1px solid rgba(248, 113, 113, .35); background: rgba(248, 113, 113, .08); color: #fecaca; font-size: 13px; }
.empty { margin: 4px 0; font-size: 13px; color: var(--faint); }

.st-section { padding-top: 44px; }
.st-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.st-head .seg button { padding: 8px 13px; min-height: 34px; font-size: 10.5px; }
.st-section > .lede { margin-bottom: 18px; }
.st-section > .st-head + .st-kpis, .st-section > .st-head + .st-grid-2, .st-section > .st-head + .st-grid-3 { margin-top: 18px; }

.st-card {
  background: var(--surface); border: 1px solid var(--line); padding: 18px 20px 20px; min-width: 0;
}
.st-card + .st-card, .st-card + .st-grid-2 { margin-top: 16px; }
.st-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; margin-bottom: 10px; }
.st-card-title { font-size: 14px; font-weight: 800; color: var(--ink); margin: 0 0 4px; }
.st-card-head .st-card-title { margin: 0; }
.st-card-sub { margin: 0 0 14px; font-size: 12px; color: var(--faint); line-height: 1.5; }
.st-seg-sm { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.st-seg-sm::-webkit-scrollbar { display: none; }
.st-seg-sm button { padding: 7px 11px; min-height: 30px; font-size: 10px; letter-spacing: .07em; white-space: nowrap; flex-shrink: 0; }
.st-grid-2 { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 16px; }
.st-grid-2.st-grid-wide { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
.st-grid-3 { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 16px; }
.st-grid-2 > .st-card + .st-card, .st-grid-3 > .st-card + .st-card { margin-top: 0; }
@media (max-width: 1020px) { .st-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .st-grid-2, .st-grid-2.st-grid-wide { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 680px) { .st-grid-3 { grid-template-columns: minmax(0, 1fr); } .st-card { padding: 16px 14px 18px; } }

/* legend keys inside cards */
.st-keys { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.key {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 0; border: 0; background: none; cursor: pointer;
  font: 600 11.5px var(--sans); color: var(--muted);
}
.key:hover span { color: var(--ink); }

/* ---------- KPI tiles ---------- */
/* Hairline cells drawn per tile, so a short last row leaves no empty filled cells. */
.st-kpis, .pf-kpis, .st-mini, .odds, .boss-row { display: grid; gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.st-kpis > *, .pf-kpis > *, .st-mini > *, .odds > *, .boss-row > * { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.st-mini, .odds, .boss-row, .st-mini > *, .odds > *, .boss-row > * { border-color: var(--line-3); }
.st-kpis { grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); }
.kpi { background: var(--surface); padding: 14px 16px 15px; min-width: 0; }
.kpi-l { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.kpi-v { margin-top: 6px; font-size: 26px; font-weight: 800; color: var(--ink); letter-spacing: -.01em; line-height: 1.15; }
.kpi-sub { margin-top: 4px; font-size: 11.5px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi-p { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.kpi-p b { color: var(--ink); font-weight: 700; }

/* ---------- leaderboards ---------- */
.st-boards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.board { background: var(--surface); border: 1px solid var(--line); padding: 14px 16px 12px; min-width: 0; }
.board-h { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.board-h h3 { font-size: 13px; font-weight: 800; }
.board-tag { margin-left: auto; font: 10px var(--mono); color: var(--faint); border: 1px solid var(--line); padding: 1px 6px; }
.board-rows { display: flex; flex-direction: column; gap: 2px; }
.brow {
  display: grid; grid-template-columns: minmax(108px, 144px) minmax(0, 1fr) auto; align-items: center; gap: 10px;
  padding: 4px 0; cursor: pointer;
}
.brow:hover .nm, .brow:focus-visible .nm { color: var(--ink); }
.brow-n { display: flex; align-items: center; gap: 7px; min-width: 0; }
.rk { width: 12px; font: 10.5px var(--mono); color: var(--faint); text-align: right; flex-shrink: 0; }
.nm { font-size: 12.5px; font-weight: 700; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brow-t { height: 12px; display: flex; }
.brow-t.full { background: var(--track); }
.brow-b { height: 100%; border-radius: 0 4px 4px 0; transition: width .5s cubic-bezier(.2, .8, .25, 1); }
.brow-v { font: 600 12px var(--mono); color: var(--ink); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.brow.on .nm { color: var(--ink); }

/* ---------- SVG charts ---------- */
.st-chart { position: relative; width: 100%; min-height: 120px; }
.st-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.st-chart text { font-family: var(--mono); }
.st-chart .ax { font-size: 10.5px; fill: var(--faint); font-variant-numeric: tabular-nums; }
.st-chart .lbl { font-size: 11px; font-weight: 700; fill: var(--ink); }
.st-chart .end { font: 700 11.5px var(--sans); fill: var(--ink-2); }
.st-chart .grid { stroke: var(--grid); stroke-width: 1; shape-rendering: crispEdges; }
.st-chart .base { stroke: var(--axis); stroke-width: 1; shape-rendering: crispEdges; }
.st-chart .hit { fill: transparent; cursor: crosshair; outline: none; }
.st-chart .hit:focus-visible { fill: rgba(167, 139, 250, .08); stroke: var(--accent-2); stroke-width: 1.5; }
.st-chart g.hover > * { filter: brightness(1.18); }
.st-chart .ln { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; transition: stroke-width .2s; }
.st-chart .ser.on .ln { stroke-width: 3; }
.st-chart .ln-hit { fill: none; stroke: transparent; stroke-width: 14; cursor: pointer; }
.st-chart .dot { stroke: var(--surface); stroke-width: 2; }
.st-chart .ser { cursor: pointer; }
.st-chart .cross line { stroke: var(--ink-2); stroke-opacity: .45; stroke-width: 1; }
.st-chart .cross circle { stroke: var(--surface); stroke-width: 2; pointer-events: none; }
.st-chart .cell { transition: filter .15s; }
.st-chart .cell:hover { filter: brightness(1.35); stroke: var(--ink-2); stroke-width: 1; }

/* ---------- tooltip ---------- */
.st-tip {
  position: fixed; z-index: 50; pointer-events: none; min-width: 150px; max-width: 280px;
  background: rgba(17, 19, 47, .97); border: 1px solid var(--line-2); padding: 9px 11px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .5); font-size: 12px; color: var(--muted);
}
.st-tip[hidden] { display: none; }
.tt-t { font-weight: 700; color: var(--ink-2); margin-bottom: 5px; font-size: 11.5px; }
.tt-r { display: flex; align-items: center; gap: 8px; padding: 1px 0; }
.tt-r b { font: 700 12px var(--mono); color: var(--ink); font-variant-numeric: tabular-nums; }
.tt-r span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tt-r.on b, .tt-r.on span:last-child { color: var(--accent-2); }
.tt-k { width: 12px; height: 2px; border-radius: 1px; flex-shrink: 0; }
.tt-k.none { background: none; }

/* ---------- table views ---------- */
.st-table { margin-top: 12px; }
.st-table summary {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer; list-style: none;
  font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--faint);
}
.st-table summary::-webkit-details-marker { display: none; }
.st-table summary::before { content: "+"; font: 700 13px var(--mono); color: var(--accent); width: 10px; }
.st-table[open] summary::before { content: "−"; }
.st-table summary:hover { color: var(--ink-2); }
.tv-wrap { overflow-x: auto; margin-top: 10px; }
.tv { width: 100%; border-collapse: collapse; font-size: 12px; }
.tv th, .tv td { padding: 5px 10px; border-bottom: 1px solid var(--line-3); text-align: left; white-space: nowrap; }
.tv thead th { color: var(--faint); font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; border-bottom-color: var(--line); }
.tv tbody th { color: var(--ink-2); font-weight: 600; }
.tv .n { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; color: var(--ink); }
.tv thead .n { font-family: var(--sans); }
.tv-dense th, .tv-dense td { padding: 3px 8px; }
.pn { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- single-hue bar lists ---------- */
.hb { display: flex; flex-direction: column; gap: 2px; }
.hb-row { display: grid; grid-template-columns: minmax(0, 46%) minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 3px 0; outline-offset: 1px; }
.hb-l { display: flex; align-items: center; gap: 7px; min-width: 0; font-size: 12.5px; color: var(--ink-2); }
.hb-l span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb-track { height: 10px; display: flex; }
.hb-bar { height: 100%; border-radius: 0 4px 4px 0; }
.hb-v { font: 600 11.5px var(--mono); color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }
.hb-row:hover .hb-bar { filter: brightness(1.2); }

/* ---------- stacked rows (ores) ---------- */
.sk { display: flex; flex-direction: column; gap: 4px; }
.sk-row { display: grid; grid-template-columns: minmax(96px, 130px) minmax(0, 1fr) 52px; align-items: center; gap: 10px; }
.sk-l { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-2); min-width: 0; }
.sk-l span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sk-l .ic { width: 18px; height: 18px; }
.sk-track { height: 14px; display: flex; }
.sk-bar { display: flex; gap: 2px; height: 100%; min-width: 2px; transition: width .5s cubic-bezier(.2, .8, .25, 1); }
.sk-seg { flex: 1 1 0; min-width: 1px; height: 100%; cursor: pointer; outline-offset: 1px; }
.sk-seg:last-child { border-radius: 0 4px 4px 0; }
.sk-seg:hover { filter: brightness(1.2); }
.sk-v { font: 600 11.5px var(--mono); color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- advancements ---------- */
.st-mini { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); margin-top: 16px; }
.mini { background: var(--surface); padding: 9px 12px; min-width: 0; }
.mini.wide { grid-column: 1 / -1; }
.mini span { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.mini b { display: flex; align-items: center; gap: 7px; margin-top: 2px; font-size: 14px; color: var(--ink); font-weight: 700; }
.ch { padding: 8px 0 10px; border-top: 1px solid var(--line-3); outline-offset: 2px; }
.ch:first-child { border-top: 0; padding-top: 0; }
.ch-h { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; }
.ch-h b { color: var(--ink); }
.ch-h span { font: 11.5px var(--mono); color: var(--muted); }
.ch-track { position: relative; height: 10px; margin: 6px 0 4px; background: var(--track); }
.ch-fill { position: absolute; left: 0; top: 0; bottom: 0; background: rgba(167, 139, 250, .45); border-radius: 0 4px 4px 0; }
.ch-mark { position: absolute; top: -3px; width: 4px; height: 16px; border-radius: 2px; box-shadow: 0 0 0 2px var(--surface); cursor: pointer; }
.ch-f { font-size: 11.5px; color: var(--faint); }

/* ---------- combat ---------- */
.pvp { border-collapse: separate; border-spacing: 2px; font-size: 12px; }
.pvp th { font-weight: 600; color: var(--ink-2); padding: 4px 8px 4px 0; text-align: left; white-space: nowrap; }
.pvp thead th { padding: 0 0 4px; text-align: center; }
.pvp td { width: 38px; height: 30px; text-align: center; font: 700 12px var(--mono); color: var(--ink); background: var(--track); }
.pvp td:not(.hot) { color: var(--faint); }
.st-bosses { margin-top: 18px; }
.st-bosses .st-card-sub { margin-bottom: 8px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: 10.5px; }
.boss-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.boss { background: var(--surface); padding: 8px 12px; display: flex; align-items: baseline; gap: 8px; }
.boss b { font: 700 15px var(--mono); color: var(--faint); min-width: 18px; }
.boss.done b { color: var(--accent-2); }
.boss span { font-size: 12px; color: var(--muted); }

/* ---------- travel matrix ---------- */
.tm { display: grid; align-items: center; gap: 0 12px; min-width: 520px; }
.tm > * { padding: 6px 0; border-bottom: 1px solid var(--line-3); min-width: 0; }
.tm-h { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); border-bottom-color: var(--line); }
.tm-p { display: flex; align-items: center; gap: 6px; text-transform: none; letter-spacing: 0; font-size: 12px; color: var(--ink-2); cursor: pointer; }
.tm-p span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-l { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-2); }
.tm-l span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-c { display: flex; flex-direction: column; gap: 3px; cursor: pointer; outline-offset: 1px; }
.tm-t { height: 8px; display: flex; }
.tm-b { height: 100%; border-radius: 0 4px 4px 0; }
.tm-v { font: 600 11px var(--mono); color: var(--ink); font-variant-numeric: tabular-nums; }
.tm-tot { font: 700 11.5px var(--mono); color: var(--ink); text-align: right; white-space: nowrap; }
.tm-h.tm-tot { font-family: var(--sans); font-size: 10.5px; color: var(--faint); }

/* ---------- world ---------- */
.odds { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ---------- player profile ---------- */
.st-profile {
  margin-top: 28px; padding: 22px 24px 24px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--pc, var(--accent)) 9%, var(--bg-2)), var(--bg-2) 220px);
  border: 1px solid var(--line-2); border-top: 3px solid var(--pc, var(--accent));
  animation: stProfileIn .35s ease-out both;
}
.st-profile[hidden] { display: none; }
.pf-head { display: flex; align-items: flex-start; gap: 20px; position: relative; }
.pf-body { width: 60px; height: 120px; object-fit: contain; image-rendering: pixelated; flex-shrink: 0; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .5)); }
.pf-id { min-width: 0; flex: 1; }
.pf-id .eyebrow { margin-bottom: 2px; }
.pf-id h2 { display: flex; align-items: center; gap: 10px; font-size: clamp(22px, 3.4vw, 30px); font-weight: 900; word-break: break-all; }
.pf-id h2 .sw { width: 14px; height: 14px; border-radius: 3px; }
.pf-status { margin: 4px 0 0; display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); }
.pf-status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--fainter); }
.pf-status.live { color: var(--ink); }
.pf-status.live .dot { background: var(--ok); animation: stPulse 2s ease-in-out infinite; }
.pf-facts { margin: 4px 0 0; font-size: 12.5px; color: var(--faint); }
.pf-state { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 10px; font-size: 12.5px; color: var(--ink-2); }
.pf-state span { display: inline-flex; align-items: center; gap: 6px; }
.pf-state small { font-size: 11px; color: var(--faint); }
.pf-close { position: absolute; top: -6px; right: -8px; min-height: 34px; width: 34px; padding: 0; font-size: 20px; line-height: 1; border-color: transparent; color: var(--faint); }
.pf-close:hover { color: var(--ink); border-color: var(--line-2); }

.pf-kpis { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); margin-top: 20px; }
.pf-kpi { background: var(--bg-2); padding: 11px 14px 12px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pf-kpi .k { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.pf-kpi b { font-size: 21px; font-weight: 800; color: var(--ink); line-height: 1.2; }
.pf-kpi .r { font: 11px var(--mono); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-share { display: flex; height: 4px; background: var(--track); margin: 3px 0 1px; }
.pf-share span { height: 100%; border-radius: 0 2px 2px 0; }

.pf-periods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.pf-period { display: grid; grid-template-columns: auto repeat(5, minmax(0, 1fr)); align-items: center; gap: 6px 12px; padding: 10px 14px; border: 1px solid var(--line-3); background: rgba(6, 7, 26, .4); }
.pf-period .k { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); min-width: 70px; }
.pf-period span:not(.k) { display: flex; flex-direction: column; line-height: 1.25; }
.pf-period b { font: 700 13px var(--mono); color: var(--ink); }
.pf-period small { font-size: 10.5px; color: var(--faint); }

.pf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pf-block { margin-top: 22px; min-width: 0; }
.pf-block h3 { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.pf-block h4 { font-size: 12px; font-weight: 800; color: var(--ink); margin: 16px 0 6px; }
.pf-ins { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.pf-ins li { display: flex; align-items: flex-start; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line-3); }
.pf-ins li .ic { margin-top: 2px; width: 18px; height: 18px; }
.pf-ins b { display: block; font-size: 13px; color: var(--ink); font-weight: 700; }
.pf-ins small { display: block; font-size: 11.5px; color: var(--faint); }
.pf-tabs { display: flex; flex-direction: column; gap: 6px; }
.pf-tab { display: grid; grid-template-columns: 92px minmax(0, 1fr) 56px; align-items: center; gap: 10px; }
.pf-tab .k { font-size: 12.5px; color: var(--ink-2); }
.pf-tab .pf-share { height: 8px; margin: 0; }
.pf-tab .pf-share span { border-radius: 0 4px 4px 0; }
.pf-tab .r { font: 600 11.5px var(--mono); color: var(--ink); text-align: right; }
.pf-recent { list-style: none; margin: 0; padding: 0; }
.pf-recent li { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 6px 0; border-bottom: 1px solid var(--line-3); }
.pf-recent .fr { width: 10px; height: 10px; margin-top: 4px; border: 2px solid var(--muted); }
.pf-recent .fr-goal .fr { border-radius: 50%; border-color: var(--accent-2); }
.pf-recent .fr-challenge .fr { transform: rotate(45deg); border-color: var(--amber); }
.pf-recent .tt { min-width: 0; }
.pf-recent .tt b { display: block; font-size: 12.5px; color: var(--ink); }
.pf-recent .tt small { display: block; font-size: 11.5px; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-recent time { font: 11px var(--mono); color: var(--muted); white-space: nowrap; }
.pf-tops { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px 22px; }
.pf-top h4 { margin-top: 0; }
.pf-all { margin-top: 22px; }
@media (max-width: 760px) {
  .st-profile { padding: 18px 14px 20px; }
  .pf-grid, .pf-periods { grid-template-columns: minmax(0, 1fr); }
  .pf-period { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .pf-period .k { grid-column: 1 / -1; }
  .pf-body { width: 44px; height: 88px; }
  .pf-head { gap: 14px; }
}

/* Arrives from the right, like the other inner pages. */
::view-transition-old(root) { animation: vt-to-left-dim .45s cubic-bezier(.2, .8, .25, 1) both; }
::view-transition-new(root) { animation: vt-from-right .45s cubic-bezier(.2, .8, .25, 1) both; box-shadow: -16px 0 48px rgba(0, 0, 0, .55); }
