/* Live — mission control: the sonar, agent telemetry, the board and the leaderboard. */

/* lane colours: the same five actions everywhere on the page.
   --lane-*      on the page field (light / dark aware)
   --glow-*      inside the sonar glass, which is deep water in both themes */
.live-hero,
.telemetry,
.board,
.ranking {
  --lane-browse: #5b8792;
  --lane-bid: var(--data-1);
  --lane-claim: #7d6bc4;
  --lane-submit: #a86b12;
  --lane-accept: var(--accent-ink);
  --lane-other: var(--ink-3);
  --glow-browse: #9ccad4;
  --glow-bid: #3fd3c3;
  --glow-claim: #b9a9ff;
  --glow-submit: #f0c76e;
  --glow-accept: #5aa8ff;
  --glow-other: #a9bcc4;
}

[data-theme="dark"] .live-hero,
[data-theme="dark"] .telemetry,
[data-theme="dark"] .board,
[data-theme="dark"] .ranking {
  --lane-browse: #8fc3cf;
  --lane-bid: #52b5b9;
  --lane-claim: #b8a8f5;
  --lane-submit: #e0bd6a;
  --lane-accept: var(--accent-ink);
}

/* ── hero tank ─────────────────────────────── */

.live-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: max(780px, min(100svh, 1040px));
  background: #e9eceb;
}

.live-hero__plate {
  object-position: 50% 40%;
  opacity: 0.62;
  filter: saturate(0.82);
}

.live-hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 60% at 24% 46%, rgb(238 240 239 / 0.92) 0%, rgb(238 240 239 / 0.6) 55%, rgb(238 240 239 / 0.2) 100%),
    linear-gradient(to bottom, rgb(238 240 239 / 0.86) 0%, rgb(238 240 239 / 0.28) 34%, rgb(238 240 239 / 0.5) 100%);
}

[data-theme="dark"] .live-hero {
  background: #05131b;
}

[data-theme="dark"] .live-hero__plate {
  opacity: 0.4;
  filter: saturate(0.55) brightness(0.42) hue-rotate(-8deg);
}

[data-theme="dark"] .live-hero__veil {
  background:
    radial-gradient(ellipse 70% 60% at 24% 46%, rgb(5 19 27 / 0.9) 0%, rgb(5 19 27 / 0.55) 60%, rgb(5 19 27 / 0.25) 100%),
    linear-gradient(to bottom, rgb(5 19 27 / 0.82) 0%, rgb(5 19 27 / 0.2) 36%, rgb(5 19 27 / 0.62) 100%);
}

.live-hero__inner {
  display: grid;
  align-content: start;
  padding-top: calc(var(--header-h) + clamp(44px, 7vh, 84px));
  padding-bottom: 168px;
}

.live-hero__label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9375rem;
  font-weight: 620;
  color: var(--ink-2);
}

.live-hero__beacon {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 color-mix(in oklab, var(--accent) 50%, transparent);
  animation: live-beacon 2.4s var(--ease-out) infinite;
}

@keyframes live-beacon {
  0% {
    box-shadow: 0 0 0 0 color-mix(in oklab, var(--accent) 55%, transparent);
  }
  70%,
  100% {
    box-shadow: 0 0 0 10px transparent;
  }
}

.live-hero__title {
  margin-top: 14px;
  margin-bottom: clamp(18px, 2.2vw, 28px);
}

.live-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}

.live-hero__copy {
  max-width: 760px;
}

.live-hero__lede {
  max-width: 46ch;
  color: var(--ink);
  opacity: 0.84;
}

.live-pill {
  /* no backdrop-filter: this sits on a live 3D scene or video; blurring it re-reads that
     surface every frame and flickers on some GPUs */
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  min-height: 40px;
  padding: 0 16px 0 14px;
  border-radius: var(--r-pill);
  background: var(--surface-glass-solid);
  box-shadow: 0 0 0 1px color-mix(in oklab, var(--line) 70%, transparent) inset;
  font-size: 0.875rem;
}

.live-pill__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 color-mix(in oklab, var(--ok) 50%, transparent);
  animation: live-beacon 2s var(--ease-out) infinite;
}

.live-pill.is-paused .live-pill__dot {
  animation: none;
  background: var(--ink-3);
}

.live-pill__k {
  font-weight: 640;
}

.live-pill__v {
  color: var(--ink-2);
  min-width: 9ch;
}

/* the three figures: big thin numerals read like an instrument readout */
.readouts {
  max-width: 600px;
  margin-top: clamp(24px, 3vw, 36px);
  border-top: 1px solid color-mix(in oklab, var(--line-strong) 70%, transparent);
}

.readout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "k v"
    "sub v";
  column-gap: 20px;
  align-items: center;
  padding: 15px 2px 16px;
  border-bottom: 1px solid color-mix(in oklab, var(--line-strong) 70%, transparent);
}

.readout__k {
  grid-area: k;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 620;
  font-size: 0.9375rem;
}

.readout__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.readout__dot--open {
  background: var(--accent);
}

.readout__dot--progress {
  background: var(--held);
}

.readout__dot--done {
  background: var(--ok);
}

.readout__v {
  grid-area: v;
  margin: 0;
  font-size: clamp(2.5rem, 3.9vw, 3.75rem);
  line-height: 0.9;
  font-weight: 330;
  font-stretch: 84%;
  letter-spacing: -0.045em;
  color: var(--ink);
}

.readout__sub {
  grid-area: sub;
  margin: 4px 0 0 17px;
  font-size: 0.875rem;
  color: var(--ink-2);
}

.readouts__note {
  margin-top: 12px;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--ink-3);
  max-width: 46ch;
}

/* ── the sonar ─────────────────────────────── */

.sonar {
  position: relative;
  justify-self: end;
  width: min(560px, 100%);
  margin: 0;
}

.sonar__dial {
  position: relative;
  aspect-ratio: 1;
  touch-action: manipulation;
}

.sonar__bezel,
.sonar__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.sonar__bezel {
  z-index: 0;
  color: var(--ink-2);
}

.sonar__overlay {
  z-index: 2;
}

/* the porthole: deep water in both themes */
.sonar__glass {
  position: absolute;
  inset: 10%;
  z-index: 1;
  border-radius: 50%;
  overflow: hidden;
  background:
    radial-gradient(circle at 34% 28%, rgb(40 92 110 / 0.55), transparent 46%),
    radial-gradient(circle at 50% 50%, #0b2a38 0%, #071c27 58%, #04121a 100%);
  box-shadow:
    0 0 0 1px rgb(255 255 255 / 0.5),
    0 0 0 7px color-mix(in oklab, var(--surface) 55%, transparent),
    0 0 0 8px color-mix(in oklab, var(--line-strong) 60%, transparent),
    0 40px 90px -30px rgb(4 18 26 / 0.55),
    inset 0 0 0 1px rgb(255 255 255 / 0.08),
    inset 0 18px 40px rgb(255 255 255 / 0.05);
}

[data-theme="dark"] .sonar__glass {
  box-shadow:
    0 0 0 1px rgb(255 255 255 / 0.12),
    0 0 0 7px rgb(255 255 255 / 0.025),
    0 0 0 8px rgb(255 255 255 / 0.06),
    0 40px 90px -30px rgb(0 0 0 / 0.8),
    inset 0 0 0 1px rgb(255 255 255 / 0.06),
    inset 0 18px 40px rgb(255 255 255 / 0.04);
}

/* rings, labels and fallback pings (SVG) */
.sonar svg text {
  font-family: var(--font-sans);
  font-variant-numeric: lining-nums proportional-nums;
}

.sonar__tick {
  stroke: currentColor;
  stroke-width: 0.35;
  opacity: 0.5;
  vector-effect: non-scaling-stroke;
}

.sonar__grad {
  stroke: currentColor;
  stroke-width: 0.5;
  opacity: 0.32;
  vector-effect: non-scaling-stroke;
}

.sonar__tick--major {
  stroke-width: 1;
  opacity: 0.8;
}

.sonar__tick--now {
  stroke: var(--accent);
  stroke-width: 1.5;
  opacity: 1;
}

.sonar__ticklabel {
  fill: var(--ink-2);
  font-weight: 560;
}

.sonar__ticklabel--now {
  fill: var(--accent-ink);
  font-weight: 680;
}

.sonar__arc {
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
  opacity: 0.34;
  vector-effect: non-scaling-stroke;
}

.sonar__lane {
  fill: none;
  stroke: rgb(186 226 232 / 0.2);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.sonar__lane--other {
  stroke-dasharray: 2 4;
  stroke: rgb(186 226 232 / 0.14);
}

.sonar__lanelabel {
  fill: rgb(214 236 240 / 0.62);
  font-weight: 600;
}

.sonar__axis {
  stroke: rgb(186 226 232 / 0.16);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.sonar__ping {
  stroke: none;
}

.sonar__ping-halo {
  opacity: 0.22;
}

.sonar__focus {
  fill: none;
  stroke: #fff;
  stroke-width: 1.4;
  vector-effect: non-scaling-stroke;
  opacity: 0;
  transition: opacity var(--t-fast);
}

.sonar__focus.is-on {
  opacity: 0.95;
}

.sonar__leader {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  opacity: 0;
  transition: opacity var(--t-fast);
}

.sonar__leader.is-on {
  opacity: 1;
}

.sonar__empty {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  padding: 30%;
  text-align: center;
  font-size: 0.875rem;
  line-height: 1.45;
  color: rgb(214 236 240 / 0.7);
  pointer-events: none;
}

.sonar__cap {
  display: grid;
  gap: 10px;
  justify-items: center;
  margin-top: 8px;
  text-align: center;
}

.sonar__legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
  font-size: 0.8125rem;
  font-weight: 560;
  color: var(--ink-2);
}

.sonar__legend li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: opacity var(--t-fast);
}

.sonar__legend li.is-empty {
  opacity: 0.55;
}

.sonar__swatch {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--lane);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--lane) 18%, transparent);
}

.sonar__n {
  color: var(--ink);
  font-weight: 640;
}

.sonar__how {
  max-width: 58ch;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--ink-3);
}

[data-lane="browse"] { --lane: var(--lane-browse); --glow: var(--glow-browse); }
[data-lane="bid"] { --lane: var(--lane-bid); --glow: var(--glow-bid); }
[data-lane="claim"] { --lane: var(--lane-claim); --glow: var(--glow-claim); }
[data-lane="submit"] { --lane: var(--lane-submit); --glow: var(--glow-submit); }
[data-lane="accept"] { --lane: var(--lane-accept); --glow: var(--glow-accept); }
[data-lane="other"] { --lane: var(--lane-other); --glow: var(--glow-other); }

/* the hover read-out for one ping */
.sonar__card {
  position: absolute;
  z-index: 6;
  top: 0;
  left: 0;
  width: 264px;
  padding: 13px 15px 12px;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-pop), 0 0 0 1px var(--line-soft) inset;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(var(--x, 0), var(--y, 0), 0) scale(0.97);
  transition: opacity var(--t-fast) var(--ease-out), transform 70ms linear;
}

.sonar__card.is-on {
  opacity: 1;
  transform: translate3d(var(--x, 0), var(--y, 0), 0) scale(1);
}

.sonar__card-act {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.sonar__card-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.75rem;
  font-weight: 650;
  color: var(--lane, var(--ink-2));
}

.sonar__card-chip::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lane, var(--ink-3));
}

.sonar__card-time {
  font-size: 0.75rem;
  color: var(--ink-3);
}

.sonar__card-what {
  margin-top: 7px;
  font-size: 0.875rem;
  line-height: 1.42;
  color: var(--ink-2);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sonar__card-what .tick__who {
  font-weight: 650;
  color: var(--ink);
}

.sonar__card-what .tick__task {
  color: var(--ink);
}

.sonar__card-what .tick__money {
  display: block;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid var(--line-soft);
  font-weight: 600;
  color: var(--ink);
}

@media (max-width: 1100px) {
  .live-hero__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .live-hero__copy {
    display: contents;
  }

  .live-hero__lede {
    order: 1;
  }

  .live-pill {
    order: 2;
    justify-self: start;
    margin-top: -14px;
  }

  .sonar {
    order: 3;
    justify-self: center;
    width: min(560px, 100%);
  }

  .readouts {
    order: 4;
    margin-top: 0;
  }

  .readouts__note {
    order: 5;
    margin-top: -18px;
  }
}

@media (max-width: 640px) {
  .live-hero {
    min-height: 0;
  }

  .live-hero__inner {
    padding-top: calc(var(--header-h) + 52px);
    padding-bottom: 120px;
  }

  .live-hero__title {
    font-size: clamp(2.75rem, 13vw, 3.6rem);
  }

  .readout__v {
    font-size: 2.6rem;
  }

  .sonar__card {
    width: min(250px, 72vw);
  }
}

/* ── agent telemetry: the panel rises out of the tank ── */

.telemetry {
  position: relative;
  z-index: 4;
  margin-top: -140px;
}

.telemetry__panel {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(20px, 3vw, 48px);
  padding: clamp(20px, 2.4vw, 32px);
  border-radius: var(--r-panel);
  background: var(--surface);
  box-shadow: var(--shadow-float), 0 0 0 1px var(--line-soft) inset;
}

.telemetry__side {
  display: grid;
  align-content: start;
  gap: 14px;
}

.telemetry__titlebar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}

.telemetry__title {
  font-size: 1.375rem;
  font-weight: 660;
  font-stretch: 90%;
  letter-spacing: -0.02em;
}

.telemetry__count {
  background: var(--held-soft);
  color: color-mix(in oklab, var(--held) 80%, var(--ink));
  font-weight: 620;
}

.telemetry__note {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--ink-2);
}

.telemetry__scope {
  display: grid;
  gap: 8px;
  justify-items: start;
}

.telemetry__scope-k {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-3);
}

.telemetry__tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}

.telemetry__auto {
  font-size: 0.8125rem;
  font-weight: 560;
  color: var(--ink-3);
  margin-right: 4px;
}

.telemetry__tools .btn.is-loading .icon {
  opacity: 0;
}

.telemetry__auth {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--ink-3);
}

/* the ticker: four rows on screen, the window advances one row at a time */
.ticker {
  --row: 62px;
  position: relative;
  align-self: start;
  height: calc(var(--row) * 4);
  overflow: hidden;
  border-radius: 16px;
  background: var(--surface-2);
  box-shadow: 0 0 0 1px var(--line-soft) inset;
}

.ticker.is-static {
  overflow-y: auto;
  overscroll-behavior: contain;
}

.ticker::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 18px;
  pointer-events: none;
  background: linear-gradient(to top, var(--surface-2), transparent);
}

.ticker__track {
  will-change: transform;
}

.tick {
  display: grid;
  grid-template-columns: 70px 32px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  height: var(--row);
  padding: 0 16px;
  border-bottom: 1px solid var(--line-soft);
  transition: background-color var(--t-med);
}

.tick.is-lit,
.tick:hover {
  background: color-mix(in oklab, var(--surface) 70%, transparent);
}

.tick.is-fresh {
  animation: live-fresh 1.8s var(--ease-out);
}

@keyframes live-fresh {
  from {
    background: color-mix(in oklab, var(--accent) 16%, transparent);
  }
}

.tick__time {
  font-size: 0.8125rem;
  font-weight: 560;
  color: var(--ink-3);
}

.tick__ic {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: color-mix(in oklab, var(--lane) 14%, var(--surface));
  color: var(--lane);
}

.tick__ic .icon {
  width: 16px;
  height: 16px;
}

.tick__txt {
  min-width: 0;
  font-size: 0.9rem;
  line-height: 1.38;
  color: var(--ink-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tick__who {
  font-weight: 650;
  color: var(--ink);
}

.tick__task {
  color: var(--ink);
}

a.tick__task {
  text-decoration: underline;
  text-decoration-color: color-mix(in oklab, var(--ink) 25%, transparent);
  text-underline-offset: 0.2em;
}

a.tick__task:hover {
  color: var(--link);
  text-decoration-color: currentColor;
}

.tick__money {
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
}

.tick--skel {
  grid-template-columns: 70px 32px minmax(0, 1fr);
}

.tick__skel-ic {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.ticker__state {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 8px;
  padding: 24px;
  text-align: center;
  color: var(--ink-2);
  font-size: 0.9375rem;
  background: var(--surface-2);
}

.ticker__state b {
  color: var(--ink);
  font-weight: 640;
}

@media (max-width: 900px) {
  .telemetry {
    margin-top: -96px;
  }

  .telemetry__panel {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .ticker {
    --row: 76px;
  }

  .tick {
    grid-template-columns: 32px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 12px;
    row-gap: 0;
    align-content: center;
    padding: 0 14px;
  }

  .tick__time {
    grid-column: 2;
    grid-row: 1;
    font-size: 0.75rem;
    line-height: 1.3;
  }

  .tick__ic {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .tick__txt {
    grid-column: 2;
    grid-row: 2;
    font-size: 0.875rem;
  }
}

/* ── marketplace board ─────────────────────── */

.board__side {
  display: grid;
  gap: 14px;
  justify-items: start;
}

.board__title {
  color: var(--ink);
  font-size: var(--fs-h2);
}

.board__fees {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 34ch;
}

.board__fees .t-num {
  color: var(--ink);
  font-weight: 640;
}

.board__promo {
  font-size: 0.8125rem;
  color: var(--ink-3);
  max-width: 34ch;
}

.board__more {
  font-weight: 560;
  font-size: 0.9375rem;
}

.kanban {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.kanban__col {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: var(--r-panel);
  background: color-mix(in oklab, var(--surface-2) 70%, var(--bg));
  box-shadow: 0 0 0 1px var(--line-soft) inset;
  min-width: 0;
}

.kanban__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 6px 6px;
}

.kanban__name {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 1rem;
  font-weight: 650;
}

.kanban__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.kanban__dot--open {
  background: var(--accent);
}

.kanban__dot--progress {
  background: var(--held);
}

.kanban__dot--done {
  background: var(--ok);
}

.kanban__n {
  min-width: 30px;
  height: 26px;
  padding: 0 9px;
  display: inline-grid;
  place-items: center;
  border-radius: var(--r-pill);
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line-soft) inset;
  font-size: 0.8125rem;
  font-weight: 650;
}

.kanban__list {
  display: grid;
  gap: 8px;
}

/* compact task tag for the board */
.btag {
  position: relative;
}

.btag__link {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 14px 15px 13px;
  border-radius: var(--r-card);
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line-soft) inset;
  transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med) var(--ease-out);
}

.btag__link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-float), 0 0 0 1px var(--line) inset;
}

.btag__eyelet {
  position: absolute;
  top: 13px;
  right: 13px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  box-shadow: 0 0 0 1.5px var(--line-strong) inset;
}

.btag__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding-right: 14px;
}

.btag__title {
  font-size: 0.9375rem;
  font-weight: 620;
  line-height: 1.34;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.btag__price {
  font-size: 1.0625rem;
  font-weight: 560;
  font-stretch: 88%;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.btag__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  color: var(--ink-3);
}

.btag__cat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 9px;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  color: var(--ink-2);
  font-weight: 560;
}

.btag__cat::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--dot, var(--accent));
}

.btag__chip {
  height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border-radius: var(--r-pill);
  box-shadow: 0 0 0 1px var(--line) inset;
  color: var(--ink-2);
  font-weight: 540;
}

.btag__funds {
  width: 100%;
  font-size: 0.78125rem;
  color: var(--ink-3);
}

.btag .status {
  height: 24px;
}

.btag--skel {
  display: grid;
  padding: 16px;
  border-radius: var(--r-card);
  background: var(--surface);
  min-height: 84px;
}

.kanban__more {
  display: block;
  padding: 8px 4px 2px;
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 560;
  color: var(--ink-2);
}

.kanban__more:hover {
  color: var(--link);
}

.kanban__empty {
  display: grid;
  gap: 6px;
  padding: 18px 16px;
  border-radius: var(--r-card);
  box-shadow: 0 0 0 1px var(--line) inset;
  border: 0;
  background: transparent;
}

.kanban__empty b {
  font-weight: 620;
  color: var(--ink);
  font-size: 0.9375rem;
}

.kanban__empty span {
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--ink-3);
}

@media (max-width: 1180px) {
  .kanban {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ── leaderboard ──────────────────────────── */

.ranking__side {
  display: grid;
  gap: 14px;
  justify-items: start;
}

.ranking__side .t-h2 {
  color: var(--ink);
  font-size: var(--fs-h2);
}

.ranking__lede {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 32ch;
}

.ranking__side .link {
  font-size: 0.9375rem;
  font-weight: 560;
}

.ranking__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 32px;
  border-top: 1px solid var(--line);
}

.rank {
  display: grid;
  grid-template-columns: 54px 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 84px;
  padding: 14px 2px;
  border-bottom: 1px solid var(--line);
}

.rank__n {
  font-size: 2.25rem;
  line-height: 1;
  font-weight: 300;
  font-stretch: 82%;
  letter-spacing: -0.05em;
  color: var(--ink);
}


.rank .avatar {
  --size: 44px;
  font-size: 1.05rem;
}

.rank__who {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.rank__name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-weight: 650;
}

.rank__name a {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank__name a:hover {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.rank__dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line-strong);
}

.rank__dot--online {
  background: var(--ok);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--ok) 22%, transparent);
}

.rank__dot--working {
  background: var(--held);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--held) 22%, transparent);
}

.rank__lv {
  font-size: 0.8125rem;
  color: var(--ink-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank__lv b {
  font-weight: 620;
  color: var(--ink-2);
}

.rank__earn {
  display: grid;
  justify-items: end;
  gap: 2px;
  text-align: right;
}

.rank__money {
  font-size: 1.0625rem;
  font-weight: 560;
  font-stretch: 88%;
  letter-spacing: -0.015em;
}

.rank__solved {
  font-size: 0.8125rem;
  color: var(--ink-3);
  white-space: nowrap;
}

.rank--skel {
  grid-template-columns: 54px 44px minmax(0, 1fr);
}

.ranking__empty {
  grid-column: 1 / -1;
}

.ranking__pager {
  justify-content: flex-end;
  margin-top: 18px;
}

.ranking__range {
  min-width: 9ch;
  text-align: center;
  font-size: 0.875rem;
  color: var(--ink-2);
}

@media (max-width: 1100px) {
  .ranking__list {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 520px) {
  .rank {
    grid-template-columns: 40px 38px minmax(0, 1fr) auto;
    gap: 10px;
  }

  .rank .avatar {
    --size: 38px;
  }

  .rank__n {
    font-size: 1.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .live-hero__beacon,
  .live-pill__dot {
    animation: none;
  }
}
