#migrations-view {
  position: fixed;
  inset: 48px 0 0;
  z-index: 5;
  overflow: auto;
  overscroll-behavior: contain;
  background: radial-gradient(ellipse at 75% 0, #0e2231, var(--bg-primary, #060611) 58%);
  color: #e5edf6;
  font: 14px/1.45 system-ui, sans-serif;
}

#migrations-view[hidden], #pm-empty[hidden] { display: none; }
body.announce-active #migrations-view { top: 86px; }
.pm-shell { max-width: 1280px; margin: auto; padding: 32px clamp(14px, 3vw, 40px) 40px; }
.pm-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 24px; }
.pm-header h2 { margin: 8px 0 4px; font-size: clamp(26px, 4vw, 38px); letter-spacing: -.04em; }
.pm-header p, .pm-note { margin: 0; color: #a1b1c3; }
.pm-route { display: flex; align-items: center; gap: 8px; color: #84e9c3; font-size: 12px; font-weight: 650; }
.pm-route span:first-child, .pm-route span:last-child {
  border: 1px solid #365f59;
  border-radius: 20px;
  background: #16342f;
  padding: 3px 9px;
}
.pm-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  border-radius: 20px;
  padding: 5px 10px;
  color: #f2c88b;
  background: #30251c;
  font-size: 12px;
}
.pm-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pm-status[data-ready="true"] { color: #a2ebc9; background: #183d33; }
.pm-toolbar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.pm-search { display: flex; align-items: center; gap: 9px; color: #a1b1c3; }
.pm-search input {
  width: min(220px, 44vw);
  min-height: 36px;
  box-sizing: border-box;
  padding: 6px 10px;
  border: 1px solid #334358;
  border-radius: 7px;
  background: #101a29;
  color: #e5edf6;
  font: inherit;
}
.pm-toggle { display: flex; align-items: center; gap: 6px; color: #d7e2ec; cursor: pointer; }
.pm-toggle input { accent-color: #72dfb0; }
.pm-count { margin-left: auto; font-size: 12px; color: #a1b1c3; }
.pm-grid {
  display: grid;
  grid-template-columns: minmax(156px, 1.45fr) repeat(5, minmax(85px, 1fr));
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
}
.pm-table-head {
  color: #a1b1c3;
  background: #101c2a;
  border: 1px solid #263346;
  border-radius: 8px 8px 0 0;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.pm-list { margin: 0; padding: 0; list-style: none; }
.pm-row { background: #0b1420; border: 1px solid #263346; border-top: 0; }
.pm-row:last-child { border-radius: 0 0 8px 8px; }
.pm-row:hover { background: #101c2a; }
.pm-token { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px; row-gap: 2px; min-width: 0; }
.pm-name { color: #a4e6ff; font-weight: 700; overflow-wrap: anywhere; text-decoration: underline; }
.pm-mint, .pm-activity, .pm-mobile-label { color: #a1b1c3; font-size: 11px; }
.pm-confirmed { color: #84e9c3; font-size: 11px; flex-basis: 100%; }
.pm-activity { flex-basis: 100%; }
.pm-activity[data-live="true"] { color: #84e9c3; }
.pm-value { color: #e5edf6; font-variant-numeric: tabular-nums; font-size: 13px; }
.pm-value[data-trend="up"] { color: #84e9c3; }
.pm-value[data-trend="down"] { color: #ff9c9e; }
.pm-mobile-label { display: none; }
.pm-empty { border: 1px dashed #3c5065; padding: 24px 12px; text-align: center; color: #a1b1c3; }
.pm-note { margin-top: 15px; font-size: 12px; }

@media (max-width: 850px) {
  .pm-table-head { display: none; }
  .pm-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px 12px;
    border: 1px solid #263346;
    border-radius: 8px;
    margin-bottom: 8px;
  }
  .pm-row:last-child { border-radius: 8px; }
  .pm-token { grid-column: span 3; }
  .pm-metric { display: flex; flex-direction: column; min-width: 0; }
  .pm-value { overflow-wrap: anywhere; }
  .pm-mobile-label { display: block; }
}

@media (max-width: 768px) {
  body.announce-active #migrations-view { top: 82px; }
  .pm-header { flex-direction: column; gap: 10px; margin-bottom: 17px; }
  .pm-shell { padding-top: 18px; }
  .pm-toolbar { gap: 10px; }
  .pm-count { flex-basis: 100%; margin-left: 0; }
}
