.GemPulse {
  --pulse-ink: #f0f5ff;
  --pulse-muted: #b4c1d8;
  --pulse-accent: #8ff8cd;
  box-sizing: border-box;
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto 28px;
  padding: clamp(18px, 3.15vw, 40px);
  scroll-margin-top: 85px;
  color: var(--pulse-ink);
  border: 1px solid #3c655e;
  border-radius: 22px;
  background: radial-gradient(ellipse at 82% 0%, #204750, transparent 57%), #0d1c25;
}

.GemPulse__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px 22px;
  flex-wrap: wrap;
  margin-bottom: 19px;
}

.GemPulse .GemPulse__eyebrow {
  margin: 0 0 8px;
  color: var(--pulse-accent);
  font: 700 .69rem/1.2 ui-monospace, monospace;
  text-transform: uppercase;
  letter-spacing: .14em;
}

.GemPulse h2 {
  margin: 0;
  color: var(--pulse-ink);
  font-size: clamp(1.95rem, 3.7vw, 3.15rem);
  line-height: 1.06;
  letter-spacing: -.055em;
}

.GemPulse__head p:last-child {
  max-width: 60ch;
  margin: 9px 0 0;
  color: var(--pulse-muted);
  font-size: .9rem;
}

.GemPulse__head > a {
  padding: 8px 11px;
  border: 1px solid #65aa94;
  border-radius: 8px;
  background: #112b2b;
  color: var(--pulse-accent);
  font-size: .79rem;
  font-weight: 700;
}

.GemPulse__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(245px, 1fr);
  gap: 13px;
  align-items: start;
}

.GemPulse__stream, .GemPulse__rooms {
  min-width: 0;
  padding: 14px;
  border: 1px solid #31514e;
  border-radius: 13px;
  background: #0a1823e8;
}

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

.GemPulse h3 { margin: 0; color: var(--pulse-ink); font-size: 1rem; }
.GemPulse__rooms > p { margin: 6px 0 0; color: var(--pulse-muted); font-size: .73rem; line-height: 1.5; }
.GemPulse__filters { display: flex; flex-wrap: wrap; gap: 5px; }

.GemPulse__filters button {
  min-height: 36px;
  padding: 5px 8px;
  border: 1px solid #3c5b60;
  border-radius: 7px;
  background: #152832;
  color: var(--pulse-muted);
  font-family: inherit;
  font-size: .72rem;
  font-weight: 650;
  cursor: pointer;
}

.GemPulse__filters button[aria-pressed="true"] {
  border-color: #77d3b4;
  background: #1a3b39;
  color: var(--pulse-accent);
}

.GemPulse :is(a, button):focus-visible { outline: 2px solid var(--pulse-accent); outline-offset: 3px; }
.GemPulse a:hover { text-decoration: underline; }
.GemPulse .GemPulse__status { margin: 9px 0 0; color: var(--pulse-muted); font-size: .76rem; }
.GemPulse .GemPulse__status:empty { display: none; }

.GemPulse :is(.GemPulse__entries, .GemPulse__rank) {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.GemPulse__entry, .GemPulse__rankRow {
  min-width: 0;
  padding: 9px;
  border: 1px solid #355052;
  border-radius: 8px;
  background: #142630;
}

.GemPulse__entryHead {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 8px;
}

.GemPulse__entryHead a, .GemPulse__rankRow a {
  color: var(--pulse-ink);
  font-size: .83rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.GemPulse__kind {
  padding: 2px 5px;
  border-radius: 4px;
  background: #768bba28;
  color: #d0ddfa;
  font: 650 .62rem/1.2 ui-monospace, monospace;
}

.GemPulse__kind[data-kind="members"] { color: var(--pulse-accent); background: #73d3b02a; }
.GemPulse__entryHead time { margin-left: auto; color: var(--pulse-muted); font-size: .67rem; }
.GemPulse__entry p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
  margin: 5px 0 0;
  color: var(--pulse-muted);
  font-size: .76rem;
  line-height: 1.5;
}

.GemPulse__rankRow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px 9px;
}

.GemPulse__rankRow strong {
  color: var(--pulse-accent);
  font: 650 .68rem/1 ui-monospace, monospace;
}

.GemPulse__track {
  display: block;
  grid-column: 1 / -1;
  height: 4px;
  overflow: hidden;
  border-radius: 4px;
  background: #243c44;
}

.GemPulse__track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #4bbcba, #8ff8cd);
}

@media (max-width: 760px) {
  .GemPulse { width: calc(100% - 28px); }
  .GemPulse__grid { grid-template-columns: minmax(0, 1fr); }
}
