:root {
  color-scheme: dark;
  --bg: #07111f;
  --panel: #0b1728;
  --panel-soft: #111f33;
  --line: #1e293b;
  --line-strong: #334155;
  --text: #f8fafc;
  --muted: #94a3b8;
  --cyan: #00e5ff;
  --blue: #315cff;
  --violet: #8b5cf6;
  --coral: #ff4d6d;
  --green: #00c896;
  --slate: #64748b;
  --font-display: "Space Grotesk", Inter, system-ui, sans-serif;
  --font-body: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", Consolas, monospace;
  --header-h: 63px;
  --tabs-h: 47px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  overflow-x: hidden;
  padding-bottom: 154px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3,
.kpi strong {
  font-family: var(--font-display);
  letter-spacing: 0;
}

h2 {
  font-size: 20px;
  line-height: 1.2;
}

h3 {
  font-size: 18px;
  line-height: 1.2;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  min-height: 38px;
  border: 1px solid color-mix(in srgb, var(--blue) 70%, var(--line));
  border-radius: 8px;
  background: var(--blue);
  color: var(--text);
  cursor: pointer;
  font-weight: 800;
  padding: 8px 13px;
}

button.secondary {
  background: var(--panel-soft);
  border-color: var(--line-strong);
  color: var(--text);
}

button.compact {
  border-radius: 8px;
  font-size: 12px;
  min-height: 30px;
  padding: 5px 9px;
}

button:disabled {
  cursor: wait;
  opacity: .65;
}

a {
  color: var(--cyan);
  font-weight: 800;
  text-decoration: none;
}

.buttonLink {
  align-items: center;
  background: var(--blue);
  border: 1px solid color-mix(in srgb, var(--blue) 70%, var(--line));
  border-radius: 10px;
  color: var(--text);
  display: inline-flex;
  font-weight: 800;
  min-height: 38px;
  padding: 8px 13px;
}

.buttonLink.secondary {
  background: var(--panel-soft);
  border-color: var(--line-strong);
}

.secondary.active,
.idPill.copied {
  background: var(--cyan);
  color: #08111f;
}

.idPill {
  align-items: center;
  background: color-mix(in srgb, var(--panel-soft) 80%, var(--line));
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  display: inline-flex;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  min-height: 24px;
  padding: 3px 8px;
}

.inlineTitle {
  align-items: center;
  display: flex;
  gap: 8px;
  min-width: 0;
}

main {
  padding: 18px 24px 28px;
}

.appHeader {
  align-items: center;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr auto auto;
  padding: 14px 24px;
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  transition: transform .18s ease;
}

.brandBlock,
.headerStatus,
.headerActions {
  align-items: center;
  display: flex;
  gap: 10px;
}

.brandBlock {
  align-items: flex-start;
  flex-direction: column;
  gap: 0;
}

.brandLogo {
  display: block;
  height: 34px;
  width: auto;
}

.workspaceBadge {
  border: 1px solid color-mix(in srgb, var(--cyan) 36%, var(--line));
  border-radius: 999px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
  max-width: 280px;
  overflow: hidden;
  padding: 5px 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.headerActions {
  justify-content: flex-end;
  position: relative;
}

.alertBadge {
  gap: 7px;
}

.alertBadge span {
  background: var(--cyan);
  border-radius: 999px;
  color: var(--bg);
  display: inline-flex;
  font-size: 12px;
  justify-content: center;
  min-width: 22px;
  padding: 3px 7px;
}

.alertBadge--new {
  border-color: var(--coral);
}

.alertBadge--new span {
  background: var(--coral);
  color: var(--text);
}

.opsMenu {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
  display: grid;
  gap: 8px;
  min-width: 190px;
  padding: 10px;
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 40;
}

.menuTab.active {
  border-color: var(--cyan);
}

.opsMenu[hidden] {
  display: none;
}

[hidden] {
  display: none !important;
}

.eyebrow,
.muted,
.kpi small {
  color: var(--muted);
  font-size: 12px;
}

.mono {
  font-family: var(--font-mono);
}

.statusDot {
  align-items: center;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  gap: 7px;
  white-space: nowrap;
}

.statusDot::before {
  background: var(--cyan);
  border-radius: 999px;
  box-shadow: 0 0 12px color-mix(in srgb, var(--cyan) 70%, transparent);
  content: "";
  height: 8px;
  width: 8px;
}

.statusDot--ok::before {
  background: var(--green);
}

.statusDot--error::before {
  background: var(--coral);
}

.statusDot--warning::before {
  background: var(--cyan);
}

.kpiGrid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 16px;
}

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

.kpi {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 14px;
}

.kpi:hover,
.item:hover,
.sourceCard:hover,
.chartCard:hover {
  border-color: color-mix(in srgb, var(--cyan) 38%, var(--line));
}

.kpi span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.kpi strong {
  font-size: 30px;
  line-height: 1;
}

.kpi--accent {
  border-color: color-mix(in srgb, var(--cyan) 48%, var(--line));
}

.kpi--accent strong {
  color: var(--cyan);
}

.positive {
  color: var(--green);
}

.negative {
  color: var(--coral);
}

.neutral {
  color: var(--muted);
}

.tabs {
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  overflow-x: auto;
  padding: 7px 0;
  position: sticky;
  top: var(--header-h);
  z-index: 18;
  backdrop-filter: blur(12px);
}

.tabs {
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

body.isScrolled .tabs {
  padding: 3px 0;
}

.tab {
  background: transparent;
  border-color: var(--line);
  color: var(--muted);
  flex-shrink: 0;
  min-height: 32px;
  padding: 5px 10px;
  white-space: nowrap;
}

body.isScrolled .tab {
  min-height: 28px;
  padding-bottom: 3px;
  padding-top: 3px;
}

.tab.active {
  background: color-mix(in srgb, var(--blue) 18%, transparent);
  border-color: var(--blue);
  color: var(--text);
}

.adminTabIndicator {
  border: 1px solid color-mix(in srgb, var(--cyan) 40%, var(--line));
  border-radius: 999px;
  color: var(--cyan);
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 800;
  margin-left: auto;
  padding: 5px 10px;
  white-space: nowrap;
}

.tabPanel {
  display: none;
}

.tabPanel.active {
  display: block;
}

.panelHeader {
  align-items: end;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 14px;
}

#tab-mentions .panelHeader {
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
  position: sticky;
  top: calc(var(--header-h) + var(--tabs-h));
  z-index: 17;
  backdrop-filter: blur(12px);
}

body.isScrolled #tab-mentions .panelHeader {
  padding: 5px 0;
}

.panelHeader.compact {
  align-items: center;
  margin-bottom: 10px;
}

.dashboardGrid {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(360px, 760px) minmax(280px, 1fr);
  min-width: 0;
}

.dashboardGrid > *,
.feed,
.list,
.charts {
  min-width: 0;
}

.splitGrid {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
}

.splitGrid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feed,
.list,
.charts,
.sourceGrid {
  display: grid;
  gap: 10px;
}

.sidePanel {
  display: grid;
  gap: 12px;
}

.mentionReaderPanel {
  align-self: start;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  max-height: calc(100vh - var(--header-h) - var(--tabs-h) - 176px);
  overflow: auto;
  padding: 14px 14px 148px;
  position: sticky;
  top: calc(var(--header-h) + var(--tabs-h) + 34px);
}

.mentionReaderHeader {
  align-items: start;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.mentionReaderShell {
  display: grid;
  gap: 14px;
}

.embeddedArticleReader {
  display: grid;
  gap: 12px;
}

.embeddedArticleReader .articleReaderParagraph {
  font-size: 15px;
  line-height: 1.62;
}

.filters,
.sourceToolbar {
  display: grid;
  gap: 8px;
}

.filters {
  grid-template-columns: 1fr 150px;
}

.mentionFilters {
  align-items: center;
  grid-template-columns: minmax(180px, 1.2fr) 150px auto;
  min-width: min(760px, 100%);
}

.mentionFilterDock {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  min-width: min(820px, 100%);
}

.sheetHeader,
.filterToggle {
  display: none;
}

.extraFilters {
  display: none;
  gap: 8px;
  grid-column: 1 / -1;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
}

.extraFilters--open {
  display: grid;
  margin-top: 10px;
}

.analysisFilterDock {
  min-width: min(980px, 100%);
}

.analysisFilters {
  grid-template-columns: minmax(120px, .8fr) minmax(150px, 1fr) minmax(130px, .8fr) auto;
  min-width: min(920px, 100%);
}

.analysisExtraFilters {
  grid-template-columns: minmax(220px, 1.5fr) minmax(160px, 1fr) auto auto;
}

.activeFilterChips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -4px 0 12px;
}

.activeFilterChips[hidden] {
  display: none;
}

.filterChip {
  background: color-mix(in srgb, var(--cyan) 12%, var(--panel-soft));
  border-color: color-mix(in srgb, var(--cyan) 44%, var(--line));
  color: var(--cyan);
  min-height: 28px;
  padding: 4px 8px;
}

.combobox {
  min-width: 0;
  position: relative;
}

.combobox input {
  width: 100%;
}

.comboOptions {
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  box-shadow: 0 18px 50px rgb(0 0 0 / .34);
  display: grid;
  left: 0;
  max-height: 320px;
  overflow: auto;
  padding: 6px;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 15;
}

.comboSection {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  padding: 7px 8px 4px;
  text-transform: uppercase;
}

.comboOption {
  background: transparent;
  border-color: transparent;
  color: var(--text);
  justify-content: flex-start;
  min-height: 34px;
  overflow-wrap: anywhere;
  padding: 7px 8px;
  text-align: left;
}

.comboOption:hover,
.comboOption--active {
  background: color-mix(in srgb, var(--cyan) 10%, var(--panel-soft));
  border-color: color-mix(in srgb, var(--cyan) 34%, var(--line));
}

.comboOption--muted {
  color: var(--muted);
}

.sourceToolbar {
  grid-template-columns: minmax(220px, 1.5fr) repeat(3, minmax(130px, 1fr));
  margin-bottom: 12px;
}

.searchPanel {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(220px, 1fr) auto;
  margin-bottom: 8px;
}

.searchResult {
  border-left: 3px solid var(--cyan);
}

.searchTitle {
  font-size: 16px;
  overflow-wrap: anywhere;
}

label {
  color: var(--muted);
  display: grid;
  font-size: 12px;
  gap: 5px;
}

.inlineToggle {
  align-items: center;
  display: inline-flex;
  gap: 7px;
}

.inlineToggle input {
  min-height: auto;
  width: auto;
}

input,
select,
textarea {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  min-height: 38px;
  padding: 8px 10px;
  width: 100%;
}

input::placeholder,
textarea::placeholder {
  color: color-mix(in srgb, var(--muted) 70%, transparent);
}

textarea {
  min-height: 150px;
  resize: vertical;
}

.importForm {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  gap: 12px;
  margin-top: 10px;
  max-width: 880px;
  padding: 16px;
}

.clientAdminSide {
  display: grid;
  gap: 14px;
}

.onboardingBox {
  background: var(--panel);
  border: 1px solid color-mix(in srgb, var(--cyan) 42%, var(--line));
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 14px;
}

.onboardingBox textarea {
  font-family: var(--font-mono);
  font-size: 12px;
  min-height: 210px;
}

.loginPage {
  min-height: 100vh;
  padding-bottom: 0;
}

.loginShell {
  align-items: center;
  display: grid;
  min-height: 100vh;
  padding: 24px;
}

.loginPanel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 18px;
  margin: 0 auto;
  max-width: 430px;
  padding: 28px;
  width: 100%;
}

.loginLogo {
  height: 36px;
  width: fit-content;
}

.loginPanel h1 {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.1;
}

.loginForm {
  display: grid;
  gap: 12px;
}

.advancedOptions {
  border-radius: 8px;
  display: grid;
  gap: 10px;
  margin-top: 0;
  padding: 10px;
}

.advancedOptions[open] {
  background: color-mix(in srgb, var(--panel-soft) 55%, transparent);
}

.advancedOptions label,
.advancedOptions fieldset {
  margin-top: 10px;
}

.pipelineHealth {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-bottom: 16px;
}

.radioRecordingHealth {
  margin-bottom: 20px;
}

.radioRecordingHealth .list {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.radioHealthRow {
  border-left: 3px solid var(--line);
}

.radioHealthRow--warning {
  border-left-color: var(--cyan);
}

.radioHealthRow--error {
  border-left-color: var(--coral);
}

.radioHealthHead {
  align-items: center;
  display: flex;
  gap: 8px;
}

.radioHealthHead strong {
  flex: 1;
  overflow-wrap: anywhere;
}

.systemStatusGrid {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
  margin-bottom: 20px;
}

.systemCoveragePanel {
  min-width: 0;
}

.systemCoverageChart {
  min-height: 220px;
  overflow: hidden;
}

.systemCoverageChart svg {
  display: block;
  height: auto;
  max-width: 100%;
  width: 100%;
}

.chartAxis,
.chartGuide {
  fill: none;
  stroke: color-mix(in srgb, var(--muted) 28%, transparent);
  stroke-width: 1;
}

.chartGuide {
  stroke-dasharray: 5 5;
}

.chartLabel {
  fill: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
}

.coverageLine {
  fill: none;
  stroke: var(--cyan);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.coveragePoint {
  fill: var(--panel);
  stroke: var(--cyan);
  stroke-width: 2;
}

.coveragePoint--draining {
  fill: var(--cyan);
}

.miniTable {
  display: grid;
  gap: 4px;
  margin-top: 10px;
}

.miniTableRow {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) 56px 56px 56px;
  min-width: 0;
}

.miniTableRow > * {
  overflow-wrap: anywhere;
}

.miniTableHead {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.systemIncidentsSection {
  margin-top: 20px;
}

.systemIncidentForm {
  margin-top: 0;
}

.incidentTimelineItem {
  border-left: 3px solid var(--line);
}

.incidentTimelineItem--ok {
  border-left-color: var(--green);
}

.incidentTimelineItem--warning {
  border-left-color: var(--cyan);
}

.incidentTimelineItem--error {
  border-left-color: var(--coral);
}

.sectionTitle {
  align-items: start;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin: 18px 0 10px;
}

.checkboxGrid {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin: 0;
  padding: 12px;
}

.inlineCheck {
  align-items: center;
  display: flex;
  gap: 8px;
}

.inlineCheck input {
  min-height: auto;
  width: auto;
}

details {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-top: 14px;
  padding: 12px;
}

summary {
  color: var(--text);
  cursor: pointer;
  font-weight: 800;
}

.item,
.sourceCard,
.chartCard {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  gap: 9px;
  min-width: 0;
  padding: 13px;
  transition: border-color .15s ease;
}

.sourceCard--favorite {
  border-color: color-mix(in srgb, var(--cyan) 62%, var(--line));
}

.sourceCard--ignored {
  opacity: .66;
}

.mention {
  border-left: 3px solid var(--cyan);
}

.mention--negative {
  border-left-color: var(--coral);
}

.mention--positive {
  border-left-color: var(--green);
}

.itemTop,
.meta,
.mentionSource,
.sourceCardTop {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
}

.meta,
.mentionSource {
  justify-content: flex-start;
}

.sourceCardTop {
  align-items: flex-start;
}

.sourceCardText {
  display: grid;
  flex: 1;
  gap: 2px;
  min-width: 120px;
}

.sourceCardText strong,
.mentionSource strong,
.itemTop strong {
  overflow-wrap: anywhere;
}

.mentionHeadline {
  font-weight: 800;
  overflow-wrap: anywhere;
}

.sourceActions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  min-width: 0;
}

.iconButton {
  align-items: center;
  aspect-ratio: 1;
  background: var(--panel-soft);
  border-color: var(--line-strong);
  color: var(--muted);
  display: inline-flex;
  justify-content: center;
  min-height: 30px;
  padding: 0;
  width: 30px;
}

.iconButton.active {
  background: color-mix(in srgb, var(--cyan) 20%, transparent);
  border-color: color-mix(in srgb, var(--cyan) 64%, var(--line));
  color: var(--cyan);
}

.excerpt {
  color: color-mix(in srgb, var(--text) 92%, var(--muted));
  font-size: 15px;
  line-height: 1.5;
  max-height: 9em;
  overflow: auto;
}

.mentionMatches {
  display: grid;
  gap: 10px;
}

.mentionMatch {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 6px;
  padding-top: 10px;
}

.mentionMatch:first-child {
  border-top: 0;
  padding-top: 0;
}

mark {
  background: color-mix(in srgb, var(--cyan) 24%, transparent);
  border: 1px solid color-mix(in srgb, var(--cyan) 45%, transparent);
  border-radius: 5px;
  color: var(--text);
  padding: 0 3px;
}

.url,
.errorText {
  font-size: 12px;
  overflow-wrap: anywhere;
}

.url {
  color: var(--muted);
}

.errorText {
  color: var(--coral);
}

.helperText {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  margin: 0 0 12px;
}

.helperText.compact {
  font-size: 12px;
  margin: 8px 0;
}

.panelNotice {
  background: color-mix(in srgb, var(--cyan) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--cyan) 45%, var(--line));
  border-radius: 8px;
  color: var(--text);
  font-size: 13px;
  margin: 0 0 16px;
  padding: 10px 12px;
}

.panelNotice--error {
  background: color-mix(in srgb, var(--coral) 12%, transparent);
  border-color: color-mix(in srgb, var(--coral) 58%, var(--line));
}

.panelNotice--success {
  background: color-mix(in srgb, var(--green) 10%, transparent);
  border-color: color-mix(in srgb, var(--green) 45%, var(--line));
}

.analysisTabs {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 6px;
  margin: 0 0 16px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.analysisTab {
  align-items: center;
  background: transparent;
  border-color: var(--line);
  color: var(--muted);
  display: inline-flex;
  gap: 8px;
  min-height: 34px;
  white-space: nowrap;
}

.analysisTab .badge {
  font-size: 10px;
  min-height: 18px;
  padding: 3px 6px;
}

.analysisTab.active {
  background: color-mix(in srgb, var(--cyan) 12%, transparent);
  border-color: color-mix(in srgb, var(--cyan) 58%, var(--line));
  color: var(--text);
}

.analysisModule {
  display: none;
}

.analysisModule.active {
  display: block;
}

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

.emptyState {
  background: var(--panel);
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  color: var(--text);
  display: grid;
  gap: 6px;
  padding: 14px;
}

.insufficientState {
  background: color-mix(in srgb, var(--slate) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--slate) 48%, var(--line));
  border-radius: 8px;
  color: var(--muted);
  font-size: 12px;
  padding: 8px 10px;
}

.skeletonBlock {
  overflow: hidden;
  position: relative;
}

.skeletonLine {
  animation: skeletonPulse 1.2s ease-in-out infinite;
  background: linear-gradient(90deg, var(--panel-soft), color-mix(in srgb, var(--slate) 24%, var(--panel-soft)), var(--panel-soft));
  background-size: 220% 100%;
  border-radius: 8px;
  display: block;
  height: 13px;
  width: 100%;
}

.skeletonLine--short {
  width: 46%;
}

.skeletonLine--muted {
  width: 72%;
}

@keyframes skeletonPulse {
  0% { background-position: 120% 0; }
  100% { background-position: -120% 0; }
}

.topicHealthGrid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.topicHealthCard {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 14px;
}

.topicHealthHeader {
  align-items: start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  min-width: 0;
}

.topicHealthHeader h3 {
  overflow-wrap: anywhere;
}

.badge--trend-up {
  background: color-mix(in srgb, var(--green) 14%, transparent);
  border-color: color-mix(in srgb, var(--green) 52%, var(--line));
  color: var(--green);
}

.badge--trend-down {
  background: color-mix(in srgb, var(--coral) 13%, transparent);
  border-color: color-mix(in srgb, var(--coral) 52%, var(--line));
  color: var(--coral);
}

.badge--trend-flat {
  background: color-mix(in srgb, var(--slate) 16%, transparent);
  border-color: color-mix(in srgb, var(--slate) 48%, var(--line));
  color: var(--muted);
}

.topicScoreRow {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: auto minmax(92px, 1fr) 34px;
}

.topicScoreRow span {
  color: var(--muted);
  font-size: 12px;
}

.topicScoreRow strong {
  font-family: var(--font-mono);
  text-align: right;
}

.topicScoreMeter {
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  height: 9px;
  overflow: hidden;
}

.topicScoreMeter span {
  display: block;
  height: 100%;
}

.topicScoreMeter--high span {
  background: var(--coral);
}

.topicScoreMeter--medium span {
  background: var(--cyan);
}

.topicScoreMeter--low span {
  background: var(--slate);
}

.topicSentimentBar {
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  display: flex;
  height: 12px;
  overflow: hidden;
}

.topicSentimentSegment {
  min-width: 0;
}

.topicSentimentSegment--positive {
  background: var(--green);
}

.topicSentimentSegment--negative {
  background: var(--coral);
}

.topicSentimentSegment--neutral {
  background: var(--slate);
}

.topicSparkline {
  color: var(--cyan);
  display: block;
  height: 54px;
  width: 100%;
}

.editBanner {
  align-items: center;
  background: color-mix(in srgb, var(--cyan) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--cyan) 48%, var(--line));
  border-radius: 8px;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 8px 10px;
}

.editBanner span {
  color: var(--text);
  font-size: 13px;
}

.chartHeader {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.infoDetails {
  color: var(--muted);
  font-size: 12px;
}

.infoDetails summary {
  cursor: pointer;
  display: inline-flex;
  line-height: 1;
}

.infoDetails p {
  line-height: 1.45;
  margin: 8px 0 0;
}

.chip,
.badge {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  min-height: 24px;
  padding: 5px 8px;
}

.chip {
  background: color-mix(in srgb, var(--slate) 20%, transparent);
  border: 1px solid color-mix(in srgb, var(--slate) 55%, transparent);
  color: var(--text);
}

.badge {
  background: color-mix(in srgb, var(--slate) 24%, transparent);
  border: 1px solid color-mix(in srgb, var(--slate) 52%, transparent);
  color: var(--text);
}

.badge--radio,
.badge--live {
  background: color-mix(in srgb, var(--cyan) 16%, transparent);
  border-color: color-mix(in srgb, var(--cyan) 52%, transparent);
  color: var(--cyan);
}

.badge--rss,
.badge--article,
.badge--retroactive,
.badge--source {
  background: color-mix(in srgb, var(--blue) 18%, transparent);
  border-color: color-mix(in srgb, var(--blue) 58%, transparent);
  color: #9db2ff;
}

.badge--youtube,
.badge--detected {
  background: color-mix(in srgb, var(--violet) 18%, transparent);
  border-color: color-mix(in srgb, var(--violet) 56%, transparent);
  color: #c4b5fd;
}

.badge--ok,
.badge--positive,
.badge--recorded,
.badge--transcribed {
  background: color-mix(in srgb, var(--green) 15%, transparent);
  border-color: color-mix(in srgb, var(--green) 52%, transparent);
  color: var(--green);
}

.badge--negative,
.badge--high,
.badge--error {
  background: color-mix(in srgb, var(--coral) 16%, transparent);
  border-color: color-mix(in srgb, var(--coral) 56%, transparent);
  color: var(--coral);
}

.badge--paused,
.badge--manual,
.badge--favorite,
.badge--advertisement,
.badge--medium {
  background: color-mix(in srgb, var(--violet) 15%, transparent);
  border-color: color-mix(in srgb, var(--violet) 46%, transparent);
  color: #c4b5fd;
}

.badge--ignored {
  background: color-mix(in srgb, var(--coral) 14%, transparent);
  border-color: color-mix(in srgb, var(--coral) 42%, transparent);
  color: var(--coral);
}

.badge--neutral,
.badge--low,
.badge--keyword {
  background: color-mix(in srgb, var(--slate) 18%, transparent);
  border-color: color-mix(in srgb, var(--slate) 45%, transparent);
  color: var(--muted);
}

.badge--soon {
  background: color-mix(in srgb, var(--slate) 16%, transparent);
  border-color: color-mix(in srgb, var(--slate) 40%, transparent);
  color: var(--muted);
}

.sourceLogo {
  align-items: center;
  background: var(--panel-soft);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--cyan);
  display: inline-flex;
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-weight: 800;
  justify-content: center;
  overflow: hidden;
}

.sourceLogo--sm {
  height: 24px;
  width: 24px;
}

.sourceLogo--md {
  height: 38px;
  width: 38px;
}

.sourceLogo img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.sourceLogo--fallback {
  background: color-mix(in srgb, var(--cyan) 12%, var(--panel-soft));
}

audio {
  width: 100%;
}

.radioPlayer {
  align-items: center;
  background: color-mix(in srgb, var(--panel) 94%, var(--bg));
  border-top: 1px solid color-mix(in srgb, var(--cyan) 26%, var(--line));
  bottom: 0;
  box-sizing: border-box;
  box-shadow: 0 -18px 44px rgba(0, 0, 0, .34);
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(190px, .72fr) minmax(320px, .95fr) minmax(300px, 1fr) auto;
  left: 0;
  min-height: 126px;
  padding: 12px 24px;
  position: fixed;
  right: 0;
  z-index: 60;
}

.playerCollapse {
  display: none;
}

.playerNow {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.playerNow strong {
  font-family: var(--font-display);
  font-size: 17px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.playerSelectors,
.playerControls {
  align-items: center;
  display: grid;
  gap: 8px;
}

.playerSelectors {
  grid-template-columns: minmax(110px, .7fr) minmax(160px, 1.1fr) minmax(180px, .95fr) auto;
}

.playerTimezone {
  align-self: center;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  white-space: nowrap;
}

.playerControls {
  grid-template-columns: repeat(6, auto);
}

.playerTimeline {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.playerSeek {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: auto minmax(120px, 1fr) auto;
}

.playerSeek input {
  width: 100%;
}

.coverageTimeline {
  background: color-mix(in srgb, var(--bg) 72%, var(--panel-soft));
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  height: 18px;
  overflow: hidden;
  position: relative;
}

.coverageBlock {
  border-radius: 999px;
  bottom: 3px;
  position: absolute;
  top: 3px;
}

.coverageBlock--available {
  background: color-mix(in srgb, var(--cyan) 74%, var(--blue));
  box-shadow: 0 0 12px color-mix(in srgb, var(--cyan) 35%, transparent);
}

.coverageBlock--missing {
  background: color-mix(in srgb, var(--slate) 35%, transparent);
}

.coverageMarker {
  background: var(--text);
  bottom: 0;
  box-shadow: 0 0 10px rgba(248, 250, 252, .55);
  position: absolute;
  top: 0;
  width: 2px;
}

.coverageEmpty {
  color: var(--muted);
  display: block;
  font-size: 11px;
  line-height: 16px;
  text-align: center;
}

.playerAvailability {
  min-height: 16px;
  overflow-wrap: anywhere;
}

.playerAvailability--outside_window,
.playerAvailability--none_recent,
.playerAvailability--retention {
  color: var(--cyan);
}

.radioPlayer audio {
  display: none;
}

.clipBlock {
  display: grid;
  gap: 6px;
}

.mentionSeverity--high {
  border-color: color-mix(in srgb, var(--coral) 55%, var(--line));
  border-left: 4px solid var(--coral);
}

.incidentBlock {
  background: color-mix(in srgb, var(--coral) 8%, var(--panel-soft));
  border: 1px solid color-mix(in srgb, var(--coral) 35%, var(--line));
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 10px;
}

.incidentHeader,
.incidentActions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.incidentDetail,
.incidentTimeline p {
  color: var(--muted);
  font-size: 12px;
  margin: 0;
}

.incidentTimeline {
  border-top: 1px solid color-mix(in srgb, var(--coral) 24%, transparent);
  display: grid;
  gap: 4px;
  padding-top: 8px;
}

.liveAudioBlock {
  display: grid;
  gap: 6px;
  margin-top: 2px;
}

.clipBlock .muted {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 700;
}

.liveAudioBlock .muted,
.articleByline,
.storySiblings {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 700;
}

.storyTimelineStep {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  display: block;
  font: inherit;
  padding: 2px 0;
  text-align: left;
}

.storyTimelineStep:hover {
  color: var(--cyan);
  text-decoration: underline;
}

.playIcon {
  display: inline-block;
  font-size: 0.9em;
  margin-right: 6px;
}

.articleMode main > :not(#articleView),
.articleMode .tabs,
.articleMode .radioPlayer,
.articleMode .appFooter {
  display: none;
}

.articleView[hidden] {
  display: none;
}

.articleShell {
  align-items: start;
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 65ch) minmax(280px, 360px);
  justify-content: center;
  margin: 0 auto;
  max-width: 1180px;
  width: 100%;
}

.articleReader {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.articleBack {
  color: var(--muted);
  font-size: 12px;
  width: fit-content;
}

.articleReader h1 {
  font-family: var(--font-display);
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.articleMeta {
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 12px;
  gap: 8px 14px;
}

.articleReaderParagraph {
  color: color-mix(in srgb, var(--text) 92%, var(--muted));
  font-size: 18px;
  line-height: 1.72;
  overflow-wrap: anywhere;
}

mark {
  background: color-mix(in srgb, var(--cyan) 28%, transparent);
  border-radius: 4px;
  color: var(--text);
  padding: 0 2px;
}

.articleIntel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 14px;
  position: sticky;
  top: calc(var(--header-h) + 23px);
}

.articleOriginal {
  justify-content: center;
}

.intelBlock {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  padding-top: 12px;
}

.intelBlock h2 {
  font-size: 15px;
}

.intelMention {
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  display: grid;
  gap: 8px;
  padding: 10px;
}

.revisionItem {
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 6px;
  padding: 10px;
}

.runGroup {
  display: grid;
  gap: 10px;
}

.runGroupSummary {
  align-items: center;
  background: color-mix(in srgb, var(--cyan) 8%, var(--panel-soft));
  border: 1px solid color-mix(in srgb, var(--cyan) 28%, var(--line));
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  list-style: none;
  min-height: 0;
  padding: 10px 12px;
  text-align: left;
  width: 100%;
}

.runGroup--open .runGroupSummary .muted {
  color: var(--cyan);
}

.runGroupRest {
  display: grid;
  gap: 10px;
}

.mentionDialog {
  background: transparent;
  border: 0;
  color: var(--text);
  max-width: min(760px, calc(100vw - 28px));
  padding: 0;
  width: 760px;
}

.mentionDialog::backdrop {
  background: rgb(7 17 31 / 78%);
}

.mentionDialogShell {
  background: var(--panel);
  border: 1px solid color-mix(in srgb, var(--cyan) 30%, var(--line));
  border-radius: 12px;
  box-shadow: 0 24px 80px rgb(0 0 0 / 45%);
  display: grid;
  gap: 14px;
  max-height: min(82vh, 820px);
  overflow: auto;
  padding: 18px;
}

.mentionDialogHeader {
  align-items: start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.mentionDialogTitle {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.mentionDialogTitle h2 {
  overflow-wrap: anywhere;
}

.mentionDialogText {
  color: color-mix(in srgb, var(--text) 92%, var(--muted));
  line-height: 1.55;
  white-space: pre-wrap;
}

.detailGrid {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
  padding-top: 12px;
}

.detailRow {
  display: grid;
  gap: 4px;
  grid-template-columns: 120px minmax(0, 1fr);
}

.detailRow span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.detailRow strong {
  overflow-wrap: anywhere;
}

.mediaProfileBlock {
  align-items: center;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 12px;
  padding: 12px;
}

.mediaProfileText {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.mediaProfileText strong {
  overflow-wrap: anywhere;
}

.dialogActions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sourceGrid {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.sourceMore {
  margin-top: 12px;
}

.sourceMore[hidden] {
  display: none;
}

.ingestGrid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  margin-top: 12px;
}

.miniMetric {
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  gap: 6px;
  padding: 10px;
}

.miniMetric span {
  color: var(--muted);
  font-size: 12px;
}

.miniMetric strong {
  font-family: var(--font-display);
  font-size: 22px;
}

.chartSvg {
  height: auto;
  width: 100%;
}

.chartSvg text {
  fill: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
}

.chart-accent {
  fill: var(--blue);
}

.chart-positive,
.chart-ok {
  fill: var(--green);
}

.chart-negative,
.chart-error {
  fill: var(--coral);
}

.chart-neutral {
  fill: var(--slate);
}

.chart-radio {
  fill: var(--cyan);
}

.chart-rss {
  fill: var(--blue);
}

.chart-youtube {
  fill: var(--violet);
}

.chart-twitch {
  fill: var(--green);
}

.empty {
  color: var(--muted);
  font-size: 14px;
}

.appFooter {
  color: var(--muted);
  font-size: 12px;
  margin-top: 24px;
  text-align: center;
}

body.wallActive {
  overflow: hidden;
}

.wallMode {
  background: var(--bg);
  display: grid;
  grid-template-rows: auto 1fr auto;
  inset: 0;
  min-height: 100vh;
  padding: 28px 38px;
  position: fixed;
  z-index: 100;
}

.wallMode[hidden] {
  display: none;
}

.wallHeader {
  align-items: center;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 18px;
  grid-template-columns: auto 1fr auto;
  padding-bottom: 22px;
  position: relative;
  z-index: 1;
}

.wallHeader img {
  height: 46px;
  width: auto;
}

.wallHeader div {
  display: grid;
  gap: 4px;
}

.wallHeader strong {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 44px);
  line-height: 1;
}

.wallHeader span {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 13px;
}

.wallControls {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.wallPanel {
  align-content: center;
  display: grid;
  min-height: 0;
  overflow: hidden;
  padding: 34px 0;
  transition: opacity .18s ease, transform .18s ease;
}

.wallPanel:has(> .wallList) {
  align-content: start;
}

.wallSplit {
  align-items: stretch;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(300px, .85fr) minmax(420px, 1.15fr);
}

.wallHeroMetric {
  align-content: center;
  background: var(--panel);
  border: 1px solid color-mix(in srgb, var(--cyan) 30%, var(--line));
  border-radius: 12px;
  display: grid;
  gap: 16px;
  min-height: 320px;
  padding: 30px;
}

.wallHeroMetric.secondary {
  border-color: var(--line);
}

.wallHeroMetric span,
.wallSource {
  color: var(--cyan);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.wallHeroMetric strong {
  font-family: var(--font-display);
  font-size: clamp(56px, 8vw, 118px);
  line-height: .92;
}

.wallHeroMetric p,
.wallEmpty,
.wallMini p,
.wallMention p {
  color: color-mix(in srgb, var(--text) 78%, var(--muted));
  font-size: clamp(18px, 2vw, 28px);
  line-height: 1.35;
}

.wallList {
  display: grid;
  gap: 14px;
}

.wallList.compact {
  align-content: start;
}

.wallMention,
.wallMini {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 4px solid var(--cyan);
  border-radius: 12px;
  display: grid;
  gap: 10px;
  padding: 20px;
}

.wallMention {
  border-left-color: var(--coral);
}

.wallMention strong,
.wallMini strong {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.4vw, 38px);
  line-height: 1.1;
}

.wallMini p,
.wallMention p {
  font-size: clamp(16px, 1.6vw, 24px);
}

.wallBars {
  align-content: center;
  display: grid;
  gap: 18px;
}

.wallBarRow {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(150px, 1fr) minmax(180px, 1.5fr) auto;
}

.wallBarRow span {
  font-size: clamp(18px, 1.8vw, 30px);
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wallBarRow i {
  background: var(--cyan);
  border-radius: 999px;
  display: block;
  height: 18px;
  min-width: 6px;
}

.wallBarRow strong {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.4vw, 40px);
}

.wallDots {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: center;
  padding-top: 8px;
}

.wallDots button {
  aspect-ratio: 1;
  background: var(--panel-soft);
  border-color: var(--line-strong);
  color: var(--muted);
  min-height: 36px;
  padding: 0;
  width: 36px;
}

.wallDots button.active {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--bg);
}

@media (max-width: 1180px) {
  body {
    padding-bottom: 142px;
  }

  .dashboardGrid,
  .systemStatusGrid,
  .splitGrid,
  .splitGrid.three {
    grid-template-columns: 1fr;
  }

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

  .clientKpis {
    grid-template-columns: repeat(4, minmax(190px, 1fr));
  }

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

  .wallHeroMetric {
    min-height: 220px;
  }

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

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

  .mentionReaderPanel {
    max-height: none;
    position: static;
  }
}

@media (max-width: 900px) {
  body {
    padding-bottom: 64px;
  }

  body.headerHidden .appHeader {
    transform: translateY(calc(-1 * var(--header-h)));
  }

  body.headerHidden .tabs {
    top: 0;
  }

  body.headerHidden #tab-mentions .panelHeader {
    top: var(--tabs-h);
  }

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

  .articleIntel {
    order: -1;
    position: static;
  }

  .articleReader h1 {
    font-size: 31px;
  }

  .articleReaderParagraph {
    font-size: 16px;
  }

  .appHeader {
    gap: 8px;
    grid-template-columns: 1fr auto;
  }

  .tabs {
    top: var(--header-h);
    gap: 4px;
    margin-left: -2px;
    margin-right: -2px;
    padding-left: 0;
    padding-right: 0;
  }

  .tab {
    flex: 0 0 auto;
    font-size: 12px;
    padding-left: 5px;
    padding-right: 5px;
    text-align: center;
  }

  #tab-mentions .panelHeader {
    position: static;
  }

  .mentionReaderPanel {
    bottom: 0;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 -18px 44px rgba(0, 0, 0, .42);
    left: 0;
    max-height: 42vh;
    overflow: auto;
    padding: 16px 16px 76px;
    position: fixed;
    right: 0;
    transform: translateY(105%);
    transition: transform .18s ease;
    z-index: 80;
  }

  .mentionReaderPanel[data-empty="1"] {
    display: none;
  }

  body.mentionReaderOpen .mentionReaderPanel {
    display: grid;
    transform: translateY(0);
  }

  .headerStatus,
  .headerActions {
    justify-content: flex-start;
  }

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

  .headerActions {
    grid-column: 2;
    grid-row: 1;
    justify-content: flex-end;
  }

  .kpiGrid {
    display: grid;
    gap: 10px;
    margin: 0 -14px 14px;
    overflow: visible;
    padding: 0 14px 4px;
  }

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

  .kpi {
    min-width: 0;
    padding: 10px;
  }

  .kpi strong {
    font-size: 24px;
  }

  .mentionFilterDock {
    min-width: 0;
  }

  .filterToggle,
  .sheetHeader {
    display: flex;
  }

  .filterToggle {
    white-space: nowrap;
  }

  .mentionFilters {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 12px 12px 0 0;
    bottom: 0;
    box-shadow: 0 -18px 44px rgba(0, 0, 0, .42);
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr;
    left: 0;
    max-height: 82vh;
    min-width: 0;
    overflow: auto;
    padding: 16px;
    position: fixed;
    right: 0;
    transform: translateY(105%);
    transition: transform .18s ease;
    z-index: 90;
  }

  body.mentionFiltersOpen .mentionFilters {
    transform: translateY(0);
  }

  body.analysisFiltersOpen .analysisFilters {
    transform: translateY(0);
  }

  .sheetHeader {
    align-items: center;
    justify-content: space-between;
  }

  .extraFilters {
    display: grid;
    grid-template-columns: 1fr;
  }

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

  #moreMentionFilters,
  #moreAnalysisFilters {
    display: none;
  }

  .radioPlayer {
    cursor: pointer;
    gap: 8px;
    grid-template-columns: minmax(0, 1fr) auto auto;
    min-height: 56px;
    padding: 8px 12px;
  }

  .playerCollapse {
    display: inline-flex;
    grid-column: 2;
    grid-row: 1;
    justify-content: center;
    min-height: 36px;
    white-space: nowrap;
  }

  .radioPlayer .playerNow {
    align-items: center;
    grid-template-columns: minmax(0, 1fr);
  }

  .radioPlayer .playerNow .badge {
    display: none;
  }

  .radioPlayer .playerNow strong,
  .radioPlayer .playerNow .muted {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .playerSelectors,
  .playerTimeline {
    display: none;
  }

  .playerControls {
    display: flex;
    gap: 6px;
    grid-column: 3;
    grid-row: 1;
    justify-content: flex-end;
  }

  .playerControls button {
    font-size: 12px;
    min-height: 36px;
    padding: 5px 6px;
  }

  .playerControls button:not(#playerPlay):not(#playerPause) {
    display: none;
  }

  body.playerExpanded {
    overflow: hidden;
  }

  body.playerExpanded .radioPlayer {
    align-content: start;
    cursor: default;
    display: grid;
    grid-template-columns: 1fr;
    min-height: min(92vh, 760px);
    overflow: auto;
    padding: 16px;
  }

  body.playerExpanded .playerCollapse {
    grid-column: auto;
    grid-row: auto;
    justify-self: end;
  }

  body.playerExpanded .radioPlayer .playerNow .badge {
    display: inline-flex;
    justify-self: start;
  }

  body.playerExpanded .playerSelectors,
  body.playerExpanded .playerTimeline,
  body.playerExpanded .playerControls {
    display: grid;
    grid-column: auto;
    grid-row: auto;
    grid-template-columns: 1fr;
  }

  body.playerExpanded .playerControls button {
    display: inline-flex;
    justify-content: center;
  }

  body.playerExpanded .playerControls button:not(#playerPlay):not(#playerPause) {
    display: inline-flex;
  }

  .wallMode {
    padding: 18px;
  }

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

  .wallControls {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .wallHeader img {
    display: none;
  }

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

  .wallBarRow i {
    grid-column: 1 / -1;
  }

  .panelHeader {
    align-items: stretch;
    flex-direction: column;
  }

  .mentionFilters,
  .playerSelectors,
  .sourceToolbar,
  .filters {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 540px) {
  body {
    padding-bottom: 64px;
  }

  main,
  .appHeader {
    padding-left: 14px;
    padding-right: 14px;
  }

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

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

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