:root {
  --bg-base: #121212;
  --bg-surface: #1e1e1e;
  --text-primary: #ffffff;
  --text-secondary: #b3b3b3;
  --accent: #1db954;
}

/* F-01: Base */
*, *::before, *::after {
  box-sizing: border-box;
}

body, html {
  margin: 0;
  padding: 0;
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

#react-entry-point,
._dash-loading {
  background-color: var(--bg-base);
}

/* F-03 / F-04: Dash tab container overrides */
.dash-tabs {
  border-bottom: 1px solid #333 !important;
}

.dash-tab {
  background-color: var(--bg-base) !important;
  border: none !important;
  border-bottom: 2px solid transparent !important;
  color: var(--text-secondary) !important;
  padding: 10px 20px !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  transition: color 0.15s ease !important;
}

.dash-tab:hover {
  color: var(--text-primary) !important;
}

.dash-tab--selected {
  background-color: var(--bg-base) !important;
  border-bottom: 2px solid var(--accent) !important;
  color: var(--text-primary) !important;
}

/* F-02: Artist card grid */
.artist-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  padding: 20px 0;
}

.artist-card {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 8px;
  background-color: var(--bg-surface);
  background-size: cover;
  background-position: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.artist-card:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

/* Missing/expired artwork: an intentional tile with the artist initial,
   rather than a bare dark box. */
.artist-card--placeholder {
  background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
}

.artist-card__initial {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: rgba(255, 255, 255, 0.22);
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
  user-select: none;
}

.artist-card__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 8px 8px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.88));
}

.artist-card__rank {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.8rem;
  margin-right: 5px;
}

.artist-card__name {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* F-06: Header */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background-color: var(--bg-surface);
  border-bottom: 1px solid #2a2a2a;
  position: sticky;
  top: 0;
  z-index: 100;
}

.app-header__identity {
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-header__avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
}

.app-header__name {
  font-weight: 600;
  font-size: 0.9rem;
}

.app-header__logout {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid #444;
  padding: 5px 14px;
  border-radius: 50px;
  letter-spacing: 0.03em;
  transition: color 0.15s, border-color 0.15s;
}

.app-header__logout:hover {
  color: var(--text-primary);
  border-color: var(--text-primary);
}

/* KK: About tab — constrained, readable prose */
.about {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 4px 64px;
}

.about__section {
  margin-bottom: 32px;
}

.about__h2 {
  color: var(--text-primary);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 10px;
}

.about__p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0 0 12px;
}

.about__list {
  color: var(--text-secondary);
  line-height: 1.6;
  padding-left: 20px;
}

.about__list li {
  margin-bottom: 8px;
}

.about__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.about__link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid var(--accent);
  padding: 8px 16px;
  border-radius: 50px;
  transition: background-color 0.15s, color 0.15s;
}

.about__link:hover {
  background-color: var(--accent);
  color: #000;
}

/* II-04: discreet owner login on the public portfolio header */
.app-header__connect {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid var(--accent);
  padding: 5px 14px;
  border-radius: 50px;
  letter-spacing: 0.03em;
  transition: background-color 0.15s, color 0.15s;
}

.app-header__connect:hover {
  background-color: var(--accent);
  color: #000;
}

/* F-07: Login page */
.login-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background-color: var(--bg-base);
  text-align: center;
  gap: 0;
}

.login-page__title {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.login-page__subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  margin: 0 0 40px;
}

.login-page__btn {
  background-color: var(--accent);
  color: #000000;
  padding: 14px 36px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 0.1s ease, background-color 0.15s ease;
  display: inline-block;
}

.login-page__btn:hover {
  background-color: #1ed760;
  transform: scale(1.03);
}

/* F-05: Genre chart container */
.genre-chart {
  padding: 8px 0;
}

/* Loading spinner overlay */
._dash-loading-callback {
  background-color: transparent !important;
}

/* --- Rustling --- */

/* FF-02: keep Rustle mode card-shaped and centered on desktop */
#rustle-wrap {
  max-width: 480px;
  margin: 0 auto;
}

/* FF-01: cap the crate so it stays card-shaped on wide viewports */
.rustle-stack {
  max-width: min(92vw, 400px);
}

@media (max-width: 480px) {
  .rustle-stack {
    max-width: 100%;
  }
  .mode-tab {
    font-size: 0.8rem !important;
    padding: 9px 0 !important;
  }
  .rustle-counter-chip {
    top: 64px;
    right: 10px;
  }
}

/* Mode switcher: pill tabs, green rounded outline marks the mode */
.mode-tabs {
  display: flex !important;
  gap: 12px;
  border: none !important;
  margin: 16px 0 8px;
}

.mode-tab {
  background-color: transparent !important;
  border: 1px solid #333 !important;
  border-radius: 50px !important;
  color: var(--text-secondary) !important;
  padding: 10px 0 !important;
  font-weight: 600 !important;
  font-size: 0.875rem !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  transition: color 0.15s ease, border-color 0.15s ease !important;
}

.mode-tab:hover {
  color: var(--text-primary) !important;
}

.mode-tab--selected {
  background-color: rgba(29, 185, 84, 0.08) !important;
  border: 2px solid var(--accent) !important;
  color: var(--text-primary) !important;
}

/* EE-03: missing-art placeholder */
.rustle-card__art--placeholder {
  background: repeating-linear-gradient(
    45deg, #2a2a2a, #2a2a2a 12px, #303030 12px, #303030 24px
  );
}

/* BB: recent-search chips */
.rustle-recents {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  max-width: 420px;
}

.rustle-recents__chip {
  background-color: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid #333;
  border-radius: 50px;
  padding: 6px 14px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.rustle-recents__chip:hover {
  border-color: var(--accent);
}

.rustle-recents__clear {
  background: none;
  color: var(--text-secondary);
  border: none;
  font-size: 0.8rem;
  cursor: pointer;
  text-decoration: underline;
}

/* EE-01: zero-results state */
.rustle-no-results {
  color: var(--text-secondary);
  margin-top: 16px;
}

/* EE-05 / EE-06: error / offline toast */
.rustle-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  padding: 10px 18px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.rustle-toast--error {
  background-color: #e22134;
  color: #fff;
}

.rustle-toast--offline {
  background-color: var(--bg-surface);
  color: var(--text-secondary);
  border: 1px solid #444;
}

/* JJ: read-only sandbox sign-in hint */
.rustle-toast--info {
  background-color: var(--bg-surface);
  color: var(--accent);
  border: 1px solid var(--accent);
}

/* JJ: Spotify embed mini-player under the sandbox card stack */
.rustle-embed {
  display: block;
  margin: 12px auto 0;
  max-width: 480px;
  border-radius: 12px;
}

/* W-01: gesture surface — stop the browser from scrolling or
   selecting while a card is being dragged */
[data-rustle-card-area="true"] {
  position: relative; /* anchors the .rustle-unlock overlay */
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

[data-rustle-card-area="true"] img {
  -webkit-user-drag: none;
}

/* V-01: crate-of-records stack */
.rustle-stack {
  position: relative;
  perspective: 1200px;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 3 / 4;
  margin: 32px auto 0;
}

.rustle-stack__card {
  position: absolute;
  inset: 0;
  transform-origin: top center;
  transition: transform 240ms ease, opacity 240ms ease;
}

/* V-02: top card centered, next three peek behind with progressive
   lift, shrink, and a small forward tilt */
.rustle-stack__card--0 {
  z-index: 4;
  animation: rustle-promote 240ms ease;
}

.rustle-stack__card--1 {
  z-index: 3;
  transform: translateY(-14px) scale(0.95) rotateX(4deg);
}

.rustle-stack__card--2 {
  z-index: 2;
  transform: translateY(-28px) scale(0.9) rotateX(6deg);
}

.rustle-stack__card--3 {
  z-index: 1;
  transform: translateY(-42px) scale(0.85) rotateX(8deg);
}

/* V-04: next card slides up into the top slot */
@keyframes rustle-promote {
  from {
    transform: translateY(-14px) scale(0.95) rotateX(4deg);
  }
  to {
    transform: translateY(0) scale(1) rotateX(0);
  }
}

/* V-03: top card exits in the gesture direction */
.rustle-card--exiting {
  transition: transform 240ms ease, opacity 240ms ease;
  opacity: 0 !important;
  pointer-events: none;
}

.rustle-card--exiting-left {
  transform: translateX(-120%) rotate(-8deg) !important;
}

.rustle-card--exiting-right {
  transform: translateX(120%) rotate(8deg) !important;
}

.rustle-card--exiting-up {
  transform: translateY(-120%) !important;
}

.rustle-card--exiting-down {
  transform: translateY(120%) !important;
}

/* Card chrome */
.rustle-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  background-color: var(--bg-surface);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
}

.rustle-card__art {
  width: 100%;
  flex: 1;
  min-height: 0;
  object-fit: cover;
  background-color: #2a2a2a;
}

.rustle-card__title {
  padding: 12px 14px;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Target picker */
.rustle-picker__title {
  margin: 24px 0 12px;
}

.rustle-picker__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 420px;
}

.rustle-picker__btn {
  background-color: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid #333;
  border-radius: 8px;
  padding: 12px 16px;
  text-align: left;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.rustle-picker__btn:hover {
  border-color: var(--accent);
}

.rustle-picker__btn--create {
  color: var(--text-secondary);
  border-style: dashed;
}

/* CC-02: create-new form */
.rustle-picker__actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  max-width: 420px;
}

.rustle-picker__btn--confirm {
  background-color: var(--accent);
  color: #000;
  border-color: var(--accent);
  text-align: center;
  flex: 1;
}

/* Z-02: already-added badge */
.rustle-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 5;
  background: rgba(0, 0, 0, 0.75);
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 50px;
  padding: 4px 12px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* X-04: no-preview pill */
.rustle-card__no-preview {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  background: rgba(0, 0, 0, 0.75);
  color: var(--text-secondary);
  border-radius: 50px;
  padding: 4px 12px;
  font-size: 0.72rem;
  font-weight: 600;
}

/* Z-03: shake on a duplicate commit */
.rustle-card--shake {
  animation: rustle-shake 200ms ease;
}

@keyframes rustle-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-8px); }
  75% { transform: translateX(8px); }
}

/* Z-04: added stamp — scale in, fade out over ~600ms */
.added-stamp {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 30;
  border: 4px solid var(--accent);
  color: var(--accent);
  border-radius: 8px;
  padding: 8px 20px;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  pointer-events: none;
  animation: rustle-stamp 600ms ease forwards;
}

@keyframes rustle-stamp {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(-12deg) scale(1.6);
  }
  30% {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(-12deg) scale(1);
  }
  70% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(-12deg) scale(1);
  }
}

/* Z-06: session add counter */
.rustle-counter-chip {
  position: fixed;
  top: 76px;
  right: 16px;
  z-index: 200;
  background-color: var(--accent);
  color: #000;
  border-radius: 50px;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 700;
}

.rustle-counter-chip--hidden {
  display: none;
}

/* X-05: tap-to-start audio unlock overlay */
.rustle-unlock {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 12px;
}

.rustle-unlock__btn {
  background-color: var(--accent);
  color: #000;
  border: none;
  border-radius: 50px;
  padding: 14px 32px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

/* Search bar */
.rustle-search {
  margin-top: 20px;
}

.rustle-search__input {
  width: 100%;
  max-width: 420px;
  height: 48px;
  padding: 0 20px;
  border-radius: 50px;
  border: 1px solid #333;
  background-color: var(--bg-surface);
  color: var(--text-primary);
  font-size: 1rem;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.rustle-search__input:focus,
.rustle-search__input:focus-visible {
  border-color: var(--accent);
  outline: none;
}

/* ===================================================================
 * Rate feature — sub-tabs, 1-10 tap scale, and the rated-songs table
 * =================================================================== */

.rate-tabs {
  display: flex !important;
  gap: 12px;
  border: none !important;
  margin: 8px 0 4px;
}

.rate-tab {
  background-color: transparent !important;
  border: 1px solid #333 !important;
  border-radius: 50px !important;
  color: var(--text-secondary) !important;
  padding: 8px 0 !important;
  font-weight: 600 !important;
  font-size: 0.8rem !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
}

.rate-tab--selected {
  background-color: rgba(29, 185, 84, 0.08) !important;
  border: 2px solid var(--accent) !important;
  color: var(--text-primary) !important;
}

.rate-card__subtitle {
  padding: 0 14px 12px;
  color: var(--text-secondary);
  font-size: 0.82rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 1-10 tap scale */
.rate-scale {
  max-width: 360px;
  margin: 16px auto 0;
  text-align: center;
}

.rate-scale__label {
  color: var(--text-secondary);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.rate-scale__row {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 6px;
}

.rate-scale__btn {
  background-color: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid #333;
  border-radius: 8px;
  padding: 10px 0;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.12s ease, border-color 0.12s ease;
}

.rate-scale__btn:hover {
  border-color: var(--accent);
}

.rate-scale__btn--active {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #000;
}

/* Rated-songs table */
.rate-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
}

.rate-table__row td {
  padding: 10px 12px;
  border-bottom: 1px solid #262626;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.rate-table__score {
  color: var(--accent);
  font-weight: 600;
  white-space: nowrap;
}

.rate-table__head th {
  padding: 0 0 8px;
  text-align: left;
}

.rate-table__sort {
  background: transparent;
  color: var(--text-secondary);
  border: none;
  padding: 6px 8px;
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.rate-table__sort--active {
  color: var(--accent);
}

.rate-empty {
  padding: 48px 0;
  text-align: center;
}

.rate-empty__msg {
  color: var(--text-secondary);
}

/* --- Music Network Visualization (/network) --- */
.network-page {
  color: var(--text, #fff);
}
.network-title {
  margin: 8px 0 4px;
}
.network-blurb {
  color: var(--text-secondary, #b3b3b3);
  max-width: 720px;
  line-height: 1.5;
}
.network-stats {
  color: var(--accent, #1db954);
  font-size: 0.85rem;
  margin: 4px 0 12px;
}
.network-layout-toggle {
  margin-bottom: 12px;
  color: var(--text-secondary, #b3b3b3);
  font-size: 0.9rem;
}
.network-layout-toggle label {
  margin-right: 16px;
  cursor: pointer;
  color: var(--text-secondary, #b3b3b3);
}
.network-layout-toggle input {
  accent-color: var(--accent, #1db954);
  margin-right: 6px;
}

/* rc-slider (ERA range + MIN SHARED SESSIONS) on the dark theme */
/* Dash 4.x slider (filled range + thumbs) -> Spotify green */
.network-filter .dash-slider-range {
  background-color: var(--accent, #1db954) !important;
}
.network-filter .dash-slider-thumb {
  background-color: var(--accent, #1db954) !important;
  border-color: var(--accent, #1db954) !important;
}
.network-filter .rc-slider-mark-text {
  color: var(--text-secondary, #b3b3b3);
}
/* the value tooltips that were rendering as white boxes */
.rc-slider-tooltip-inner {
  background-color: #1e1e1e !important;
  color: #fff !important;
  border: 1px solid #333;
  box-shadow: none !important;
}
.rc-slider-tooltip-arrow {
  border-top-color: #1e1e1e !important;
  border-bottom-color: #1e1e1e !important;
}

/* Dash editable slider value inputs (min/max boxes beside the track) */
.network-filter input.dash-input-container,
.network-filter .dash-range-slider-input,
.network-filter .dash-slider-input {
  background-color: #1e1e1e !important;
  color: #fff !important;
  border: 1px solid #333 !important;
  border-radius: 4px;
}

/* Dash 4.x dropdown (button + menu) */
button.dash-dropdown,
.network-dropdown.dash-dropdown {
  background-color: #1e1e1e !important;
  color: #fff !important;
  border: 1px solid #333 !important;
}
.network-dropdown .dash-dropdown-value,
.network-dropdown .dash-dropdown-placeholder {
  color: #fff !important;
}
/* Opened menu (Radix portal): content, search field, options */
.dash-dropdown-content,
.dash-dropdown-options {
  background-color: #1e1e1e !important;
  color: #fff !important;
  border: 1px solid #333 !important;
}
.dash-dropdown-search-container {
  background-color: #1e1e1e !important;
  border-bottom: 1px solid #333 !important;
}
.dash-dropdown-search {
  background-color: #1e1e1e !important;
  color: #fff !important;
}
.dash-dropdown-search::placeholder {
  color: #8a8a8a !important;
}
.dash-dropdown-search-icon {
  color: #8a8a8a !important;
}
.dash-dropdown-option,
.dash-dropdown-option .dash-options-list-option-text {
  color: #fff !important;
}
.dash-dropdown-option:hover,
.dash-dropdown-option[aria-selected="true"] {
  background-color: #282828 !important;
}
.network-controls-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.network-focus {
  flex: 1 1 320px;
  max-width: 420px;
}
.network-canvas-wrap {
  display: flex;
  gap: 16px;
  align-items: stretch;
}
#network-graph {
  flex: 1 1 auto;
  background: #181818;
  border: 1px solid #282828;
  border-radius: 8px;
}
.network-side-panel {
  flex: 0 0 240px;
  background: #1e1e1e;
  border: 1px solid #282828;
  border-radius: 8px;
  padding: 16px;
  min-height: 200px;
}
.network-side-hint {
  color: var(--text-secondary, #b3b3b3);
  font-size: 0.9rem;
}
.network-side-name {
  margin: 0 0 4px;
  color: var(--accent, #1db954);
}
.network-side-instrument,
.network-side-genre,
.network-side-era,
.network-side-degree {
  margin: 2px 0;
  color: var(--text-secondary, #b3b3b3);
  font-size: 0.9rem;
}

/* Genre color legend */
.network-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 4px 0 12px;
}
.network-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.network-legend-swatch {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}
.network-legend-lbl {
  color: var(--text-secondary, #b3b3b3);
  font-size: 0.78rem;
}

@media (max-width: 640px) {
  .network-canvas-wrap {
    flex-direction: column;
  }
  .network-side-panel {
    flex-basis: auto;
  }
}

/* Network filters */
.network-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 8px 0 12px;
}
.network-filter {
  flex: 1 1 220px;
  min-width: 200px;
}
.network-filter-lbl {
  display: block;
  color: var(--text-secondary, #b3b3b3);
  font-size: 0.8rem;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.network-dropdown .Select-control,
.network-dropdown .Select-menu-outer {
  background: #1e1e1e;
  border-color: #282828;
  color: #fff;
}
