@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("fonts/figtree-latin-wght-normal.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("fonts/figtree-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url("fonts/ibm-plex-sans-latin-wght-normal.woff2") format("woff2");
}

/* The app's own greys. Colour comes only from platform logos and chat names. */
:root {
  color-scheme: dark;
  --bg: #0c0c0d;
  --chrome: #0a0a0b;
  --canvas: #111112;
  --surface: #161618;
  --raised: #1f1f22;
  --header: #1f1f22;
  --hover: #29292d;
  --input: #18181a;
  --line: #232326;
  --line-strong: #34343a;
  --text: #f1f1f3;
  --secondary: #bdbdc3;
  --muted: #8e8e95;
  --accent: #bcbcc3;
  --held: #d9b45f;
  --warn: #dcae5c;
  --twitch: #9146ff;
  --kick: #53fc18;
  --live: #ed656b;
  --radius: 16px;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}
html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    16px/1.55 "Figtree",
    "Segoe UI Variable Text",
    "Segoe UI",
    system-ui,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
html,
body {
  overflow-x: clip;
}
/* The page colour lives on html alone so the grid layer can sit above it. */
body {
  background: none;
}
a {
  color: inherit;
}
h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.025em;
  line-height: 1.05;
}
p {
  margin: 0;
}
kbd {
  display: inline-block;
  min-width: 1.9em;
  padding: 2px 7px;
  margin: 0 2px;
  font: 600 12px/1.6 inherit;
  font-family: inherit;
  text-align: center;
  color: var(--text);
  background: linear-gradient(#2a2a2c, #1f1f21);
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 6px;
}
:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Background: a faint blueprint grid with registration crosses, fading out
   toward the edges of the screen. */
.bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background: url("assets/blueprint.svg") center -1px / 96px 96px;
  opacity: 0.5;
  mask-image: radial-gradient(
    ellipse 70% 55% at 50% 20%,
    #000 10%,
    transparent 100%
  );
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 32px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 24px;
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  background: #0c0c0dcc;
  border-bottom: 1px solid transparent;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.mark {
  width: 28px;
  height: 28px;
}
.mark-bg {
  fill: #1e1e20;
  stroke: var(--line-strong);
}
.mark-a {
  fill: var(--text);
}
.mark-b {
  fill: var(--muted);
}
.mark-c {
  fill: #5a5a5e;
}
.nav nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
}
.nav nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  transition: color 0.15s;
}
.nav nav a:hover {
  color: var(--text);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 650;
  text-decoration: none;
  color: #0c0c0d;
  background: #f2f2f2;
  box-shadow:
    0 0 0 1px #ffffff30 inset,
    0 8px 24px -10px #000;
  transition:
    transform 0.15s,
    box-shadow 0.2s,
    background 0.15s;
}
.btn:hover {
  background: #fff;
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px #ffffff40 inset,
    0 12px 32px -10px #000;
}
.btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.btn-small {
  padding: 8px 16px;
  font-size: 14px;
  border-radius: 10px;
  box-shadow: none;
}
.btn-ghost {
  color: var(--text);
  background: #ffffff0a;
  box-shadow: 0 0 0 1px var(--line-strong) inset;
}
.btn-ghost:hover {
  background: #ffffff14;
  box-shadow: 0 0 0 1px #4a4a4e inset;
}

/* Hero */
main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}
.hero {
  padding: 52px 0 32px;
  text-align: center;
}
/* The newest release's headline, linking to its notes. */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 6px 14px 6px 12px;
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--secondary);
  background: #ffffff08;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
}
a.eyebrow {
  text-decoration: none;
}
a.eyebrow[href]:hover {
  color: var(--text);
  border-color: var(--muted);
}
/* A long headline shortens rather than wrapping the pill. */
.eyebrow [data-version] {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text);
  box-shadow: 0 0 0 4px #ffffff1a;
}
h1 {
  max-width: 820px;
  margin: 0 auto;
  font-size: clamp(32px, 4.6vw, 54px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
  text-wrap: balance;
}
.lead {
  max-width: 700px;
  margin: 18px auto 0;
  font-size: clamp(16px, 1.6vw, 18px);
  color: var(--secondary);
  text-wrap: balance;
}
.cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}
.meta {
  margin-top: 14px;
  font-size: 14px;
  color: var(--muted);
  min-height: 1.55em;
}
.meta a {
  color: var(--secondary);
}
.meta.note {
  margin-top: 4px;
  animation: scene-in 0.3s ease both;
}
.meta.note[hidden] {
  display: none;
}
.meta.note em {
  color: var(--secondary);
  font-style: normal;
  font-weight: 600;
}

/*
 * App window mocks, drawn with the app's own defaults (src/theme.css): the
 * neutral dark greys, IBM Plex Sans for the interface and the system font for
 * chat, Phosphor icons from assets/icons.svg.
 */
.window {
  position: relative;
  max-width: 1040px;
  margin: 40px auto 0;
  text-align: left;
  font:
    13px/1.4 "IBM Plex Sans",
    system-ui,
    "Segoe UI Variable Text",
    "Segoe UI",
    sans-serif;
  letter-spacing: 0;
  background: var(--canvas);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px #00000080,
    0 40px 120px -20px #000;
  animation: rise 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@keyframes rise {
  from {
    opacity: 0;
    translate: 0 32px;
  }
}
.window .i {
  width: 16px;
  height: 16px;
  flex: none;
  fill: currentColor;
}
.window .i.xs {
  width: 12px;
  height: 12px;
}
.live {
  display: inline-block;
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--live);
}

/* Title bar: brand, the mode switch, account and the window buttons. */
.titlebar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 34px;
  padding-left: 12px;
  background: var(--chrome);
  color: var(--secondary);
  white-space: nowrap;
  overflow: hidden;
}
.tb-brand {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-weight: 600;
}
.tb-brand small {
  font-size: 13px;
  font-weight: 400;
  opacity: 0.7;
}
.modeswitch {
  display: flex;
  gap: 2px;
  margin-left: 6px;
  padding: 2px;
  border-radius: 6px;
  background: var(--surface);
}
.modeswitch span {
  display: grid;
  place-items: center;
  height: 22px;
  padding: 0 11px;
  border-radius: 4px;
  color: var(--muted);
  font-weight: 500;
  transition:
    background 0.25s,
    color 0.25s;
}
.modeswitch .on {
  background: var(--raised);
  color: var(--text);
}
.tb-account {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  margin-left: auto;
  padding: 0 10px 0 12px;
}
.tb-account .i {
  color: var(--muted);
}
.tb-gear {
  display: grid;
  place-items: center;
  width: 46px;
  height: 34px;
}
.winctl {
  display: flex;
  height: 34px;
}
.winctl i {
  width: 46px;
  position: relative;
}
.winctl i::before,
.winctl i:nth-child(3)::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 10px;
  height: 1px;
  translate: -50% 0;
  background: var(--secondary);
}
.winctl i:nth-child(2)::before {
  height: 10px;
  translate: -50% -50%;
  background: none;
  border: 1px solid var(--secondary);
}
.winctl i:nth-child(3)::before {
  width: 12px;
  rotate: 45deg;
}
.winctl i:nth-child(3)::after {
  width: 12px;
  rotate: -45deg;
}

/* Viewer mode: flared folder tabs side by side, the open one joining its
   chat's header, its curved feet drawn over its neighbours' corners. */
.strip {
  display: flex;
  align-items: flex-end;
  gap: 0;
  height: 41px;
  padding: 6px 16px 0;
  background: var(--chrome);
  box-shadow: inset 0 -1px var(--line);
  color: var(--secondary);
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
}
.tab {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 14px;
  border-radius: 8px 8px 0 0;
}
.tab.active {
  z-index: 2;
  height: 35px;
  background: var(--header);
  color: var(--text);
}
/* The open tab's feet curve out into the strip. */
.tab.active::before,
.tab.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 10px;
  height: 10px;
}
.tab.active::before {
  left: -10px;
  background: radial-gradient(
    circle at 0 0,
    transparent 9.5px,
    var(--header) 10px
  );
}
.tab.active::after {
  right: -10px;
  background: radial-gradient(
    circle at 100% 0,
    transparent 9.5px,
    var(--header) 10px
  );
}
.tmark {
  position: relative;
  display: grid;
  place-items: center;
  width: 14px;
  height: 14px;
}
.tmark img {
  max-width: 20px;
  height: 14px;
  width: auto;
}
.tmark .live {
  position: absolute;
  right: -3px;
  bottom: -3px;
}
.tab.active .tmark .live {
  box-shadow: 0 0 0 2px var(--header);
}
.unread {
  min-width: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--hover);
  color: var(--secondary);
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
  line-height: 16px;
  text-align: center;
}
.unread.mention {
  background: #bcbcc338;
  box-shadow: 0 0 0 1px #bcbcc385 inset;
  color: #c7c7cd;
}
.tab:has(.unread) {
  color: var(--text);
}
.strip .add {
  display: grid;
  place-items: center;
  align-self: center;
  width: 25px;
  height: 25px;
  margin-top: -6px;
  color: var(--muted);
}
.panes {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  grid-template-rows: minmax(0, 1fr);
  height: 440px;
  background: var(--canvas);
}
.panes::before {
  content: "";
  grid-column: 2;
  grid-row: 1;
  background: var(--line);
}
.pane {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  grid-row: 1;
  background: var(--canvas);
}
.pane-a {
  grid-column: 1;
}
.pane-b {
  grid-column: 3;
}

/* A chat's header: the platform with a live dot, two lines, then stats. */
.pane-head {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 10px 0 12px;
  flex: none;
  background: var(--header);
  color: #cfcfd4;
  white-space: nowrap;
  overflow: hidden;
}
.hmark {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
}
.hmark img {
  height: 14px;
  width: auto;
}
.hmark::after {
  content: "";
  position: absolute;
  right: -4px;
  bottom: -3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 2px var(--header);
}
.head-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  line-height: 1.3;
}
.head-text span {
  overflow: hidden;
  text-overflow: ellipsis;
}
.head-text .l1 {
  color: #a0a0a6;
}
.head-text .l1 strong {
  margin-right: 4px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}
.pane-solo .head-text .l1 {
  color: var(--text);
  font-size: 14px;
}
.pane-solo .head-text .l2 {
  color: #a0a0a6;
}
.stats {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-left: auto;
  line-height: 1.3;
}
.stats > span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.stats small {
  color: #a0a0a6;
  font-size: 12px;
}
.stats em {
  color: #cfcfd4;
  font-style: normal;
}
.modes-text {
  margin-left: auto;
  padding: 0 6px;
  color: var(--warn);
  font-size: 12px;
}
.hbtn {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
}
.hbtn.on {
  color: var(--accent);
  background: #ffffff14;
}
.pane-head .modes-text + .hbtn {
  margin-left: 0;
}
.pane-head .head-text + .hbtn {
  margin-left: auto;
}

/* Chat rows, as MessageRow draws them at the default size. */
.chat {
  flex: 1;
  min-height: 0;
  margin: 0;
  padding: 4px 0;
  list-style: none;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  mask-image: linear-gradient(transparent, #000 18%);
}
.chat li {
  position: relative;
  padding: 2px 10px 2px 7px;
  border-left: 3px solid transparent;
  font:
    14px/1.6 system-ui,
    -apple-system,
    "Segoe UI Variable Text",
    "Segoe UI",
    Roboto,
    sans-serif;
  animation: msg-in 0.28s ease-out both;
  overflow-wrap: anywhere;
}
@keyframes msg-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}
.chat time {
  margin-right: 8px;
  color: var(--muted);
  font-size: 11.2px;
  font-variant-numeric: tabular-nums;
}
.chat .badge {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 4px;
  vertical-align: -3px;
  border-radius: 3px;
}
.chat .b-mod {
  background: #00ad03;
}
.chat .b-sub {
  background: var(--twitch);
}
.chat .b-vip {
  background: #e005b9;
}
.chat img.badge {
  border-radius: 0;
}
.chat .name {
  font-weight: 600;
}
.chat .emote {
  height: 28px;
  width: auto;
  margin: -3px 1px;
  vertical-align: middle;
}
.chat .src {
  width: auto;
  height: 12px;
  margin-right: 6px;
  vertical-align: -1px;
}
/* Highlights in the default Solid style: a deep fill and no rail, the way
   Chatterino marks rows. A mention fills its row in dark red, edge to edge,
   with your name in a grey pill. */
.chat .mention {
  padding-top: 4px;
  padding-bottom: 4px;
  border-left-color: transparent;
  background: #361d1a;
}
.chat .mt {
  padding: 0 4px;
  background: color-mix(in srgb, var(--text) 42%, transparent);
  color: #fff;
  font-weight: 700;
}
.chat .notice {
  padding-top: 6px;
  padding-bottom: 6px;
  background: color-mix(in srgb, #9270d6 24%, var(--canvas));
  color: var(--secondary);
}
.chat .notice b {
  font-weight: 600;
}
.c1 {
  color: #ff7f50;
}
.c2 {
  color: #1e90ff;
}
.c3 {
  color: #9acd32;
}
.c4 {
  color: #ff69b4;
}
.c5 {
  color: #daa520;
}
.c6 {
  color: #5f9ea0;
}
.c7 {
  color: #b58bff;
}
.c8 {
  color: #00c9a7;
}
.c9 {
  color: #ff6b6b;
}

/* Moderation mode: delete, timeout and ban as bare coloured icons, each in
   a 21 px button as the app sizes them at 14 px. */
.chat .mb {
  display: inline-flex;
  gap: 3px;
  margin-right: 6px;
  vertical-align: -4px;
}
.chat .mb .i {
  box-sizing: content-box;
  width: 15px;
  height: 15px;
  padding: 3px;
}
.chat .mb .del {
  color: #b4b4ba;
}
.chat .mb .to {
  color: #d2ad6c;
}
.chat .mb .ban {
  color: #da6d73;
}
/* A row with a label on its own line, and a mod line: the timestamp sits in
   a gutter, and the label, name and words line up in the column after it. */
.chat .first,
.chat .held,
.chat .sus,
.chat .modline {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
}
.chat .label {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: subgrid;
}
/* The label's icon sits in the gutter, just before the name's column. */
.chat .label > .i {
  justify-self: end;
  align-self: start;
  margin-top: 4px;
  width: 15px;
  height: 15px;
  margin-right: 5px;
}
.chat .ltext {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3px 6px;
  min-width: 0;
  color: var(--secondary);
}
.chat .ltext b {
  color: var(--text);
  font-weight: 600;
}
.chat .body {
  grid-column: 2;
  min-width: 0;
}
.chat .first,
.chat .held,
.chat .sus {
  padding-top: 6px;
  padding-bottom: 6px;
}
/* A first-time chatter keeps the pink rail as well as the wash. */
.chat .first {
  border-left-color: #f07ad8;
  background: color-mix(in srgb, #f07ad8 24%, var(--canvas));
}
.chat .first .label .i {
  color: #f07ad8;
}
.chat .held {
  background: color-mix(in srgb, var(--held) 24%, var(--canvas));
}
.chat .held .label .i {
  color: var(--held);
}
.chat .sus {
  background: color-mix(in srgb, #f08a3c 24%, var(--canvas));
}
.chat .sus .label .i {
  color: #f08a3c;
}
.acts {
  display: inline-flex;
  gap: 6px;
  margin-left: auto;
}
.acts span {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 24px;
  padding: 0 8px;
  border-radius: 6px;
  font:
    600 12.5px system-ui,
    sans-serif;
}
.acts .i {
  width: 14px;
  height: 14px;
}
.acts .ok,
.chat .acts .ok .i {
  color: #89ca9f;
}
.acts .ok {
  background: #6fc08a29;
  border: 1px solid #6fc08a6b;
}
.acts .no,
.chat .acts .no .i {
  color: #ef8989;
}
.acts .no {
  background: #ef6f6f29;
  border: 1px solid #ef6f6f6b;
}
.chat .repeat {
  margin-left: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.chat .modline {
  --mod: #bdbdc3;
  color: var(--secondary);
  background: color-mix(in srgb, var(--mod) 12%, transparent);
}
.chat .modline.ban {
  --mod: #ed656b;
}
.chat .modline .gut {
  white-space: nowrap;
}
.chat .modline .gut .i {
  margin-right: 6px;
  vertical-align: -3px;
  color: var(--mod);
}
.chat .modline b {
  color: var(--text);
  font-weight: 600;
}
.chat .modline i {
  display: block;
  color: var(--muted);
}

/* The message box. */
.composer {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  margin: 8px 12px 12px;
  padding: 0 4px 0 5px;
  flex: none;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--input);
  color: var(--muted);
}
.composer .tile {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 8px;
  background: var(--raised);
}
.composer .tile img {
  height: 14px;
  width: auto;
}
/* Sending to both: each platform's mark, and the arrows to pick one. */
.composer .tile.both {
  display: flex;
  gap: 4px;
  width: auto;
  padding: 0 6px 0 8px;
  color: var(--secondary);
}
.composer .ph {
  flex: 1;
  min-width: 0;
  padding: 0 6px;
  font:
    14px system-ui,
    sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.composer .send {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 6px;
  background: var(--raised);
}

/* Streamer and Moderator mode share a toolbar under the title bar. */
.mode-body {
  display: flex;
  flex-direction: column;
  height: 520px;
  background: var(--chrome);
}
/* As in the app: every panel a card of its own on the darker chrome, the
   gaps between them standing in for dividers. */
.mod-grid,
.stream-body {
  gap: 8px;
  padding: 8px 10px 10px;
}
.mod-grid > .pane,
.stream-body > .pane,
.stream-body > .activity,
.panels > .panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--canvas);
  overflow: hidden;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 36px;
  padding: 0 10px;
  flex: none;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  overflow: hidden;
}
.toolbar strong {
  font-weight: 500;
}
.tbtn {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--secondary);
  font-size: 12px;
}
.tbtn.on {
  color: var(--text);
}
.toolbar .mchip + .tbtn,
.toolbar .filter + .tbtn {
  margin-left: auto;
}
.tbtn em,
.mchip em {
  padding: 0 6px;
  border-radius: 999px;
  background: var(--raised);
  color: var(--secondary);
  font-size: 11px;
  font-style: normal;
  line-height: 16px;
}
.mchip {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: -8px;
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--secondary);
  font-size: 12px;
}
.toolbar strong + .mchip {
  margin-left: 0;
}
.mchip img {
  height: 12px;
  width: auto;
}
.mchip small {
  color: var(--muted);
  font-size: 12px;
}
.mchip em {
  background: var(--live);
  color: #fff;
  font-weight: 700;
}
.mchip.focus {
  border-color: var(--accent);
  color: var(--text);
}
.filter {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 1 300px;
  height: 26px;
  padding: 0 8px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--input);
  color: var(--muted);
  font-size: 12px;
}

/* Moderator mode: chats with moderation on, then the mod view's panels. */
.mod-grid {
  display: grid;
  grid-template-columns: 250px 1fr 1fr 240px;
  flex: 1;
  min-height: 0;
}
/* Every column on one row, in the order written. */
.mod-grid > * {
  grid-row: 1;
}
.mod-chat {
  mask-image: none;
}
/* A moderated chat's header has a row of tools; they close up to fit. */
.mod-grid .pane-head {
  gap: 6px;
  padding-right: 6px;
}
.mod-grid .hbtn {
  width: 24px;
}
.mod-chat li {
  animation: none;
}
.panels {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  min-height: 0;
}
/* The first panel in a column takes the room left by the others. */
.panels > .panel:first-child {
  flex: 1;
  min-height: 0;
}
.panel {
  flex: none;
}
.panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 10px 0 14px;
  background: var(--header);
  white-space: nowrap;
}
.panel-head span {
  flex: 1;
  min-width: 0;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
}
.panel-head em {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--secondary);
  font-size: 12px;
  font-style: normal;
}
.held-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 9px 12px 10px;
  background: color-mix(in srgb, var(--held) 24%, var(--canvas));
  font:
    14px/1.5 system-ui,
    sans-serif;
}
.held-item .name {
  font-weight: 600;
}
.held-top {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--secondary);
  font:
    12px "IBM Plex Sans",
    system-ui,
    sans-serif;
}
.held-top img {
  height: 12px;
  width: auto;
}
.held-top small {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
}
.mention-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 9px 12px 10px;
  font:
    14px/1.5 system-ui,
    sans-serif;
}
.mention-item .name {
  font-weight: 600;
}
.held-item .acts {
  margin: 2px 0 0;
}
.actions {
  margin: 0;
  padding: 0 12px;
  list-style: none;
}
.actions li {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  color: var(--secondary);
}
.actions li:last-child {
  border-bottom: 0;
}
.actions .i {
  margin-top: 1px;
  color: var(--muted);
}
.actions b {
  color: var(--text);
  font-weight: 600;
}
.actions q {
  display: block;
  margin: 5px 0 2px;
  padding: 4px 10px;
  border-left: 2px solid var(--line-strong);
  border-radius: 0 6px 6px 0;
  background: var(--raised);
  color: var(--text);
  quotes: none;
}
.actions small {
  display: block;
  color: var(--muted);
  font-size: 13px;
}
.quick {
  padding: 6px 12px 12px;
}
.quick > small {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.quick div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.quick span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 30px;
  padding: 4px 8px;
  font-size: 12px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--raised);
  color: var(--text);
}
.quick .on {
  border-color: #bcbcc399;
  background: #bcbcc329;
  font-weight: 600;
}
.quick .on small {
  font-weight: 400;
  opacity: 0.8;
}

/* Streamer mode: stream cards, both chats in one feed, and Activity. */
.stream-cards {
  display: flex;
  gap: 8px;
  padding: 8px;
  flex: none;
  background: var(--canvas);
  border-bottom: 1px solid var(--line);
}
.stream-card {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
  max-width: 440px;
  padding: 7px 10px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  line-height: 1.45;
  white-space: nowrap;
}
.stream-card > * {
  overflow: hidden;
  text-overflow: ellipsis;
}
.stream-card small {
  color: var(--muted);
  font-size: 12px;
}
.sc-top {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sc-top img {
  height: 14px;
  width: auto;
}
.sc-top b {
  font-weight: 600;
}
.sc-edit {
  margin-left: auto;
  color: var(--muted);
}
.sc-cat {
  text-transform: uppercase;
}
/* Totals for the stream so far, and the button that edits both streams. */
.stream-summary {
  flex: 0 1 260px;
  justify-content: center;
}
.stream-summary div {
  white-space: normal;
}
.sc-button {
  align-self: center;
  flex: none;
  padding: 5px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--raised);
  font-weight: 600;
  white-space: nowrap;
}
.sc-live {
  color: var(--live);
  font-size: 12px;
  font-weight: 600;
}
.stream-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  flex: 1;
  min-height: 0;
}
.activity {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.feed {
  flex: 1;
  min-height: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow: hidden;
}
.feed li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: start;
  gap: 8px;
  padding: 7px 8px 7px 10px;
  border-bottom: 1px solid var(--line);
  line-height: 1.45;
  animation: msg-in 0.35s ease-out both;
}
.feed li:first-child {
  background: var(--surface);
}
/* Each kind's icon in its group's colour, the platform in its corner. */
.kind {
  position: relative;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: var(--kind, var(--muted));
}
.kind .i {
  width: 20px;
  height: 20px;
}
.kind img {
  position: absolute;
  right: -4px;
  bottom: -3px;
  width: 11px;
  height: 11px;
  object-fit: contain;
  border-radius: 3px;
  background: var(--canvas);
  box-shadow: 0 0 0 1.5px var(--canvas);
}
.g-subs,
.g-bits {
  --kind: #9270d6;
}
.g-gifts {
  --kind: #72a7fb;
}
.g-raids {
  --kind: #ed656b;
}
.g-follows {
  --kind: #f07c9c;
}
.g-streaks {
  --kind: #dcae5c;
}
.feed .who {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.feed .who b {
  font-weight: 600;
}
.feed .who small,
.feed time {
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.activity .panel-head > .i {
  color: var(--muted);
}
.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 26px;
  padding: 0 10px 0 8px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: var(--secondary);
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
}
.filter-btn .i {
  width: 15px;
  height: 15px;
}

/*
 * The hero's tour. chat.js moves data-view between split (two chats side by
 * side), solo (one channel's tab), streamer and moderator, and sets data-drag,
 * data-drop and data-merged while a tab is dropped onto a chat to combine them.
 */
.pane-solo,
.pane-merged,
.drop-zone,
.drag-ghost,
.tour-streamer,
.tour-moderator {
  display: none;
}
.pane-solo,
.pane-merged {
  grid-column: 1;
}
.tour .pane,
.tour-streamer,
.tour-moderator {
  animation: scene-in 0.45s ease both;
}
@keyframes scene-in {
  from {
    opacity: 0;
    translate: 0 6px;
  }
}
.tour[data-view="solo"] .panes {
  grid-template-columns: 1fr;
}
.tour[data-view="solo"] .panes::before,
.tour[data-view="solo"] .pane-a,
.tour[data-view="solo"] .pane-b {
  display: none;
}
.tour[data-view="solo"] .pane-solo,
.tour[data-merged] .pane-merged {
  display: flex;
}
.tour[data-merged] .pane-a,
.tour[data-merged] .tab[data-tab="orbitdrift"] {
  display: none;
}
.tour[data-view="streamer"] .viewer-body,
.tour[data-view="moderator"] .viewer-body {
  display: none;
}
.tour[data-view="streamer"] .tour-streamer,
.tour[data-view="moderator"] .tour-moderator {
  display: block;
}
/* The copies take the tab strip's and chats' room, so the window keeps its size. */
.tour .mode-body {
  height: 481px;
}
/* The tour's window is narrower: its chats keep their names over tools. */
.tour .mod-grid .modes-text,
.tour .mod-grid .hbtn:has(use[href$="#users"]) {
  display: none;
}
.tour[data-drag] .tab[data-tab="orbitdrift"] {
  opacity: 0.35;
}
.tour[data-drop] .drop-zone {
  display: grid;
  place-items: center;
  grid-column: 1;
  grid-row: 1;
  z-index: 1;
  margin: 56px 12px 62px;
  border: 1.5px dashed #ffffff59;
  border-radius: 12px;
  background: #0c0c0dcc;
  color: var(--text);
  font-weight: 600;
  animation: scene-in 0.3s ease both;
}
.tour[data-drag] .drag-ghost {
  display: flex;
  align-items: center;
  gap: 7px;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  height: 34px;
  padding: 0 14px;
  border-radius: 8px;
  background: var(--header);
  color: var(--text);
  font-size: 14px;
  white-space: nowrap;
  box-shadow: 0 12px 30px -8px #000;
  translate: var(--x, 0) var(--y, 0);
}
.drag-ghost.flying {
  transition: translate 0.9s cubic-bezier(0.3, 0.7, 0.2, 1);
}
.tour-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  max-width: 1040px;
  margin: 16px auto 0;
}
.tour-steps[hidden] {
  display: none;
}
.tour-steps button {
  padding: 0 0 4px;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  transition: color 0.25s;
}
.tour-steps button:hover,
.tour-steps button[aria-pressed="true"] {
  color: var(--text);
}
.tour-steps i {
  position: relative;
  display: block;
  height: 2px;
  margin-bottom: 10px;
  overflow: hidden;
  border-radius: 2px;
  background: var(--line-strong);
}
.tour-steps i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--text);
  transform-origin: 0 50%;
  scale: 0 1;
}
.tour-steps [data-done] i::after {
  scale: 1 1;
  background: var(--muted);
}
.tour-steps [aria-pressed="true"] i::after {
  animation: fill var(--scene-ms, 5s) linear forwards;
}
.tour-steps[data-paused] i::after {
  animation-play-state: paused;
}
@keyframes fill {
  to {
    scale: 1 1;
  }
}
.tour-steps button:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 4px;
}
/* Sections */
.section {
  padding: 96px 0 20px;
}
h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.035em;
}
.sub {
  margin-top: 20px;
  max-width: 440px;
  color: var(--secondary);
  font-size: 18px;
}

/* Feature lists: a name and a line each */
.points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 40px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  color: var(--secondary);
  font-size: 15px;
}
.points b {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
}
code {
  padding: 1px 5px;
  font:
    13px/1.4 ui-monospace,
    "Cascadia Code",
    Consolas,
    monospace;
  color: var(--text);
  background: #ffffff0f;
  border-radius: 5px;
}
.groups {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 56px;
  margin-top: 40px;
}
.groups h3 {
  margin-bottom: 10px;
  font-size: 17px;
  font-weight: 700;
}
.groups ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.groups li {
  padding: 9px 0;
  border-top: 1px solid var(--line);
  color: var(--secondary);
  font-size: 15px;
}

/* The rest of a mode's points, folded under the first six. */
.more {
  margin-top: 28px;
}
.more summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--secondary);
  font-size: 14px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
  transition:
    color 0.15s,
    border-color 0.15s;
}
.more summary::-webkit-details-marker {
  display: none;
}
.more summary::before {
  content: "+";
  width: 1ch;
  font-size: 16px;
  line-height: 1;
  text-align: center;
  transition: rotate 0.2s;
}
.more[open] summary::before {
  rotate: 45deg;
}
.more summary:hover {
  color: var(--text);
  border-color: var(--muted);
}
.more .points {
  margin-top: 28px;
}
/* Shortcuts in the features: what each does, its keys on the right. */
.groups .keys li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
}
.groups .keys span {
  white-space: nowrap;
}
.groups .keys kbd {
  margin: 0 0 0 4px;
}

.sub.wide {
  max-width: 640px;
}
.section .window {
  max-width: none;
}

/* Install steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 56px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  position: relative;
  padding: 24px 0 0;
  border-top: 1px solid var(--line-strong);
}
.num {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
  border-radius: 50%;
  font-weight: 800;
  font-size: 14px;
  color: var(--text);
  background: #0c0c0d;
  border: 1px solid var(--line-strong);
}
.steps h3 {
  font-size: 19px;
  margin-bottom: 8px;
}
.steps p {
  color: var(--secondary);
  font-size: 15.5px;
}
.steps a {
  color: var(--text);
  text-underline-offset: 3px;
}
.steps em {
  color: var(--text);
  font-style: normal;
  font-weight: 600;
}

/* Questions */
.faq {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px 56px;
  margin: 40px 0 0;
}
.faq dt {
  font-size: 17px;
  font-weight: 700;
}
.faq dd {
  margin: 8px 0 0;
  color: var(--secondary);
  font-size: 15.5px;
}
.faq em {
  color: var(--text);
  font-style: normal;
  font-weight: 600;
}

/* Final CTA */
.final {
  position: relative;
  margin: 120px 0 0;
  padding: 88px 24px 76px;
  text-align: center;
  border-radius: 24px;
  border: 1px solid var(--line-strong);
  overflow: hidden;
  background: #0e0e0fcc;
  backdrop-filter: blur(2px);
}
.final h2 {
  font-size: clamp(30px, 4vw, 44px);
}
.final > p:not(.meta) {
  margin: 14px 0 34px;
  color: var(--secondary);
  font-size: 19px;
}

/* What's new (changelog.html): each release's version and date in a column
   that stays in view beside its notes. */
.changelog {
  padding-top: 56px;
}
.changelog h1 {
  max-width: none;
  margin: 0;
}
.changelog > .sub {
  margin-bottom: 40px;
}
.release {
  display: grid;
  grid-template-columns: 200px minmax(0, 720px);
  gap: 40px;
  padding: 40px 0;
  border-top: 1px solid var(--line);
}
.release-meta {
  position: sticky;
  top: 80px;
  align-self: start;
}
.release-meta h2 {
  font-size: 26px;
  letter-spacing: -0.02em;
}
.release-meta h2 a {
  text-decoration: none;
}
.release-meta h2 a:hover {
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 4px;
}
.release-meta time {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}
.release-summary {
  margin-bottom: 24px;
  color: var(--text);
  font-size: 18px;
}
.release-notes h3 {
  margin: 28px 0 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.release-notes h3:first-child {
  margin-top: 4px;
}
.release-notes ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.release-notes li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--secondary);
  font-size: 15.5px;
}
.release-notes li:last-child {
  border-bottom: 0;
}
.release-notes li b {
  display: block;
  margin-bottom: 2px;
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
}
.release-notes li span {
  display: block;
}
/* The first week's releases, folded under a button after the rest. */
.earlier {
  margin-top: 0;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.earlier[open] > summary {
  margin-bottom: 40px;
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px 24px 56px;
  color: var(--muted);
  font-size: 13px;
}
footer a {
  color: var(--secondary);
}
/* Links on a row of their own above the notices. */
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  flex-basis: 100%;
  padding-bottom: 20px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
footer nav a {
  text-decoration: none;
  transition: color 0.15s;
}
footer nav a:hover {
  color: var(--text);
}

/* Responsive */
@media (max-width: 900px) {
  .nav nav {
    display: none;
  }
  .nav .btn-small {
    margin-left: auto;
  }
  .points,
  .groups {
    grid-template-columns: 1fr 1fr;
  }
  .stream-body {
    grid-template-columns: minmax(0, 1fr) 240px;
  }
  /* Two chats and no panels, and fewer chips in the strip. */
  .mod-grid {
    grid-template-columns: 1fr 1fr;
  }
  .mod-grid .panels,
  .activity .select,
  .stream-summary,
  .sc-button,
  .mchip:nth-of-type(n + 3),
  .filter,
  .tb-account {
    display: none;
  }
  .steps,
  .faq {
    grid-template-columns: 1fr;
  }
  /* The version and date become a line over the notes. */
  .release {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    padding: 32px 0;
  }
  .release-meta {
    position: static;
    display: flex;
    align-items: baseline;
    gap: 12px;
  }
  .release-meta time {
    margin-top: 0;
  }
}
@media (max-width: 640px) {
  .hero {
    padding-top: 56px;
  }
  .window {
    margin-top: 36px;
    animation: none;
  }
  .panes {
    grid-template-columns: 1fr;
    height: 380px;
  }
  .mode-body,
  .tour .mode-body {
    height: 418px;
  }
  .stream-body,
  .mod-grid {
    grid-template-columns: 1fr;
  }
  /* One of everything: a chat, a stream card, the mode switch. */
  .stream-card + .stream-card,
  .activity,
  .mod-grid .pane + .pane,
  .mchip,
  .tbtn,
  .tb-brand,
  .tb-gear,
  .panes::before,
  .panes .pane-b,
  .strip .tab:not(.active),
  .winctl {
    display: none;
  }
  .modeswitch {
    margin-left: -4px;
  }
  .points,
  .groups {
    grid-template-columns: 1fr;
  }
  .btn {
    width: 100%;
    justify-content: center;
  }
  .nav .btn-small {
    width: auto;
  }
  .eyebrow {
    font-size: 13px;
  }
  .tour-steps {
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  html {
    scroll-behavior: auto;
  }
}
