@font-face {
  font-family: "Geist";
  src: url("/fonts/geist/geist-cyrillic-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Geist";
  src: url("/fonts/geist/geist-latin-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  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: "Geist";
  src: url("/fonts/geist/geist-cyrillic-500.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Geist";
  src: url("/fonts/geist/geist-latin-500.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  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: "Geist";
  src: url("/fonts/geist/geist-cyrillic-600.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Geist";
  src: url("/fonts/geist/geist-latin-600.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  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: "Geist";
  src: url("/fonts/geist/geist-cyrillic-700.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Geist";
  src: url("/fonts/geist/geist-latin-700.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  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: "Geist";
  src: url("/fonts/geist/geist-cyrillic-800.woff2") format("woff2");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Geist";
  src: url("/fonts/geist/geist-latin-800.woff2") format("woff2");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  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;
}

:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-soft: #f4f7fb;
  --ink: #0a0d12;
  --ink-soft: #505a69;
  --muted: #7a8595;
  --line: #dce3ec;
  --line-strong: #c9d3df;
  --blue: #1264ff;
  --cyan: #0db7c7;
  --green: #41b883;
  --chart: #0c121b;
  --chart-line: #243143;
  --shadow: 0 20px 60px rgba(20, 38, 68, 0.1);
  --content: 1360px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0c1118;
  --surface: #121923;
  --surface-soft: #161f2b;
  --ink: #f7f9fc;
  --ink-soft: #b7c1ce;
  --muted: #8d99aa;
  --line: #283446;
  --line-strong: #3a485b;
  --blue: #5791ff;
  --cyan: #4dccd7;
  --green: #68cb99;
  --chart: #070b11;
  --chart-line: #202c3c;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: "Geist", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
  transition: background-color 180ms ease, color 180ms ease;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button,
a,
label {
  -webkit-tap-highlight-color: transparent;
}

svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

:focus-visible {
  outline: 3px solid rgba(18, 100, 255, 0.28);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 9px 13px;
  border-radius: 4px;
  background: var(--ink);
  color: var(--bg);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.tremor-backdrop {
  position: fixed;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(18, 100, 255, 0.027) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 100, 255, 0.027) 1px, transparent 1px);
  background-size: 88px 88px;
}

:root[data-theme="dark"] .tremor-backdrop {
  background-image:
    linear-gradient(rgba(87, 145, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(87, 145, 255, 0.045) 1px, transparent 1px);
}

.backdrop-line {
  position: absolute;
  width: 46vw;
  height: 1px;
  background: rgba(18, 100, 255, 0.14);
  transform-origin: left center;
}

.backdrop-line::after {
  position: absolute;
  right: -5px;
  top: -5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 5px var(--bg);
  content: "";
}

.backdrop-line-a {
  top: 17%;
  right: -8%;
  transform: rotate(-13deg);
}

.backdrop-line-b {
  bottom: 12%;
  left: -9%;
  transform: rotate(11deg);
}

.backdrop-points {
  position: absolute;
  top: 7%;
  left: 4%;
  width: 240px;
  height: 150px;
  opacity: 0.24;
  background-image: radial-gradient(circle, var(--blue) 1.3px, transparent 1.6px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(90deg, #000, transparent);
  mask-image: linear-gradient(90deg, #000, transparent);
}

.tremor-header,
main,
.tremor-footer {
  width: min(calc(100% - 56px), var(--content));
  margin-inline: auto;
}

.tremor-header {
  display: grid;
  min-height: 84px;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.tremor-brand {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  color: var(--blue);
  background: var(--surface);
}

.tremor-brand > span:last-child {
  display: grid;
  line-height: 1.1;
}

.tremor-brand strong {
  font-size: 16px;
  font-weight: 750;
}

.tremor-brand small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.tremor-header nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.tremor-header nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
  transition: color 160ms ease;
}

.tremor-header nav a:hover,
.tremor-header nav a:focus-visible {
  color: var(--blue);
}

.tremor-header nav svg {
  width: 15px;
  height: 15px;
}

.icon-button {
  display: grid;
  width: 42px;
  height: 42px;
  justify-self: end;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.icon-button:hover {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-1px);
}

.tremor-intro {
  display: grid;
  min-height: 430px;
  grid-template-columns: minmax(0, 1fr) 280px;
  align-items: end;
  gap: 70px;
  padding: 96px 0 72px;
}

.intro-copy {
  max-width: 1050px;
}

.live-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 24px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.live-kicker span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--green) 14%, transparent);
}

.tremor-intro h1 {
  max-width: 1180px;
  margin: 0;
  font-size: clamp(54px, 8vw, 112px);
  font-weight: 800;
  line-height: 0.88;
}

.intro-copy > p:last-child {
  max-width: 790px;
  margin: 32px 0 0;
  color: var(--ink-soft);
  font-size: clamp(17px, 1.5vw, 22px);
  line-height: 1.55;
}

.current-state {
  display: grid;
  align-content: end;
  padding: 24px 0 4px 24px;
  border-left: 1px solid var(--line-strong);
}

.current-state > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.current-state > strong {
  margin-top: 9px;
  font-size: 22px;
  line-height: 1.15;
}

.current-state > div {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-top: 26px;
}

.current-state b {
  font-size: 64px;
  font-weight: 800;
  line-height: 0.8;
}

.current-state small,
.current-state p {
  color: var(--muted);
}

.current-state p {
  margin: 17px 0 0;
  font-size: 13px;
}

.seismograph {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.seismograph-header {
  display: flex;
  min-height: 112px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 25px 28px;
  border-bottom: 1px solid var(--line);
}

.seismograph-header h2,
.section-heading h2,
.tremor-method h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
}

.seismograph-header p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.seismograph-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.trace-legend {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  margin: 0;
}

.trace-legend label {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink-soft);
  background: var(--surface-soft);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
}

.trace-legend input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.trace-legend label:has(input:not(:checked)) {
  opacity: 0.45;
}

.trace-legend i {
  width: 18px;
  height: 3px;
  border-radius: 2px;
}

.trace-reactions {
  background: var(--blue);
}

.trace-comments {
  background: var(--cyan);
}

.trace-online {
  background: var(--green);
}

.refresh-button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--ink);
  background: var(--surface);
  cursor: pointer;
  font-size: 12px;
  font-weight: 650;
}

.refresh-button:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.refresh-button.is-loading svg {
  animation: spin 850ms linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.chart-shell {
  position: relative;
  height: 470px;
  overflow: hidden;
  background: var(--chart);
}

#tremor-canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: crosshair;
}

.chart-tooltip {
  position: absolute;
  z-index: 4;
  display: grid;
  width: min(238px, calc(100% - 24px));
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid rgba(125, 158, 204, 0.38);
  border-radius: 6px;
  color: #f4f7fb;
  background: rgba(13, 20, 30, 0.94);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
  pointer-events: none;
}

.chart-tooltip[hidden] {
  display: none;
}

.chart-tooltip time {
  color: #7eabff;
  font-size: 10px;
  font-weight: 700;
}

.chart-tooltip strong {
  overflow: hidden;
  font-size: 12px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chart-tooltip span {
  color: rgba(222, 232, 245, 0.68);
  font-size: 10px;
}

.chart-scale {
  position: absolute;
  inset: 0 auto 34px 14px;
  width: 90px;
  color: rgba(216, 226, 240, 0.42);
  font-size: 10px;
  font-weight: 600;
  pointer-events: none;
}

.chart-scale span {
  position: absolute;
  left: 0;
  padding: 2px 5px;
  background: color-mix(in srgb, var(--chart) 82%, transparent);
  transform: translateY(-50%);
}

.chart-scale span:nth-child(1) { top: 14%; }
.chart-scale span:nth-child(2) { top: 37%; }
.chart-scale span:nth-child(3) { top: 60%; }
.chart-scale span:nth-child(4) { top: 83%; color: rgba(238, 245, 255, 0.72); }

.chart-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  color: rgba(231, 238, 248, 0.72);
  background: var(--chart);
  font-size: 13px;
  font-weight: 600;
  transition: opacity 300ms ease, visibility 300ms ease;
}

.chart-loading svg {
  color: #4f8aff;
}

.chart-loading.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.spike-strip {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  align-items: stretch;
  border-top: 1px solid #263345;
  color: #eef4fc;
  background: #0e151f;
}

.spike-strip-label {
  display: flex;
  min-height: 82px;
  align-items: center;
  gap: 9px;
  padding: 18px 24px;
  border-right: 1px solid #263345;
  color: rgba(222, 232, 245, 0.7);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.spike-strip-label svg {
  width: 17px;
  height: 17px;
  color: #6b9fff;
}

.spike-events {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.spike-events > a {
  display: grid;
  min-width: 0;
  align-content: center;
  gap: 3px;
  padding: 14px 18px;
  border-right: 1px solid #263345;
  border-bottom: 1px solid #263345;
  color: #eef4fc;
  text-decoration: none;
  transition: background-color 160ms ease;
}

.spike-events > a:nth-child(n + 4) {
  border-bottom: 0;
}

.spike-events > a:hover {
  background: #151f2d;
}

.spike-events time {
  color: #78a6ff;
  font-size: 10px;
  font-weight: 750;
}

.spike-events span:not(.spike-empty) {
  overflow: hidden;
  font-size: 11px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spike-events b {
  position: absolute;
  visibility: hidden;
}

.spike-empty {
  display: flex;
  min-height: 82px;
  align-items: center;
  padding: 18px 22px;
  color: rgba(222, 232, 245, 0.48);
  font-size: 12px;
}

.signal-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.signal-summary article {
  display: grid;
  min-height: 142px;
  align-content: center;
  padding: 24px 28px;
  border-right: 1px solid var(--line);
}

.signal-summary article:last-child {
  border-right: 0;
}

.signal-summary span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.signal-summary span svg {
  width: 17px;
  height: 17px;
  color: var(--blue);
}

.signal-summary strong {
  margin-top: 8px;
  font-size: 34px;
  line-height: 1;
}

.signal-summary small {
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
}

.daily-tremor,
.hot-discussions,
.signal-sources,
.tremor-method {
  padding: 124px 0;
}

.daily-tremor,
.hot-discussions {
  padding-bottom: 0;
}

.daily-tremor-heading h2,
.hot-discussions-heading h2 {
  display: flex;
  align-items: center;
  gap: 11px;
}

.daily-tremor-heading h2 svg,
.hot-discussions-heading h2 svg {
  width: 24px;
  height: 24px;
}

.daily-tremor-heading h2 svg {
  color: var(--blue);
}

.hot-discussions-heading h2 svg {
  color: #e54b4b;
}

.daily-tremor-panel {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  grid-template-rows: minmax(340px, auto) auto;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.daily-tremor-summary {
  display: grid;
  grid-row: 1 / 3;
  border-right: 1px solid var(--line);
}

.daily-tremor-summary article {
  display: grid;
  min-height: 122px;
  align-content: center;
  padding: 24px 28px;
  border-bottom: 1px solid var(--line);
}

.daily-tremor-summary article:last-child {
  border-bottom: 0;
}

.daily-tremor-summary span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.daily-tremor-summary strong {
  margin-top: 6px;
  font-size: 34px;
  line-height: 1;
}

.daily-tremor-summary small {
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.daily-chart-shell {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  background: var(--surface);
}

#daily-tremor-canvas {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 360px;
  cursor: crosshair;
}

.daily-chart-scale {
  position: absolute;
  inset: 25px 15px 39px auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--muted);
  font-size: 9px;
  font-weight: 650;
  pointer-events: none;
}

.daily-chart-tooltip {
  position: absolute;
  z-index: 4;
  display: grid;
  width: 210px;
  gap: 4px;
  padding: 11px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 12px 30px rgba(20, 38, 68, 0.14);
  pointer-events: none;
}

.daily-chart-tooltip[hidden] {
  display: none;
}

.daily-chart-tooltip time {
  color: var(--blue);
  font-size: 10px;
  font-weight: 750;
}

.daily-chart-tooltip strong {
  font-size: 13px;
}

.daily-chart-tooltip span {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.daily-chart-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  color: var(--muted);
  background: var(--surface);
  transition: opacity 180ms ease, visibility 180ms ease;
}

.daily-chart-empty.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.daily-chart-empty > svg {
  width: 22px;
  height: 22px;
  color: var(--blue);
}

.daily-chart-empty div {
  display: grid;
  gap: 3px;
}

.daily-chart-empty strong {
  color: var(--ink);
  font-size: 13px;
}

.daily-chart-empty span {
  font-size: 11px;
}

.daily-insight {
  display: flex;
  min-height: 72px;
  align-items: center;
  gap: 11px;
  padding: 16px 24px;
  border-top: 1px solid var(--line);
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.55;
}

.daily-insight svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: var(--blue);
}

.hot-thread-panel {
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.hot-thread-panel-head {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.hot-thread-panel-head > div {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.hot-thread-panel-head span {
  font-size: 14px;
  font-weight: 750;
}

.hot-thread-panel-head small,
.hot-thread-panel-head time {
  color: var(--muted);
  font-size: 11px;
}

.hot-thread-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.hot-thread-row {
  position: relative;
  display: grid;
  min-height: 142px;
  grid-template-columns: 66px minmax(0, 1fr) repeat(3, 116px) 38px;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  transition: background-color 160ms ease;
}

.hot-thread-row::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background: color-mix(in srgb, #e44752 var(--heat), transparent);
  content: "";
}

.hot-thread-row:last-child {
  border-bottom: 0;
}

.hot-thread-row:hover,
.hot-thread-row:focus-within {
  background: color-mix(in srgb, #e44752 2.8%, var(--surface));
}

.hot-thread-rank {
  display: grid;
  justify-items: center;
  gap: 5px;
  color: var(--muted);
}

.hot-thread-rank span {
  font-size: 11px;
  font-weight: 700;
}

.hot-thread-rank b {
  font-size: 22px;
  line-height: 1;
}

.hot-thread-copy {
  min-width: 0;
}

.hot-thread-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #cf3544;
  font-size: 10px;
  font-weight: 750;
  text-transform: uppercase;
}

.hot-thread-status svg {
  width: 14px;
  height: 14px;
}

.hot-thread-copy > a {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 8px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.38;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.hot-thread-copy > a:hover {
  color: var(--blue);
}

.hot-thread-copy small {
  display: flex;
  min-width: 0;
  gap: 6px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
}

.hot-thread-copy small b {
  flex: 0 0 auto;
  color: var(--ink-soft);
}

.hot-thread-copy small span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hot-thread-metric {
  display: grid;
  align-content: center;
  gap: 3px;
}

.hot-thread-metric small,
.hot-thread-metric em {
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
}

.hot-thread-metric strong {
  font-size: 20px;
  line-height: 1.1;
}

.hot-thread-open {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
}

.hot-thread-open svg {
  width: 16px;
  height: 16px;
}

.hot-thread-row:hover .hot-thread-open {
  border-color: var(--blue);
  color: var(--blue);
}

.hot-thread-skeleton {
  height: 142px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, transparent, color-mix(in srgb, #e44752 4%, transparent), transparent);
  background-size: 220% 100%;
  animation: skeleton 1.5s linear infinite;
}

.hot-thread-empty {
  display: flex;
  min-height: 130px;
  align-items: center;
  gap: 15px;
  color: var(--muted);
}

.hot-thread-empty > svg {
  width: 24px;
  height: 24px;
  color: var(--blue);
}

.hot-thread-empty div {
  display: grid;
  gap: 5px;
}

.hot-thread-empty strong {
  color: var(--ink);
  font-size: 14px;
}

.hot-thread-empty span {
  font-size: 12px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(340px, 0.55fr);
  align-items: end;
  gap: 80px;
  margin-bottom: 40px;
}

.section-heading p,
.tremor-method > div:first-child > p {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.section-heading > span,
.tremor-method > div:first-child > span {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.6;
}

.post-list {
  padding: 0;
  border-top: 1px solid var(--line-strong);
  margin: 0;
  list-style: none;
}

.post-row {
  position: relative;
  display: grid;
  min-height: 116px;
  grid-template-columns: 56px minmax(0, 1fr) minmax(180px, 0.42fr) repeat(3, 92px) 36px;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  transition: background-color 160ms ease;
}

.post-row:hover,
.post-row:focus-within {
  background: color-mix(in srgb, var(--blue) 3%, var(--surface));
}

.post-rank {
  color: var(--muted);
  font-size: 18px;
  font-weight: 700;
}

.post-copy {
  min-width: 0;
}

.post-copy a {
  display: -webkit-box;
  overflow: hidden;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.post-copy a:hover {
  color: var(--blue);
}

.post-copy span {
  display: block;
  overflow: hidden;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.post-impact {
  display: grid;
  gap: 8px;
}

.post-impact span {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
}

.post-impact b {
  color: var(--ink);
}

.impact-track {
  height: 5px;
  overflow: hidden;
  border-radius: 3px;
  background: var(--surface-soft);
}

.impact-track i {
  display: block;
  width: var(--impact, 0%);
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
  transition: width 500ms ease;
}

.post-metric {
  display: grid;
  gap: 4px;
}

.post-metric span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
}

.post-metric svg {
  width: 14px;
  height: 14px;
}

.post-metric strong {
  font-size: 16px;
}

.post-open {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
}

.post-open svg {
  width: 16px;
  height: 16px;
}

.post-row:hover .post-open {
  border-color: var(--blue);
  color: var(--blue);
}

.post-skeleton {
  height: 116px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--blue) 5%, transparent), transparent);
  background-size: 220% 100%;
  animation: skeleton 1.5s linear infinite;
}

@keyframes skeleton {
  to { background-position: -220% 0; }
}

.tremor-method {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(560px, 1.2fr);
  gap: 80px;
  border-top: 1px solid var(--line-strong);
}

.tremor-method > div:first-child > span {
  display: block;
  max-width: 560px;
  margin-top: 20px;
}

.formula-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.formula-grid article {
  display: grid;
  align-content: center;
  padding: 24px;
  border-right: 1px solid var(--line);
}

.formula-grid article:last-child {
  border-right: 0;
}

.formula-grid span {
  color: var(--blue);
  font-size: 34px;
  font-weight: 800;
}

.formula-grid strong {
  margin-top: 14px;
  font-size: 15px;
}

.formula-grid small {
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.method-note {
  display: flex;
  grid-column: 1 / -1;
  align-items: flex-start;
  gap: 11px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.method-note svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: var(--blue);
}

.tremor-footer {
  display: flex;
  min-height: 100px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.tremor-footer a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--blue);
  font-weight: 700;
}

.tremor-footer svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 1120px) {
  .daily-tremor-panel {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .seismograph-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .seismograph-controls {
    width: 100%;
    justify-content: space-between;
  }

  .post-row {
    grid-template-columns: 44px minmax(0, 1fr) 150px repeat(3, 72px) 34px;
    gap: 12px;
  }

  .hot-thread-row {
    grid-template-columns: 50px minmax(0, 1fr) repeat(3, 92px) 34px;
    gap: 13px;
  }
}

@media (max-width: 860px) {
  .tremor-header,
  main,
  .tremor-footer {
    width: min(calc(100% - 28px), var(--content));
  }

  .tremor-header {
    grid-template-columns: 1fr auto;
  }

  .tremor-header nav {
    display: none;
  }

  .tremor-intro {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 42px;
    padding: 70px 0 54px;
  }

  .current-state {
    grid-template-columns: 1fr auto;
    align-items: end;
    padding: 20px 0 0;
    border-top: 1px solid var(--line-strong);
    border-left: 0;
  }

  .current-state > div {
    grid-column: 2;
    grid-row: 1 / span 3;
    margin: 0;
  }

  .current-state p {
    max-width: 260px;
  }

  .seismograph-controls,
  .trace-legend {
    align-items: stretch;
    flex-direction: column;
  }

  .trace-legend {
    width: 100%;
  }

  .trace-legend label,
  .refresh-button {
    justify-content: center;
  }

  .chart-shell {
    height: 360px;
  }

  .spike-strip {
    grid-template-columns: 1fr;
  }

  .spike-strip-label {
    min-height: 54px;
    border-right: 0;
    border-bottom: 1px solid #263345;
  }

  .spike-events {
    grid-template-columns: 1fr;
  }

  .spike-events > a,
  .spike-events > a:nth-child(n + 4) {
    border-right: 0;
    border-bottom: 1px solid #263345;
  }

  .signal-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .signal-summary article:nth-child(2) {
    border-right: 0;
  }

  .signal-summary article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .section-heading,
  .tremor-method {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .daily-tremor-panel {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(320px, auto) auto;
  }

  .daily-tremor-summary {
    grid-row: auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .daily-tremor-summary article {
    min-height: 112px;
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .daily-tremor-summary article:last-child {
    border-right: 0;
  }

  .daily-chart-shell,
  #daily-tremor-canvas {
    min-height: 320px;
  }

  .post-row {
    grid-template-columns: 34px minmax(0, 1fr) 34px;
    padding: 18px 0;
  }

  .post-impact,
  .post-metric {
    display: none;
  }

  .formula-grid {
    grid-template-columns: 1fr;
  }

  .formula-grid article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .formula-grid article:last-child {
    border-bottom: 0;
  }

  .method-note {
    grid-column: auto;
  }

  .hot-thread-panel-head,
  .hot-thread-panel-head > div {
    align-items: flex-start;
    flex-direction: column;
  }

  .hot-thread-panel-head {
    justify-content: center;
    gap: 5px;
    padding: 15px 0;
  }

  .hot-thread-panel-head > div {
    gap: 3px;
  }

  .hot-thread-row {
    grid-template-columns: 40px minmax(0, 1fr) 34px;
    gap: 12px;
    padding: 20px 0;
  }

  .hot-thread-metric {
    display: none;
  }
}

@media (max-width: 560px) {
  .daily-tremor-summary {
    grid-template-columns: 1fr;
  }

  .daily-tremor-summary article,
  .daily-tremor-summary article:last-child {
    min-height: 92px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .daily-tremor-summary article:last-child {
    border-bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
