:root {
  color-scheme: light;
  --ink: #000000;
  --muted: #4a504c;
  --dim: #737c76;
  --cyan: #09aab5;
  --green: #7da510;
  --magenta: #d93d96;
  --amber: #cca100;
  --red: #d6243f;
  --panel: rgba(255, 255, 255, 0.76);
  --line: rgba(0, 0, 0, 0.08);
  --shadow: 0 10px 35px rgba(0, 0, 0, 0.06);
  --radius: 16px;
  
  --font-sans: 'Geist Mono', ui-monospace, monospace;
  --font-mono: 'Geist Mono', ui-monospace, monospace;
  --font-orbitron: 'Geist Mono', ui-monospace, monospace;
  
  font-family: var(--font-sans);
}

html, body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  height: 100%;
}

* {
  margin: 0;
  box-sizing: border-box;
}

.hidden {
  display: none !important;
}

html,
body {
  background: #000;
  overflow: hidden;
  color: var(--ink);
}

/* Outer layout frame: Inset rounded viewport white card */
.app-frame {
  position: fixed;
  inset: 6px;
  border-radius: 20px;
  overflow: hidden;
  transform: translateZ(0);
  background: #fff;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* Header styling */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  padding: 0 16px;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}

.brand-logo {
  display: block;
  width: 168px;
  height: 30px;
  flex: 0 0 auto;
  filter: drop-shadow(0 4px 9px rgba(0, 0, 0, 0.12));
}

.brand-logo svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.rwave-word text {
  font-family: "Orbitron", "Space Grotesk", Arial Black, Arial, sans-serif;
  font-size: 27px;
  font-weight: 900;
  letter-spacing: 0;
  font-style: italic;
}

.rwave-base {
  fill: #030303;
  filter: url(#rwave-mark-glow);
  paint-order: stroke fill;
  stroke: rgba(0, 0, 0, 0.42);
  stroke-width: 0.7px;
}

.rwave-speedline {
  fill: none;
  stroke: rgba(0, 0, 0, 0.16);
  stroke-width: 4.8px;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rwave-glowline {
  fill: none;
  stroke: url(#rwave-spectrum);
  stroke-width: 3.2px;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rwave-pulse {
  fill: none;
  stroke: url(#rwave-spectrum);
  stroke-width: 2.2px;
  stroke-linecap: round;
  opacity: 1;
}

.rwave-synapse {
  fill: none;
  stroke: url(#rwave-spectrum);
  stroke-width: 1px;
  opacity: 0.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rwave-node {
  fill: #ffffff;
  stroke: url(#rwave-spectrum);
  stroke-width: 1px;
  animation: logo-node-glow 2.4s infinite ease-in-out;
}

.node-a { animation-delay: 0s; }
.node-b { animation-delay: 0.5s; }
.node-c { animation-delay: 1.0s; }
.node-d { animation-delay: 0.2s; }
.node-e { animation-delay: 0.7s; }
.node-f { animation-delay: 1.2s; }
.node-g { animation-delay: 0.4s; }
.node-h { animation-delay: 0.9s; }

@keyframes logo-node-glow {
  0%, 100% {
    opacity: 0.6;
    fill: #ffffff;
    stroke-width: 0.6px;
  }
  50% {
    opacity: 1;
    fill: #31eaff;
    stroke-width: 1.2px;
  }
}


.brand-title-row {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.beta-badge {
  display: inline-flex;
  align-items: center;
  height: 15px;
  padding: 0 6px;
  border: 1px solid rgba(255, 47, 145, 0.42);
  border-radius: 999px;
  background: rgba(255, 47, 145, 0.1);
  color: #c91469;
  font-family: var(--font-mono);
  font-size: 0.48rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
}

.brand small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: var(--muted);
  letter-spacing: 0.02em;
  margin-top: 2px;
}

.brand small.tagline-animate {
  display: block;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s ease;
}

.brand small.tagline-animate.slide-out {
  transform: translateY(8px);
  opacity: 0;
}

.brand small.tagline-animate.slide-in {
  transform: translateY(-8px);
  opacity: 0;
}

.beta-badge.tagline-animate {
  display: inline-flex;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s ease;
}

.beta-badge.tagline-animate.slide-out {
  transform: translateY(8px);
  opacity: 0;
}

.beta-badge.tagline-animate.slide-in {
  transform: translateY(-8px);
  opacity: 0;
}

.country-control {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.12);
  padding: 5px 13px;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(10px);
}

.country-control span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.68);
  text-transform: uppercase;
}

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

.country-control select {
  background: transparent;
  border: none;
  color: #0b0d0e;
  outline: none;
  font-size: 0.84rem;
  font-weight: 650;
  cursor: pointer;
}

.status-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(9, 170, 181, 0.1);
  border: 1px solid rgba(9, 170, 181, 0.34);
  color: #044f59;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  box-shadow:
    0 6px 18px rgba(9, 170, 181, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(10px);
}

/* Studio layout */
.studio-unified {
  position: relative;
  flex: 1;
  display: grid;
  grid-template-columns: 340px 1fr 340px;
  grid-template-rows: 1fr auto;
  gap: 12px;
  padding: 12px 8px 8px 8px;
  height: calc(100vh - 60px);
  box-sizing: border-box;
  transition: grid-template-columns 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.studio-unified.minimized-right {
  grid-template-columns: 340px 1fr 48px;
}

/* Visualizer background */
.visualizer-wrapper {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #FAF4F2;
  z-index: 1;
  height: 100%;
}

#visualizer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.visualizer-wrapper::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(to bottom, transparent 60%, rgba(250, 244, 242, 0.45));
  pointer-events: none;
}

.startup-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 28;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 112px;
  height: 112px;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.32);
  border-radius: 999px;
  color: #000;
  background: rgba(250, 244, 242, 0.72);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.48),
    0 0 34px rgba(9, 170, 181, 0.12),
    0 18px 56px rgba(0, 0, 0, 0.12);
  font-family: var(--font-mono);
  transform: translate(-50%, -50%);
  cursor: pointer;
  backdrop-filter: blur(14px);
  transition:
    opacity 240ms ease,
    transform 240ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.startup-play:hover {
  border-color: rgba(0, 0, 0, 0.56);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.58),
    0 0 44px rgba(9, 170, 181, 0.18),
    0 18px 56px rgba(0, 0, 0, 0.16);
}

.startup-play.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.92);
}

.startup-play-icon {
  width: 0;
  height: 0;
  margin-left: 8px;
  border-top: 21px solid transparent;
  border-bottom: 21px solid transparent;
  border-left: 32px solid #000;
  filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.16));
}

body.startup-idle .layout-control-group,
body.startup-idle .club-mode-btn,
body.startup-idle .club-country-status,
body.startup-idle .visualizer-wrapper::after {
  opacity: 0;
  pointer-events: none;
}

body.startup-idle .visualizer-wrapper {
  background: #FAF4F2;
}

.layout-control-group {
  position: absolute;
  top: 17px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  max-width: calc(100% - 132px);
  height: 32px;
  padding: 0;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  z-index: 12;
  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(8px);
  transition: opacity 0.18s ease, border-color 0.15s ease, background 0.15s ease;
}

.model-badge-btn {
  min-width: 0;
  max-width: min(360px, calc(100vw - 260px));
  height: 100%;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: inherit;
  background: transparent;
  border: 0;
  padding: 0 13px 0 17px;
  border-radius: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.model-badge-btn:hover {
  background: rgba(0, 0, 0, 0.045);
  color: var(--ink);
}

.layout-icon-btn {
  display: grid;
  place-items: center;
  flex: 0 0 32px;
  width: 32px;
  height: 100%;
  color: inherit;
  background: transparent;
  border: 0;
  border-left: 1px solid rgba(0, 0, 0, 0.08);
  padding: 0;
  border-radius: 0;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.layout-icon-btn:hover {
  background: rgba(0, 0, 0, 0.08);
  color: #000;
}

.top-play-icon {
  width: 0;
  height: 0;
  margin-left: 2px;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid currentColor;
}

.layout-icon-btn.is-playing .top-play-icon {
  width: 9px;
  height: 11px;
  margin-left: 0;
  border: 0;
  border-left: 3px solid currentColor;
  border-right: 3px solid currentColor;
}

.club-country-status {
  position: absolute;
  top: 48%;
  left: 50%;
  z-index: 13;
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(2, 4, 8, 0.72);
  color: #ffffff;
  overflow: hidden;
  pointer-events: none;
  transform: translate(-50%, -50%);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.28),
    0 0 16px rgba(255, 255, 255, 0.08);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  opacity: 1;
}

.club-country-flag {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  object-position: var(--flag-focus-x, 50%) center;
  image-rendering: auto;
}

.club-country-status[data-country="tr"] {
  --flag-focus-x: 40%;
}

.club-country-status[data-status="updating"] {
  animation: club-flag-blink 1.9s ease-in-out infinite;
  box-shadow:
    0 0 0 1px rgba(101, 245, 255, 0.16) inset,
    0 0 18px rgba(101, 245, 255, 0.16);
}

.club-country-status[data-status="updated"] {
  width: 42px;
  height: 42px;
  opacity: 1;
  animation: none;
  transform: translate(-50%, -50%);
}

@keyframes club-flag-blink {
  0%, 100% {
    opacity: 0;
  }
  45%, 55% {
    opacity: 1;
  }
}

/* Overlay cards */
.overlay-card {
  z-index: 10;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
  transition: border-color 0.25s, background 0.25s;
}

.overlay-card:hover {
  border-color: rgba(0, 0, 0, 0.14);
  background: rgba(255, 255, 255, 0.85);
}

.left-panel {
  padding: 20px;
}

.right-panel {
  padding: 16px;
  overflow-y: auto;
  gap: 16px;
}

/* Art orb container */
.orb-container {
  display: grid;
  place-items: center;
  margin: 12px 0 20px 0;
}

.art-orb {
  position: relative;
  display: grid;
  place-items: center;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(101, 245, 255, 0.15), transparent 60%);
  box-shadow: 
    0 0 40px rgba(101, 245, 255, 0.12),
    0 0 20px rgba(205, 251, 106, 0.08);
}

.art-orb img {
  position: relative;
  z-index: 2;
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.art-orb img[src=""] {
  display: none;
}

.orb-ring {
  position: absolute;
  inset: -6px;
  border: 1px solid rgba(101, 245, 255, 0.22);
  border-radius: 50%;
  animation: spin 15s linear infinite;
}

.ring-b {
  inset: 12px;
  border-color: rgba(205, 251, 106, 0.18);
  animation-duration: 9s;
  animation-direction: reverse;
}

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

/* Topic / News display context */
.panel-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.kicker {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: #1d5335; /* Dark Green / Olive for readability */
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.topic-context {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.topic-context h1 {
  margin: 0;
  font-size: 1.6rem;
  line-height: 1.15;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--ink);
  text-wrap: balance;
}

.topic-description {
  margin: 16px 0 0 0;
  max-height: 220px;
  overflow-y: auto;
  color: rgba(0, 0, 0, 0.72);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.55;
}

.topic-description:empty {
  display: none;
}

.brief {
  display: none !important;
  margin: 12px 0 0 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--muted);
  overflow-y: auto;
  max-height: 120px;
}

.patch-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 12px;
}

.patch-row span {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  color: var(--muted);
}

.trends-section-head {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 10px;
}

.section-head-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.section-head-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--muted);
  text-transform: none;
  letter-spacing: normal;
  transition: opacity 0.25s ease;
}

.section-head-status:has(> #x-pulse-status:empty) {
  display: none;
}

.status-indicator-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #10b981;
  display: inline-block;
  box-shadow: 0 0 8px #10b981;
  animation: status-pulse 2s infinite ease-in-out;
  flex-shrink: 0;
}

.section-head-status.updating .status-indicator-dot {
  background-color: #f59e0b; /* Amber/Orange when loading */
  box-shadow: 0 0 8px #f59e0b;
  animation: status-pulse-updating 1s infinite ease-in-out;
}

@keyframes status-pulse {
  0% {
    transform: scale(0.9);
    opacity: 0.6;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5);
  }
  50% {
    transform: scale(1.1);
    opacity: 1;
    box-shadow: 0 0 8px 3px rgba(16, 185, 129, 0.3);
  }
  100% {
    transform: scale(0.9);
    opacity: 0.6;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5);
  }
}

@keyframes status-pulse-updating {
  0% {
    transform: scale(0.9);
    opacity: 0.6;
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.5);
  }
  50% {
    transform: scale(1.1);
    opacity: 1;
    box-shadow: 0 0 8px 3px rgba(245, 158, 11, 0.3);
  }
  100% {
    transform: scale(0.9);
    opacity: 0.6;
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.5);
  }
}

#x-pulse-status {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--muted);
  font-weight: normal;
  text-transform: none;
}

/* Right panel scroll listings */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 10px;
}

.ghost-button {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  padding: 3px 8px;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.ghost-button:hover {
  border-color: rgba(101, 245, 255, 0.4);
  background: rgba(101, 245, 255, 0.06);
}

.source-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin: -2px 0 10px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
}

.source-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 28px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, opacity 0.15s;
}

.source-toggle-btn.active {
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 1px 5px rgba(22, 24, 28, 0.1);
}

.source-toggle-btn:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.source-toggle-btn.loading {
  opacity: 0.72;
}

.trend-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  flex: 1;
}

/* Trend & Track Card Styles */
.trend-card,
.track-card {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  width: 100%;
  padding: 8px;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}

.trend-card:hover,
.track-card:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(101, 245, 255, 0.35);
  transform: translateY(-1px);
}

.trend-card.active,
.track-card.active {
  background: rgba(101, 245, 255, 0.05);
  border-color: rgba(101, 245, 255, 0.5);
}

.trend-thumb,
.track-thumb {
  position: relative;
  width: 36px;
  height: 36px;
  overflow: hidden;
  border-radius: 4px;
  background: linear-gradient(135deg, rgba(101,245,255,0.1), rgba(205,251,106,0.1));
  border: 1px solid rgba(255,255,255,0.06);
}

.trend-thumb img,
.track-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.trend-card span,
.track-card span {
  display: block;
}

.trend-card strong,
.track-card strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trend-card span {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trend-desc {
  grid-column: 1 / -1;
  margin: 4px 0 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--muted);
  white-space: normal;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.trend-card.active .trend-desc {
  color: var(--ink);
}

.trend-desc-link {
  color: var(--magenta);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.trend-desc-link:hover {
  color: var(--cyan);
}

.x-social-chip,
.x-signal-badge {
  border-color: #050505 !important;
  background: #050505 !important;
  color: #ffffff !important;
}

.x-signal-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  margin-top: 6px;
  padding: 3px 7px;
  border: 1px solid #050505;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  line-height: 1.1;
}

.patch-row .x-social-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid #050505;
  background: #050505;
  color: #ffffff;
}

.patch-row .x-social-chip .x-logo-mark {
  display: inline-grid;
  flex: 0 0 auto;
  padding: 0;
  margin-top: 0;
  border: 0;
  background: transparent;
  color: #ffffff;
}

.trend-card .x-signal-badge {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trend-card .x-signal-badge .x-logo-mark,
.source-toggle .x-logo-mark,
.x-pulse-title .x-logo-mark,
.x-pulse-item .x-logo-mark {
  display: inline-grid;
  flex: 0 0 auto;
  margin-top: 0;
}

.x-signal-badge .x-logo-mark {
  background: transparent !important;
  color: #ffffff !important;
}

.x-logo-mark {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #050505;
  color: #ffffff;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
}

.x-logo-mark::before {
  content: "";
  display: block;
  width: 62%;
  height: 62%;
  background: url("/assets/x-logo-white.svg") center / contain no-repeat;
}

.x-logo-mark.mini {
  width: 14px;
  height: 14px;
}

.x-pulse-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  flex: 1;
}

.x-pulse-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.x-pulse-item {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  padding: 8px 9px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.48);
}

.x-pulse-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.x-pulse-meta {
  display: inline-flex !important;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 0;
}

.x-pulse-item strong {
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  line-height: 1.2;
}

.x-pulse-item span {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.62rem;
}

.x-pulse-item .news-trend-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--cyan);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.56rem;
  font-weight: 800;
  line-height: 1.1;
}

.x-pulse-item .x-logo-mark {
  color: #ffffff;
}

.x-pulse-item.matched {
  border-color: rgba(9, 170, 181, 0.26);
  background: rgba(9, 170, 181, 0.06);
}

.x-pulse-empty {
  padding: 8px 9px;
  border: 1px dashed rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
}

/* Secondary Systems sections */
.secondary-systems {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.toggle-trigger {
  margin-bottom: 0;
  border-bottom: none;
  padding: 6px 8px;
  border-radius: 6px;
  transition: background 0.15s;
}

.toggle-trigger:hover {
  background: rgba(255, 255, 255, 0.03);
}

.collapsible-content {
  overflow-y: auto;
  max-height: 160px;
  padding: 6px 0;
}

.collapsible-content.hidden {
  display: none !important;
}

.track-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.track-card span {
  font-size: 0.65rem;
  color: var(--muted);
  margin-top: 2px;
}

.dj-brief {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  font-size: 0.76rem;
  line-height: 1.45;
  color: var(--muted);
  max-height: 100px;
  overflow-y: auto;
  margin-bottom: 8px;
}

.meter-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.meter-grid div {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px;
  text-align: center;
}

.meter-grid span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: var(--muted);
  text-transform: uppercase;
}

.meter-grid strong {
  display: block;
  font-family: var(--font-orbitron);
  font-size: 0.88rem;
  color: var(--amber);
  margin-top: 4px;
}

.bottom-player {
  grid-column: 1 / -1;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(220px, 1fr) minmax(280px, 0.42fr);
  align-items: center;
  gap: 10px;
  min-height: 44px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(250, 244, 242, 0.78)),
    radial-gradient(circle at 12% 50%, rgba(205, 251, 106, 0.18), transparent 34%),
    radial-gradient(circle at 82% 45%, rgba(9, 170, 181, 0.16), transparent 30%);
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(24px);
  padding: 6px 10px;
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  box-sizing: border-box;
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 0;
  min-width: max-content;
  padding: 3px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: inset 0 1px 8px rgba(0, 0, 0, 0.04);
}

.icon-button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.15s, background 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.icon-button:hover {
  background: #ffffff;
  border-color: rgba(9, 170, 181, 0.36);
  box-shadow: 0 6px 16px rgba(9, 170, 181, 0.14);
  transform: translateY(-1px);
}

.icon-button.primary {
  width: 34px;
  height: 34px;
  background: #000;
  color: #000;
  border: none;
  box-shadow:
    0 0 0 4px rgba(205, 251, 106, 0.26),
    0 10px 26px rgba(0, 0, 0, 0.2);
}

#next-button,
#dj-button,
.track-title-row,
#track-artist {
  display: none !important;
}

.play-icon {
  width: 0;
  height: 0;
  margin-left: 2px;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid var(--green);
}

.is-playing .play-icon {
  width: 10px;
  height: 12px;
  border: none;
  border-left: 3px solid var(--green);
  border-right: 3px solid var(--green);
  margin-left: 0;
}

.next-icon {
  position: relative;
  width: 12px;
  height: 12px;
}

.next-icon::before,
.next-icon::after {
  position: absolute;
  inset: 1px auto 1px 0;
  content: "";
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 7px solid var(--ink);
}

.next-icon::after {
  left: 6px;
}

.dj-icon {
  position: relative;
  width: 14px;
  height: 14px;
}

.dj-icon::before {
  position: absolute;
  inset: 1px 3px 5px;
  content: "";
  border: 1.5px solid var(--ink);
  border-top-left-radius: 99px;
  border-top-right-radius: 99px;
  border-bottom: none;
}

.dj-icon::after {
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: 2px;
  height: 5px;
  content: "";
  border-right: 2px solid var(--green);
  border-left: 2px solid var(--cyan);
  box-shadow: 4px 0 0 rgba(255,255,255,0.7);
}

.track-details {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 0;
  padding: 0 12px;
  border: 1px solid rgba(101, 245, 255, 0.2);
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(12, 18, 28, 0.96), rgba(6, 9, 15, 0.9)),
    radial-gradient(circle at 0% 50%, rgba(101, 245, 255, 0.18), transparent 28%);
  box-shadow:
    inset 2px 0 0 rgba(101, 245, 255, 0.88),
    inset 0 0 0 1px rgba(255, 255, 255, 0.035),
    0 8px 24px rgba(0, 0, 0, 0.13);
  height: 34px;
  justify-content: center;
  overflow: hidden;
}

.track-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.track-details strong {
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-details span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: rgba(0, 0, 0, 0.54);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.track-details em {
  font-size: 0.68rem;
  color: var(--muted);
  font-style: normal;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 3px;
  opacity: 0.8;
}

.preference-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 4px;
  padding: 2px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.04);
}

.preference-button {
  width: 24px;
  height: 24px;
  background: rgba(255, 255, 255, 0.68);
  border: none;
  color: var(--dim);
  cursor: pointer;
  padding: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  transition: color 0.15s, transform 0.15s, background 0.15s;
}

.preference-button:hover {
  color: var(--ink);
  background: #ffffff;
  transform: translateY(-1px);
}

.preference-button.active {
  color: var(--cyan);
}

.preference-button#dislike-button.active {
  color: var(--red);
}

.like-icon,
.dislike-icon {
  position: relative;
  width: 14px;
  height: 14px;
  background: currentColor;
}

.like-icon {
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E") center/contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.dislike-icon {
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 15H23V13H19V15M12 19C12 20.1 11.1 21 10 21H8V15H10C11.1 15 12 15.9 12 17V19M2 13V15C2 16.1 2.9 17 4 17H6V11H4C2.9 11 2 11.9 2 13M12.9 5.3C12.7 4.2 11.8 3.5 10.7 3.5H8.3C7.2 3.5 6.3 4.2 6.1 5.3L5 11V13H15L13.9 5.3Z'/%3E%3C/svg%3E") center/contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 15H23V13H19V15M12 19C12 20.1 11.1 21 10 21H8V15H10C11.1 15 12 15.9 12 17V19M2 13V15C2 16.1 2.9 17 4 17H6V11H4C2.9 11 2 11.9 2 13M12.9 5.3C12.7 4.2 11.8 3.5 10.7 3.5H8.3C7.2 3.5 6.3 4.2 6.1 5.3L5 11V13H15L13.9 5.3Z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.volume-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 6px 10px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
}

.mix-control {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.mix-control span {
  font-family: var(--font-mono);
  font-size: 0.52rem;
  color: rgba(0, 0, 0, 0.56);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--cyan);
  background: transparent;
  height: 3px;
  border-radius: 99px;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(9, 170, 181, 0.58), rgba(0, 0, 0, 0.48));
}

input[type="range"]::-webkit-slider-thumb {
  width: 13px;
  height: 13px;
  margin-top: -5px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 3px 10px rgba(9, 170, 181, 0.28);
  appearance: none;
}

/* Acoustic Calibration Console Panel overlay */
.calibration-console {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.calibration-console.hidden {
  display: none !important;
  pointer-events: none;
  opacity: 0;
}

.console-box {
  width: min(850px, calc(100% - 40px));
  background: #050708;
  border: 1px solid rgba(255, 90, 115, 0.35);
  box-shadow: 
    0 0 65px rgba(255, 90, 115, 0.15),
    0 30px 90px rgba(0, 0, 0, 0.9);
  border-radius: 16px;
  overflow: hidden;
  font-family: var(--font-mono);
  padding: 24px;
  animation: console-slide-up 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

@keyframes console-slide-up {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.console-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 90, 115, 0.2);
  padding-bottom: 14px;
  margin-bottom: 16px;
}

.console-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--red);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--red);
  animation: flash-pulse 1.2s infinite alternate;
}

@keyframes flash-pulse {
  from { opacity: 0.3; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1.15); }
}

.console-header h3 {
  margin: 0;
  color: var(--red);
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.console-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s ease;
}

.console-close:hover {
  color: var(--red);
}

.console-sub {
  margin-bottom: 20px;
  font-size: 0.8rem;
  color: var(--muted);
}

.track-log {
  background: rgba(255, 90, 115, 0.05);
  border: 1px solid rgba(255, 90, 115, 0.12);
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--ink);
  margin-top: 8px;
  font-size: 0.85rem;
}

.console-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px;
  max-height: 320px;
  overflow-y: auto;
  padding-right: 6px;
  margin-bottom: 20px;
}

.console-meter {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 10px;
  border-radius: 8px;
}

.console-meter-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--muted);
  margin-bottom: 6px;
}

.console-meter-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.console-meter-val {
  color: var(--red);
  font-weight: 600;
}

.console-bar-track {
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  overflow: hidden;
}

.console-bar-fill {
  height: 100%;
  background: var(--red);
  box-shadow: 0 0 8px var(--red);
  width: 0;
  transition: width 1.2s cubic-bezier(0.23, 1, 0.32, 1);
}

.console-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 14px;
  font-size: 0.7rem;
}

.terminal-prompt {
  color: var(--dim);
}

.status-indicator {
  color: var(--green);
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* Custom Webkit scrollbar scroll indicators */
::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}
::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.05);
}
::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.08);
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.18);
}

/* Responsive Overrides */
@media (max-width: 1024px) {
  .studio-unified {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr auto;
    overflow-y: auto;
    height: auto;
  }
  .overlay-card {
    height: 380px;
  }
  .bottom-player {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .transition-code {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    max-height: 132px;
    padding: 11px 12px;
    font-size: 0.62rem;
  }
}

@media (max-width: 820px) {
  html,
  body {
    height: auto;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .app-frame {
    position: relative;
    inset: auto;
    min-height: calc(100vh - 12px);
    height: auto;
    margin: 6px;
    overflow: visible;
    transform: none;
  }

  .topbar {
    height: 58px;
    padding-top: 4px;
    align-items: center;
  }

  .status-pill {
    display: none;
  }

  .studio-unified {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 0;
    overflow: visible;
    padding-bottom: calc(178px + env(safe-area-inset-bottom, 0px));
  }

  .overlay-card,
  .left-panel,
  .right-panel,
  .topic-context,
  .panel-content-wrapper,
  .panel-tab-content,
  .trend-list {
    height: auto;
    max-height: none;
    overflow: visible;
  }

  .topic-context {
    flex: 0 1 auto;
  }

  .topic-context h1,
  .topic-description,
  .brief {
    max-height: none;
    overflow: visible;
  }

  .patch-row {
    margin-top: 12px;
  }

  .trend-card strong,
  .track-card strong,
  .trend-card span,
  .track-card span {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }

  .trend-desc {
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
  }

  .collapsible-content,
  .dj-brief {
    max-height: none;
    overflow: visible;
  }

  .bottom-player {
    position: fixed;
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom, 0px));
    left: 10px;
    z-index: 80;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    min-height: 0;
    padding: 8px 10px 10px;
    border-radius: 28px;
    overflow: hidden;
    isolation: isolate;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.5) 54%, rgba(248, 250, 250, 0.68)),
      radial-gradient(circle at 10% 16%, rgba(205, 251, 106, 0.22), transparent 34%),
      radial-gradient(circle at 86% 78%, rgba(9, 170, 181, 0.18), transparent 36%);
    border: 1px solid rgba(255, 255, 255, 0.68);
    -webkit-backdrop-filter: saturate(180%) blur(28px);
    backdrop-filter: saturate(180%) blur(28px);
    box-shadow:
      0 22px 52px rgba(15, 23, 42, 0.24),
      0 4px 14px rgba(255, 255, 255, 0.46),
      inset 0 1px 0 rgba(255, 255, 255, 0.9),
      inset 0 -1px 0 rgba(255, 255, 255, 0.42);
  }

  .bottom-player::before {
    position: absolute;
    inset: 1px;
    z-index: 0;
    content: "";
    pointer-events: none;
    border-radius: 27px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.64), rgba(255, 255, 255, 0.08) 42%, rgba(255, 255, 255, 0.22)),
      linear-gradient(110deg, rgba(255, 255, 255, 0.34), transparent 32%, rgba(255, 255, 255, 0.2) 76%);
  }

  .bottom-player > * {
    position: relative;
    z-index: 1;
  }

  body.club-mode-active .bottom-player::before {
    display: none;
  }

  .player-controls {
    justify-content: center;
    width: 100%;
    min-width: 0;
    height: 48px;
    padding: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
    border-color: rgba(255, 255, 255, 0.68);
    -webkit-backdrop-filter: saturate(160%) blur(18px);
    backdrop-filter: saturate(160%) blur(18px);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.76),
      inset 0 -1px 0 rgba(255, 255, 255, 0.24),
      0 6px 18px rgba(15, 23, 42, 0.08);
  }

  .player-controls .icon-button:not(#play-button) {
    display: none !important;
  }

  .icon-button.primary {
    width: 40px;
    height: 40px;
  }

  .track-details {
    width: 100%;
    height: auto;
    min-height: 38px;
    padding: 9px 14px;
    border-radius: 999px;
  }

  .bottom-code-panel pre {
    width: max-content;
    max-width: none;
    font-size: 0.64rem;
    line-height: 1.2;
    text-overflow: clip;
  }

  .bottom-code-panel.is-complete pre {
    animation: mobile-code-marquee 12s ease-in-out 0.8s infinite alternate;
  }

  .volume-controls {
    width: 100%;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.42);
    border-color: rgba(255, 255, 255, 0.68);
    -webkit-backdrop-filter: saturate(160%) blur(18px);
    backdrop-filter: saturate(160%) blur(18px);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.74),
      inset 0 -1px 0 rgba(255, 255, 255, 0.22),
      0 6px 18px rgba(15, 23, 42, 0.08);
  }

  .mix-control {
    gap: 7px;
  }

  .mix-control span {
    flex: 0 0 auto;
    font-size: 0.58rem;
  }

  .volume-controls input[type="range"]::-webkit-slider-thumb {
    width: 18px;
    height: 18px;
    margin-top: -7px;
  }

  #toggle-remix-btn > span:first-child {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }

  #toggle-remix-btn > span:first-child::before {
    content: "";
    flex: 0 0 auto;
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--green);
    box-shadow: 0 0 0 2px rgba(125, 165, 16, 0.12), 0 0 10px rgba(125, 165, 16, 0.5);
  }
}

@keyframes mobile-code-marquee {
  0%,
  18% {
    transform: translateX(0);
  }
  82%,
  100% {
    transform: translateX(calc(-100% + min(100%, calc(100vw - 72px))));
  }
}

/* Collapsible Right Panel styles */
.right-panel.minimized {
  padding: 12px 4px !important;
  display: flex !important;
  align-items: center;
  justify-content: flex-start;
  width: 48px !important;
}

.right-panel.minimized #right-panel-content {
  display: none !important;
}

.right-panel #minimized-preview-bar {
  display: none;
}

.right-panel.minimized #minimized-preview-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.restore-sidebar-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  margin-top: 4px;
}

.restore-sidebar-btn:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.minimized-trend-titles {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  width: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding-top: 12px;
  flex-grow: 1;
}

/* Hide scrollbar for minimized trend titles */
.minimized-trend-titles::-webkit-scrollbar {
  display: none;
}
.minimized-trend-titles {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.minimized-trend-item {
  background: transparent;
  border: none;
  font-family: var(--font-sans);
  font-size: 8px;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  white-space: nowrap;
  transition: color 0.15s, font-weight 0.15s;
  padding: 4px 0;
  display: block;
}

.minimized-trend-item:hover {
  color: var(--cyan);
}

.minimized-trend-item.active {
  color: var(--green);
  font-weight: 700;
}

.minimize-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s;
  line-height: 1;
}

.minimize-btn:hover {
  color: var(--magenta);
}

.head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.trend-card.ad-card {
  border: 1px dashed rgba(255, 110, 199, 0.45);
  background: rgba(255, 110, 199, 0.04);
}

.trend-card.ad-card:hover {
  border-color: var(--magenta);
  background: rgba(255, 110, 199, 0.08);
}

.trend-card.ad-card .trend-thumb {
  border-color: rgba(255, 110, 199, 0.25);
}

.ad-badge {
  background: var(--magenta);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  letter-spacing: 0.05em;
  display: inline-block;
  margin-left: 8px;
  vertical-align: middle;
}

/* Remix API styles */
.remix-api-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 10px 8px;
}

.remix-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.72rem;
  color: var(--muted);
  user-select: none;
  font-family: var(--font-sans);
}

.remix-checkbox-label input[type="checkbox"] {
  accent-color: var(--cyan);
  cursor: pointer;
  width: 14px;
  height: 14px;
}

.remix-checkbox-label:hover {
  color: var(--ink);
}

.remix-connect-btn {
  margin-top: 6px;
  width: 100%;
  text-align: center;
  font-weight: 600;
  border-color: var(--line) !important;
}

.remix-connect-btn:hover {
  border-color: var(--cyan) !important;
  color: var(--cyan) !important;
}

.remix-active-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--green);
  display: inline-block;
  box-shadow: 0 0 8px var(--green);
  margin-left: 6px;
}

.remix-active-dot.hidden {
  display: none !important;
}

.code-snippet-toast {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translate(-50%, 14px) scale(0.99);
  width: 620px;
  max-width: calc(100% - 96px);
  z-index: 999;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 0;
  box-shadow: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 0.72rem;
  color: #f8fafc;
  opacity: 0;
  pointer-events: none;
  overflow: visible;
  isolation: isolate;
  border-radius: 0;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.code-snippet-toast::before,
.code-snippet-toast::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
}

.code-snippet-toast::before {
  display: none;
}

.code-snippet-toast::after {
  display: none;
}

.code-snippet-toast.visible {
  opacity: 0.96;
  transform: translate(-50%, 0) scale(1);
}

.ai-control-header {
  position: relative;
  z-index: 1;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 0 8px;
  border-bottom: 0;
}

.ai-status-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #10b981;
  box-shadow:
    0 0 0 4px rgba(16, 185, 129, 0.1),
    0 0 12px rgba(16, 185, 129, 0.72);
  animation: terminal-status-pulse 1.5s infinite ease-in-out;
}

.ai-control-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.ai-kicker {
  display: none;
  color: rgba(226, 232, 240, 0.48);
  font-size: 0.46rem;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.ai-control-title strong {
  color: #65f5ff;
  font-size: 0.61rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  line-height: 1.1;
  text-transform: uppercase;
  text-shadow: 0 0 14px rgba(101, 245, 255, 0.36);
}

@keyframes terminal-status-pulse {
  0%, 100% {
    opacity: 0.55;
    transform: scale(0.92);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
    box-shadow:
      0 0 0 7px rgba(16, 185, 129, 0.12),
      0 0 22px rgba(16, 185, 129, 0.95);
  }
}

.code-snippet-toast .telemetry-tag {
  display: none;
}

.ai-metrics {
  display: none;
}

.ai-metrics span {
  min-width: 0;
  padding: 5px 7px;
  border: 1px solid rgba(101, 245, 255, 0.11);
  border-radius: 5px;
  background: rgba(3, 7, 18, 0.28);
  color: rgba(226, 232, 240, 0.55);
  font-size: 0.48rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ai-metrics b {
  color: #ffffff;
  font-weight: 800;
  text-shadow: 0 0 10px rgba(101, 245, 255, 0.28);
}

.code-snippet-toast pre {
  position: relative;
  z-index: 1;
  margin: 0;
  white-space: pre-wrap;
  word-break: normal;
  overflow-wrap: anywhere;
  min-height: 58px;
  max-height: 92px;
  background:
    linear-gradient(90deg, rgba(255, 47, 145, 0.46), transparent 3px),
    rgba(6, 9, 14, 0.56);
  padding: 9px 12px 10px;
  border-radius: 6px;
  border: 1px solid rgba(10, 18, 28, 0.12);
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.035);
  flex-grow: 1;
  overflow-y: hidden;
  overflow-x: auto;
  line-height: 1.42;
  scrollbar-width: thin;
  scrollbar-color: rgba(56, 189, 248, 0.2) transparent;
}

@keyframes ai-panel-scan {
  0%, 30% {
    transform: translateX(-100%);
    opacity: 0;
  }
  48% {
    opacity: 1;
  }
  70%, 100% {
    transform: translateX(100%);
    opacity: 0;
  }
}

@media (max-width: 720px) {
  .code-snippet-toast {
    bottom: 16px;
    max-width: calc(100% - 24px);
    padding: 0;
  }

  .ai-control-header {
    align-items: flex-start;
  }

  .code-snippet-toast .telemetry-tag {
    display: none;
  }

  .ai-metrics {
    grid-template-columns: 1fr;
  }

  .code-snippet-toast pre {
    min-height: 66px;
    max-height: 104px;
    padding: 10px 11px;
  }
}

.code-snippet-toast pre::-webkit-scrollbar {
  height: 4px;
}

.code-snippet-toast pre::-webkit-scrollbar-thumb {
  background: rgba(56, 189, 248, 0.2);
  border-radius: 2px;
}

.code-snippet-toast .syntax-keyword,
.bottom-code-panel .syntax-keyword { color: #ff3b6b; font-weight: 800; }
.code-snippet-toast .syntax-number,
.bottom-code-panel .syntax-number { color: #38bdf8; font-weight: 700; }
.code-snippet-toast .syntax-string,
.bottom-code-panel .syntax-string { color: #f8b13f; font-weight: 700; }
.code-snippet-toast .syntax-comment,
.bottom-code-panel .syntax-comment { color: #94a3b8; font-style: italic; }

/* Club Mode Button & Overrides */
.club-mode-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0;
  z-index: 12;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(8px);
}

.club-mode-btn:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.club-mode-btn.active {
  background: rgba(101, 245, 255, 0.16);
  border-color: rgba(101, 245, 255, 0.5);
  color: var(--cyan);
}

.club-mode-icon {
  position: relative;
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-radius: 50%;
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.22);
}

.club-mode-icon::before,
.club-mode-icon::after {
  position: absolute;
  content: "";
  border-radius: 50%;
  background: currentColor;
}

.club-mode-icon::before {
  width: 4px;
  height: 4px;
  left: 5px;
  top: 5px;
}

.club-mode-icon::after {
  width: 3px;
  height: 3px;
  right: -5px;
  top: -5px;
  box-shadow:
    -18px 4px 0 currentColor,
    -5px 22px 0 currentColor;
}

/* Active Club Mode Layout Styles */
body.club-mode-active {
  background: #000000 !important;
}

body.club-mode-active .topbar,
body.club-mode-active .left-panel,
body.club-mode-active .right-panel,
body.club-mode-active .visualizer-wrapper::after {
  display: none !important;
}

body.club-mode-active .app-frame {
  grid-template-rows: 1fr;
  background: #000000 !important;
  padding: 0;
  height: 100vh;
}

body.club-mode-active .studio-unified {
  display: block;
  width: 100vw;
  height: 100vh;
  position: fixed;
  inset: 0;
  padding: 0;
  margin: 0;
  z-index: 99999;
  background: #000000;
}

body.club-mode-active .visualizer-wrapper {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  border: none;
  border-radius: 0;
  background: #000000;
  z-index: 999999;
}

body.club-mode-active .club-mode-btn {
  top: 22px;
  right: auto;
  left: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  width: auto;
  min-width: 142px;
  height: 34px;
  padding: 0 12px 0 8px;
  background: #000000;
  border: 0;
  color: #ffffff;
  box-shadow: none;
}

body.club-mode-active .club-mode-btn:hover {
  background: #111111;
  color: #ffffff;
  box-shadow: none;
}

body.club-mode-active .club-mode-btn::after {
  content: "CLUB MODE";
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1;
}

body.club-mode-active .club-mode-icon {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-color: #ffffff;
  box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.18);
}

body.club-mode-active .club-mode-icon::before,
body.club-mode-active .club-mode-icon::after {
  background: #ffffff;
}

body.club-mode-active .layout-control-group {
  top: 18px;
  color: rgba(255, 255, 255, 0.92);
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

body.club-mode-active .model-badge-btn:hover,
body.club-mode-active .layout-icon-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

body.club-mode-active .layout-icon-btn {
  border-left-color: transparent;
}

body.club-mode-active .club-country-status {
  display: inline-flex;
}

body.club-mode-active .code-snippet-toast {
  left: 22px;
  bottom: 22px;
  width: auto;
  max-width: min(360px, calc(100vw - 44px));
  min-height: 0;
  transform: translate(0, 12px) scale(0.98);
  padding: 7px 11px;
  gap: 0;
  color: rgba(255, 255, 255, 0.84);
  background: rgba(5, 8, 12, 0.34);
  border-color: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.035) inset;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

body.club-mode-active .code-snippet-toast.visible {
  opacity: 0.72;
  transform: translate(0, 0) scale(1);
}

body.club-mode-active .code-snippet-toast::before,
body.club-mode-active .code-snippet-toast::after,
body.club-mode-active .ai-metrics,
body.club-mode-active .code-snippet-toast pre,
body.club-mode-active .code-snippet-toast .telemetry-tag,
body.club-mode-active .ai-kicker {
  display: none !important;
}

body.club-mode-active .ai-control-header {
  padding: 0;
  border: 0;
  gap: 7px;
}

body.club-mode-active .ai-status-dot {
  width: 6px;
  height: 6px;
  background: #65f5ff;
  box-shadow:
    0 0 0 4px rgba(101, 245, 255, 0.08),
    0 0 12px rgba(101, 245, 255, 0.42);
}

body.club-mode-active .ai-control-title strong {
  max-width: 260px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: none;
}

.typing-cursor {
  display: inline-block;
  width: 7px;
  height: 12px;
  background: #ef4444; /* SpaceX Red */
  margin-left: 2px;
  vertical-align: middle;
  animation: cursor-blink 0.8s infinite;
}

@keyframes cursor-blink {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

/* Liquid Transition and Gooey Countdown Styling */
.code-snippet-toast.liquid-transition {
  width: 140px;
  height: 140px;
  border-radius: 50% !important;
  padding: 0;
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 30%, #ffffff 0%, #e2e8f0 70%, #cbd5e1 100%) !important;
  border: 2px solid rgba(255, 255, 255, 0.8) !important;
  box-shadow: 
    0 0 35px rgba(255, 255, 255, 0.95),
    0 0 70px rgba(255, 255, 255, 0.45),
    inset 0 0 20px rgba(255, 255, 255, 0.6) !important;
  filter: url(#liquid-goo);
  transform: translate(-50%, -20px) scale(1);
  overflow: visible !important;
  animation: liquid-pulse 3s infinite ease-in-out;
  transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.code-snippet-toast.liquid-transition .ai-control-header,
.code-snippet-toast.liquid-transition .ai-metrics,
.code-snippet-toast.liquid-transition pre {
  opacity: 0 !important;
  visibility: hidden !important;
  display: none !important;
}

.code-snippet-toast .countdown-number {
  display: none !important;
  font-family: 'Space Grotesk', 'Orbitron', monospace;
  font-size: 4.5rem;
  font-weight: 900;
  color: #000000 !important;
  text-shadow: 
    0 0 4px rgba(255, 255, 255, 0.6);
  user-select: none;
  z-index: 10;
  text-align: center;
}

.code-snippet-toast.liquid-transition .countdown-number {
  display: none !important;
  animation: countdown-bounce 1s infinite cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.code-snippet-toast.liquid-transition .countdown-number.go-state {
  font-size: 2.2rem;
  letter-spacing: 1px;
}

.code-snippet-toast .droplet {
  position: absolute;
  width: 28px;
  height: 28px;
  background: #ffffff;
  background: radial-gradient(circle, #ffffff 0%, #e2e8f0 100%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  left: 50%;
  top: 50%;
}

.code-snippet-toast.liquid-transition.explode-splash {
  transform: translate(-50%, -20px) scale(4);
  opacity: 0;
  filter: url(#liquid-goo) blur(10px);
  pointer-events: none;
}

@keyframes liquid-pulse {
  0% { border-radius: 50% 45% 50% 45% / 45% 50% 45% 50%; }
  33% { border-radius: 45% 50% 40% 55% / 50% 40% 55% 45%; }
  66% { border-radius: 55% 40% 55% 40% / 40% 55% 40% 55%; }
  100% { border-radius: 50% 45% 50% 45% / 45% 50% 45% 50%; }
}

@keyframes countdown-bounce {
  0% { transform: scale(0.2); opacity: 0; filter: blur(3px); }
  25% { transform: scale(1.15); opacity: 1; filter: blur(0px); }
  50% { transform: scale(1); opacity: 1; }
  100% { transform: scale(0.7); opacity: 0.2; filter: blur(1px); }
}

#track-reason,
.bottom-code-panel {
  display: block !important;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  color: rgba(226, 232, 240, 0.9);
  font-family: var(--font-mono);
  overflow: hidden;
}

.bottom-code-panel pre {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  box-shadow: none;
  font: inherit;
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0;
  text-shadow: 0 0 12px rgba(101, 245, 255, 0.08);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bottom-code-panel.visible pre {
  color: rgba(248, 250, 252, 0.95);
}

.bottom-code-panel .syntax-keyword {
  color: #ff4d7d;
}

.bottom-code-panel .syntax-number {
  color: #38d5ff;
}

.bottom-code-panel .syntax-string {
  color: #ffb454;
}

.bottom-code-panel .syntax-comment {
  color: #8ea4c4;
}

.bottom-code-panel .typing-cursor {
  width: 5px;
  height: 10px;
  margin-left: 3px;
  background: #09aab5;
}

@media (max-width: 820px) {
  .bottom-code-panel {
    font-size: 0.62rem;
    line-height: 1.1;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  .bottom-code-panel pre {
    width: max-content;
    max-width: none;
    min-width: 100%;
    font-size: inherit;
    line-height: inherit;
    text-overflow: clip;
    transform: translateX(0);
    animation: mobile-code-marquee 12s ease-in-out 0.8s infinite alternate;
    will-change: transform;
  }

  .bottom-code-panel pre span {
    margin-top: 0;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    letter-spacing: inherit;
    white-space: inherit;
    overflow: visible;
    text-overflow: clip;
  }

  .bottom-code-panel.typing pre {
    animation: none;
  }
}

/* Bottom Player Club Mode Overrides */
body.club-mode-active .bottom-player {
  display: grid !important;
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  width: calc(100% - 32px);
  z-index: 100000;
  background: rgba(5, 6, 8, 0.88) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.85) !important;
  color: #ffffff !important;
  padding: 8px 16px;
  grid-template-columns: 140px 1.2fr 1.8fr 220px;
}

body.club-mode-active .track-details {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: inset 2px 0 0 rgba(101, 245, 255, 0.44);
}

body.club-mode-active .bottom-code-panel {
  color: rgba(255, 255, 255, 0.78);
}

body.club-mode-active .bottom-code-panel.visible pre {
  color: rgba(255, 255, 255, 0.88);
}

body.club-mode-active .track-details strong {
  color: #ffffff;
}

body.club-mode-active .track-details span {
  color: #94a3b8;
}

body.club-mode-active .mix-control span {
  color: #94a3b8;
}

body.club-mode-active input[type="range"] {
  background: rgba(255, 255, 255, 0.1);
}

/* Center the country dropdown on desktop without affecting mobile */
@media (min-width: 821px) {
  .topbar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
  }
  .topbar > .brand {
    justify-self: start;
  }
  .topbar > .country-control {
    justify-self: center;
  }
  .topbar > .status-pill {
    justify-self: end;
  }
}
