:root {
  --void: #0a0c10;
  --panel: #12151c;
  --panel-raised: #181c25;
  --border: #242938;
  --border-soft: #1b1f29;
  --text: #edeff4;
  --text-muted: #8991a3;
  --text-dim: #596274;
  --green: #00e5a0;
  --green-dim: #0a3b30;
  --amber: #ffb84d;
  --violet: #9b8cff;
  --danger: #ff5c7a;
  --blue: #7fa8ff;
  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--void);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.topbar {
  display: grid;
  grid-template-columns: 150px minmax(280px, 625px) auto;
  align-items: center;
  gap: 24px;
  min-height: 56px;
  padding: 8px 24px;
  border-bottom: 1px solid var(--border);
  background: #070a0f;
}

.brand,
.topbar-actions,
.search,
.track-form,
.track-input,
.wallet-menu-item,
.watch-item,
.watch-sub,
.pulse-bars,
.card-top,
.card-bottom,
.stats,
.actions,
.signal-addr,
.feed-header,
.tabs,
.track-toggle,
.btn-add,
.wallet-btn,
.icon-btn {
  display: flex;
  align-items: center;
}

.brand {
  gap: 9px;
  min-width: 0;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  object-fit: cover;
  box-shadow: 0 0 24px -8px var(--green);
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  white-space: nowrap;
}

.brand-sub {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 5px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-sub.sample {
  color: var(--amber);
}

.topbar-actions {
  justify-content: flex-end;
  gap: 14px;
  min-width: 0;
}

.search,
.track-input {
  gap: 8px;
  min-height: 40px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #0d1119;
  color: var(--text-dim);
}

.search {
  justify-self: stretch;
  width: 100%;
  padding: 0 12px 0 14px;
}

.track-input {
  width: 190px;
  padding: 0 10px;
}

.search svg,
.track-input svg,
.track-toggle svg,
.btn-add svg,
.icon-btn svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.search input,
.track-input input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 12px;
}

.search input::placeholder,
.track-input input::placeholder {
  color: var(--text-dim);
}

.search kbd {
  min-width: 34px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #111620;
  color: var(--text-dim);
  padding: 3px 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  text-align: center;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}

.brand-sub.sample .status-dot {
  background: var(--amber);
  box-shadow: 0 0 8px var(--amber);
}

.track-shell {
  position: relative;
}

.track-toggle {
  justify-content: center;
  min-width: 151px;
  min-height: 40px;
  border: 0;
  border-radius: 9px;
  background: var(--text);
  color: var(--void);
  padding: 0 17px;
  font-weight: 800;
  font-size: 13px;
  white-space: nowrap;
}

.track-toggle.locked {
  opacity: 0.72;
}

.btn-add {
  gap: 7px;
  min-height: 36px;
  border: 0;
  border-radius: 8px;
  padding: 0 14px;
  background: var(--text);
  color: var(--void);
  font-weight: 700;
  font-size: 12px;
}

.track-form {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 20;
  display: none;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #0d1119;
  padding: 8px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.track-shell.open .track-form {
  display: flex;
}

.wallet-btn {
  gap: 8px;
  min-height: 40px;
  min-width: 146px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #0d1119;
  color: var(--text);
  padding: 0 11px;
  font-weight: 700;
  font-size: 12px;
  white-space: nowrap;
}

.wallet-btn.connected {
  border-color: var(--border);
  background: #101620;
  color: var(--text);
  padding: 6px 10px;
}

.wallet-btn svg,
.wallet-menu-item svg {
  width: 16px;
  height: 16px;
}

.wallet-shell {
  position: relative;
}

.wallet-chip {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--green), var(--blue), var(--violet));
  flex: 0 0 auto;
}

.wallet-copy {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  text-align: left;
}

.wallet-main {
  max-width: 76px;
  overflow: hidden;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  text-overflow: ellipsis;
}

.wallet-sub {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 18px;
  border: 1px solid rgba(0, 229, 160, 0.24);
  border-radius: 999px;
  background: rgba(0, 229, 160, 0.08);
  color: var(--green);
  padding: 0 7px;
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 800;
}

.wallet-sub.warn {
  border-color: rgba(255, 184, 77, 0.25);
  background: rgba(255, 184, 77, 0.08);
  color: var(--amber);
}

.wallet-sub.error {
  border-color: rgba(255, 92, 122, 0.25);
  background: rgba(255, 92, 122, 0.08);
  color: #ff9aac;
}

.wallet-sub::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 6px currentColor;
}

.wallet-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 25;
  display: none;
  width: 274px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #0d1119;
  padding: 8px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.wallet-shell.open .wallet-menu {
  display: grid;
  gap: 6px;
}

.wallet-menu-head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  border-bottom: 1px solid var(--border-soft);
  padding: 3px 4px 10px;
}

.wallet-menu-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.wallet-menu-title {
  font-weight: 800;
  font-size: 12px;
}

.wallet-menu-sub {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 10px;
}

.wallet-menu-item {
  gap: 8px;
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 700;
  text-align: left;
}

.wallet-menu-item svg {
  color: var(--text-muted);
}

.wallet-menu-item .menu-label {
  display: grid;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.wallet-menu-item small {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
}

.wallet-menu-item strong {
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.wallet-menu-item:hover {
  background: var(--panel-raised);
}

.wallet-menu-item:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.wallet-menu-item.disabled-paid {
  background: rgba(0, 229, 160, 0.06);
}

.wallet-menu-item.disabled-paid strong,
.wallet-menu-item.disabled-paid svg {
  color: var(--green);
}

.wallet-menu-item [data-lucide="loader"],
.wallet-btn [data-lucide="loader"] {
  animation: spin 1s linear infinite;
}

.wallet-menu-item.ok {
  color: var(--green);
}

.wallet-menu-item.error {
  border: 1px solid rgba(255, 92, 122, 0.3);
  background: rgba(255, 92, 122, 0.06);
  color: #ff9aac;
}

.wallet-menu-item.error svg {
  color: #ff9aac;
}

.wallet-menu-item.danger {
  margin-top: 4px;
  border-top: 1px solid var(--border-soft);
  background: var(--panel-raised);
  color: #ff9aac;
}

.notice {
  position: fixed;
  top: 64px;
  right: 18px;
  z-index: 50;
  display: none;
  width: min(520px, calc(100vw - 36px));
  min-height: 42px;
  align-items: center;
  border: 1px solid #0f5a45;
  border-radius: 8px;
  background: var(--green-dim);
  color: var(--green);
  padding: 10px 13px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  white-space: normal;
}

.notice.show {
  display: flex;
}

.notice.error {
  border-color: #6b2b38;
  background: #31141a;
  color: #ff9aac;
}

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

.layout {
  display: grid;
  grid-template-columns: 260px minmax(380px, 1fr) 320px;
  height: calc(100vh - 56px);
}

.layout.watchlist-hidden {
  grid-template-columns: minmax(380px, 1fr) 320px;
}

.layout.watchlist-hidden .watchlist {
  display: none;
}

.col {
  min-height: 0;
  overflow-y: auto;
}

.watchlist,
.signals-col {
  background: #0b0e14;
}

.watchlist,
.feed-col {
  border-right: 1px solid var(--border);
}

.col-header {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 10px;
  background: inherit;
}

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

.col-title {
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.col-count {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel);
  color: var(--text-dim);
  padding: 2px 8px;
  font-family: var(--font-mono);
  font-size: 10px;
}

.col-toggle {
  width: 28px;
  height: 28px;
}

.col-toggle svg,
.watchlist-open svg {
  width: 15px;
  height: 15px;
}

.watchlist-open {
  display: none;
  flex: 0 0 auto;
}

.layout.watchlist-hidden .watchlist-open {
  display: flex;
}

.watchlist-items {
  padding-bottom: 20px;
}

.watch-row {
  display: flex;
  align-items: stretch;
  width: 100%;
  border-left: 2px solid transparent;
  background: transparent;
}

.watch-row:hover {
  background: var(--panel);
}

.watch-row.active {
  border-left-color: var(--green);
  background: var(--panel-raised);
}

.watch-item {
  flex: 1;
  min-width: 0;
  gap: 10px;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 10px 8px 10px 14px;
  text-align: left;
}

.avatar,
.card-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  color: var(--void);
  background: var(--green);
  font-family: var(--font-display);
  font-weight: 700;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  font-size: 12px;
}

.avatar-image {
  background: var(--panel);
  color: transparent;
}

.avatar img,
.card-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.watch-meta {
  flex: 1;
  min-width: 0;
}

.watch-handle {
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.watch-sub {
  gap: 6px;
  margin-top: 3px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 10px;
}

.pulse-bars {
  align-items: flex-end;
  gap: 2px;
  height: 13px;
}

.pulse-bars span {
  width: 2px;
  border-radius: 2px;
  background: var(--text-dim);
}

.watch-row.active .pulse-bars span {
  background: var(--green);
}

.remove-watch {
  display: grid;
  place-items: center;
  align-self: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  margin-right: 10px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--panel);
  color: var(--text-dim);
}

.remove-watch:hover {
  border-color: #6b2b38;
  background: #31141a;
  color: #ff9aac;
}

.remove-watch:disabled {
  cursor: wait;
  opacity: 0.55;
}

.remove-watch svg {
  width: 14px;
  height: 14px;
}

.feed-header {
  position: sticky;
  top: 0;
  z-index: 3;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-soft);
  background: var(--void);
  padding: 10px 16px 12px;
}

.tabs {
  gap: 5px;
  min-width: 0;
  overflow-x: auto;
}

.tab {
  min-height: 32px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text-dim);
  padding: 0 11px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.tab:hover {
  background: var(--panel);
  color: var(--text-muted);
}

.tab.active {
  background: var(--text);
  color: var(--void);
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.dot-green {
  background: var(--green);
}

.dot-blue {
  background: var(--blue);
}

.dot-violet {
  background: var(--violet);
}

.feed,
.signals {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feed {
  padding: 14px 16px 40px;
}

.card {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  padding: 13px 14px;
}

.card.flagged {
  border-color: var(--green);
  box-shadow: 0 0 0 1px var(--green) inset, 0 0 22px -12px var(--green);
}

.card.buzz {
  animation: card-buzz 1.2s ease-out;
}

@keyframes card-buzz {
  0%,
  100% {
    transform: translateX(0);
  }

  10%,
  30%,
  50% {
    transform: translateX(-3px);
  }

  20%,
  40%,
  60% {
    transform: translateX(3px);
  }

  70% {
    box-shadow: 0 0 0 2px var(--green) inset, 0 0 32px -8px var(--green);
  }
}

.card-top {
  gap: 9px;
  margin-bottom: 10px;
}

.card-avatar {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 11px;
}

.card-id {
  min-width: 0;
  flex: 1;
}

.card-handle {
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-time {
  margin-top: 2px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 10px;
}

.type-badge {
  border-radius: 6px;
  padding: 4px 8px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.type-post {
  background: var(--green-dim);
  color: var(--green);
}

.type-repost {
  background: #132038;
  color: var(--blue);
}

.type-quoted {
  background: #231f42;
  color: var(--violet);
}

.card-body {
  color: #d6d9e1;
  font-size: 13px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: #070b11;
}

.media-grid.media-count-1 {
  grid-template-columns: 1fr;
}

.media-grid.media-count-3 .media-tile:first-child {
  grid-row: span 2;
}

.media-tile {
  position: relative;
  display: block;
  min-height: 150px;
  max-height: 260px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0b1018;
}

.media-grid.media-count-1 .media-tile {
  height: clamp(190px, 28vw, 280px);
  aspect-ratio: 16 / 9;
}

.media-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-grid.media-count-1 .media-tile img {
  height: 100%;
  object-fit: cover;
}

.media-label {
  position: absolute;
  right: 8px;
  bottom: 8px;
  border-radius: 6px;
  background: rgba(7, 11, 17, 0.86);
  color: var(--text);
  padding: 4px 7px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.link-preview {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 10px;
  margin-top: 12px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: #0d1119;
  color: inherit;
  overflow: hidden;
  text-decoration: none;
}

.link-preview.no-media {
  grid-template-columns: 1fr;
}

.link-preview:hover {
  border-color: var(--border);
  background: #101620;
}

.link-preview-media {
  display: block;
  width: 92px;
  min-height: 86px;
  background: var(--panel-raised);
}

.link-preview-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 86px;
  object-fit: cover;
}

.link-preview-copy {
  display: grid;
  align-content: center;
  gap: 4px;
  min-width: 0;
  padding: 10px 11px 10px 0;
}

.link-preview.no-media .link-preview-copy {
  padding: 10px 11px;
}

.link-preview-site {
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 10px;
}

.link-preview-title {
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.link-preview-desc {
  display: -webkit-box;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.35;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.chip {
  display: inline-flex;
  max-width: 100%;
  border: 1px solid #0f5a45;
  border-radius: 5px;
  background: var(--green-dim);
  color: var(--green);
  padding: 1px 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  overflow-wrap: anywhere;
}

.card-bottom {
  justify-content: space-between;
  gap: 12px;
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px solid var(--border-soft);
}

.stats {
  flex-wrap: wrap;
  gap: 12px;
}

.stat {
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 11px;
}

.actions {
  gap: 8px;
}

.icon-btn {
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--panel-raised);
  color: var(--text-dim);
}

.icon-btn:hover {
  border-color: var(--text-dim);
  color: var(--text);
}

.help-btn {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  background: #0d1119;
}

.help-btn:hover {
  border-color: var(--green);
  color: var(--green);
}

.refresh-btn {
  flex: 0 0 auto;
}

.xmon-tour.driver-popover {
  max-width: 330px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #0d1119;
  color: var(--text);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

.xmon-tour .driver-popover-title {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
}

.xmon-tour .driver-popover-description {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.5;
}

.xmon-tour .driver-popover-progress-text {
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 10px;
}

.xmon-tour .driver-popover-navigation-btns button {
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--panel-raised);
  color: var(--text);
  text-shadow: none;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 800;
}

.xmon-tour .driver-popover-navigation-btns button:hover {
  border-color: var(--green);
  background: rgba(0, 229, 160, 0.1);
  color: var(--green);
}

.xmon-tour .driver-popover-close-btn {
  color: var(--text-muted);
}

.signals {
  padding: 0 16px;
}

.signal-item {
  display: block;
  width: 100%;
  border: 1px solid var(--green);
  border-radius: 8px;
  background: var(--panel);
  color: inherit;
  padding: 11px 12px;
  text-align: left;
}

.signal-item:hover {
  background: var(--panel-raised);
  box-shadow: 0 0 0 1px var(--green) inset;
}

.signal-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.signal-chain {
  flex: 0 0 auto;
  border: 1px solid #0f5a45;
  border-radius: 999px;
  background: var(--green-dim);
  color: var(--green);
  padding: 2px 7px;
  font-size: 9px;
}

.signal-checking {
  border-color: #5a4816;
  background: var(--amber-dim);
  color: var(--amber);
}

.signal-unknown {
  border-color: var(--border);
  background: var(--panel-raised);
  color: var(--text-dim);
}

.signal-addr {
  justify-content: space-between;
  gap: 8px;
  border-radius: 6px;
  background: var(--void);
  color: var(--text);
  padding: 7px 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  overflow-wrap: anywhere;
}

.signal-src {
  margin-top: 8px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 10px;
}

.divider-label {
  padding: 20px 16px 8px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rules-section {
  padding: 0 16px 20px;
}

.rule-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  padding: 8px 10px;
}

.rule-row input {
  accent-color: var(--green);
}

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

.rule-text {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
}

.rule-help {
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.35;
}

.empty,
.error {
  border: 1px dashed var(--border);
  border-radius: 8px;
  color: var(--text-dim);
  padding: 18px;
  font-size: 13px;
  line-height: 1.5;
}

.error {
  border-color: #6b2b38;
  color: #ff9aac;
}

@media (max-width: 1120px) {
  .topbar {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .topbar-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 10px;
  }

  .search {
    width: 100%;
    flex: 1 1 260px;
  }

  .layout {
    grid-template-columns: 230px minmax(360px, 1fr);
  }

  .layout.watchlist-hidden {
    grid-template-columns: 1fr;
  }

  .signals-col {
    grid-column: 1 / -1;
    min-height: 260px;
    border-top: 1px solid var(--border);
  }
}

@media (max-width: 760px) {
  .topbar {
    padding: 12px 14px;
  }

  .track-shell,
  .wallet-shell,
  .track-toggle,
  .track-form,
  .track-input,
  .btn-add,
  .wallet-btn,
  .notice {
    width: 100%;
    max-width: none;
  }

  .track-form {
    position: static;
    margin-top: 8px;
    flex-wrap: wrap;
  }

  .wallet-menu {
    position: static;
    margin-top: 8px;
  }

  .media-tile {
    min-height: 130px;
    max-height: 210px;
  }

  .media-grid.media-count-1 .media-tile {
    height: 190px;
  }

  .layout {
    display: block;
    height: auto;
  }

  .col {
    overflow: visible;
  }

  .watchlist,
  .feed-col {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
}
