@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600&family=Space+Grotesk:wght@400;500;600;700&display=swap");

:root {
  --bg: #0b0e14;
  --line: #242d3d;
  --line-soft: #2d3950;
  --text: #eef3ff;
  --muted: #a1acc3;
  --muted-2: #7f8ca8;
  --shell-sticky-top: 156px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(1100px 600px at 100% -20%, rgba(79, 126, 255, 0.2), transparent 58%),
    radial-gradient(780px 420px at 0% 0%, rgba(25, 200, 125, 0.1), transparent 62%),
    var(--bg);
  color: var(--text);
  font-family:
    "Space Grotesk",
    "IBM Plex Sans",
    "Avenir Next",
    "Segoe UI",
    sans-serif;
  letter-spacing: 0.015em;
}

a {
  color: inherit;
  text-decoration: none;
}

.pm-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  gap: 10px;
  padding: 10px 16px 12px;
  border-bottom: 1px solid var(--line);
  background: rgba(9, 12, 18, 0.93);
  backdrop-filter: blur(10px);
}

.pm-topbar-main {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.pm-topbar-account {
  display: flex;
  align-items: stretch;
  gap: 10px;
  padding: 10px 12px;
  overflow: visible;
  scrollbar-width: none;
}

.pm-topbar-account::-webkit-scrollbar {
  display: none;
}

.pm-account-mode {
  flex: 0 0 auto;
  position: relative;
}

.pm-account-title-btn {
  min-width: 94px;
  height: 100%;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 2px;
  padding: 8px 12px;
  border: 1px solid rgba(58, 79, 116, 0.92);
  border-radius: 12px;
  background: rgba(20, 28, 42, 0.92);
  color: #eef3ff;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  font-weight: 700;
}

.pm-account-title-btn span {
  line-height: 1.05;
}

.pm-account-title-btn-paper {
  border-color: rgba(25, 200, 125, 0.42);
  background: rgba(25, 200, 125, 0.18);
  color: #d4ffeb;
}

.pm-account-title-btn-live {
  border-color: rgba(255, 157, 66, 0.52);
  background: rgba(255, 157, 66, 0.2);
  color: #ffe0bc;
}

.pm-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
}

.pm-brand img {
  width: 26px;
  height: 26px;
}

.pm-search-wrap input {
  width: 100%;
}

.pm-search-wrap {
  flex: 1 1 240px;
  min-width: 140px;
  max-width: none;
}

.pm-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 1 auto;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

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

.pm-tabs .page-tab {
  flex: 0 0 auto;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 6px 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: transparent;
  white-space: nowrap;
}

.pm-tabs .page-tab:hover {
  border-color: var(--line-soft);
  color: #e7eeff;
}

.pm-tabs .page-tab.active {
  border-color: rgba(79, 126, 255, 0.5);
  color: #edf2ff;
  background: rgba(79, 126, 255, 0.25);
}

.pm-auth {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  flex-wrap: nowrap;
}

.system-health-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 164px;
  padding: 6px 10px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: rgba(17, 23, 34, 0.92);
  color: #eef3ff;
  text-align: left;
}

.system-health-btn-healthy {
  border-color: rgba(25, 200, 125, 0.42);
  background: rgba(25, 200, 125, 0.14);
  color: #ddfff0;
}

.system-health-btn-unhealthy {
  border-color: rgba(255, 148, 102, 0.48);
  background: rgba(255, 132, 82, 0.14);
  color: #ffe0d1;
}

.system-health-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

#system-health-label {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#system-health-meta {
  color: inherit;
  opacity: 0.8;
  font-size: 11px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 188px;
}

.system-health-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 148, 102, 0.96);
  box-shadow: 0 0 0 4px rgba(255, 148, 102, 0.16);
  flex: 0 0 auto;
}

.system-health-dot-healthy {
  background: rgba(25, 200, 125, 0.98);
  box-shadow: 0 0 0 4px rgba(25, 200, 125, 0.16);
}

.system-health-dot-unhealthy {
  background: rgba(255, 148, 102, 0.98);
  box-shadow: 0 0 0 4px rgba(255, 148, 102, 0.18);
}

.pm-auth .btn-ghost {
  white-space: nowrap;
  font-size: 11px;
  line-height: 1.1;
  padding: 6px 10px;
}

.mode-picker {
  position: relative;
  flex: 0 0 auto;
}

.mode-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  padding: 6px 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  background: transparent;
}

.mode-pill-paper {
  border-color: rgba(25, 200, 125, 0.48);
  background: rgba(25, 200, 125, 0.18);
  color: #d4ffeb;
}

.mode-pill-live {
  border-color: rgba(255, 157, 66, 0.62);
  background: rgba(255, 157, 66, 0.16);
  color: #ffe0bc;
}

.popup-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 240;
  min-width: 132px;
  display: grid;
  gap: 4px;
  padding: 6px;
  border: 1px solid rgba(45, 60, 89, 0.96);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(18, 27, 42, 0.98), rgba(12, 19, 31, 0.99));
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.38);
}

.popup-menu-item {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  padding: 9px 12px;
  border: 1px solid rgba(57, 73, 105, 0.92);
  border-radius: 10px;
  background: rgba(18, 28, 44, 0.96);
  color: #ebf2ff;
  font-size: 12px;
  font-weight: 600;
}

.popup-menu-item:hover {
  border-color: rgba(79, 126, 255, 0.46);
  background: rgba(79, 126, 255, 0.16);
}

.page-shell {
  padding: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.page-content {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.page-jump-nav {
  position: relative;
  top: 0;
  display: grid;
  gap: 0;
  min-width: 0;
  padding: 6px 8px;
  border: 1px solid rgba(46, 58, 83, 0.96);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(18, 26, 40, 0.98), rgba(12, 18, 30, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(138, 170, 236, 0.06),
    0 10px 28px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  z-index: 4;
}

.page-jump-nav.hidden {
  display: none !important;
}

.page-jump-nav-label {
  display: none;
}

.page-jump-nav-list {
  display: flex;
  align-items: stretch;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
  scrollbar-color: rgba(86, 111, 167, 0.56) transparent;
}

.page-jump-nav-list::-webkit-scrollbar {
  height: 8px;
}

.page-jump-nav-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(86, 111, 167, 0.56);
}

.page-jump-nav-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 118px;
  min-height: 36px;
  padding: 6px 10px;
  border: 1px solid rgba(63, 80, 114, 0.92);
  border-radius: 12px;
  background: rgba(17, 27, 43, 0.94);
  color: #e7efff;
  text-align: left;
}

.page-jump-nav-btn:hover {
  border-color: rgba(79, 126, 255, 0.46);
  background: rgba(79, 126, 255, 0.14);
}

.page-jump-nav-btn.is-active {
  border-color: rgba(79, 126, 255, 0.58);
  background: rgba(79, 126, 255, 0.22);
  color: #f1f5ff;
}

.page-jump-nav-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  border: 1px solid rgba(71, 94, 140, 0.82);
  background: rgba(21, 34, 56, 0.92);
  color: #dce7ff;
  font-size: 13px;
  line-height: 1;
}

.page-jump-nav-copy {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.page-jump-nav-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-jump-nav-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  min-height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(79, 126, 255, 0.18);
  border: 1px solid rgba(79, 126, 255, 0.34);
  color: #dfe9ff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.page-view {
  display: none;
}

.page-view.is-active {
  display: block;
}

.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  min-width: 0;
}

.overview-sidebar {
  display: grid;
  gap: 14px;
  align-content: start;
  min-width: 0;
}

.overview-main {
  display: grid;
  gap: 14px;
  min-width: 0;
}

#positions-table-section {
  min-width: 0;
}

.scout-layout {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  min-width: 0;
}

.scout-sidebar {
  position: sticky;
  top: calc(var(--shell-sticky-top) + 12px);
  display: grid;
  gap: 14px;
  min-width: 0;
}

.scout-main {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.card {
  border: 1px solid #2e3a53;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(20, 27, 41, 0.98), rgba(15, 21, 34, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(138, 170, 236, 0.08),
    0 10px 28px rgba(0, 0, 0, 0.35);
  padding: 14px;
  overflow: hidden;
}

.card.pm-topbar-account {
  overflow: visible;
}

.card.pm-topbar-account.pm-topbar-account-paper {
  border-color: rgba(25, 200, 125, 0.42);
  background: rgba(25, 200, 125, 0.18);
  color: #d4ffeb;
}

.card.pm-topbar-account.pm-topbar-account-live {
  border-color: rgba(255, 157, 66, 0.52);
  background: rgba(255, 157, 66, 0.2);
  color: #ffe0bc;
}

h2,
h3 {
  margin: 0 0 10px;
}

h2 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h3 {
  margin-top: 14px;
  color: #dfe8ff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.meta {
  color: var(--muted-2);
  font-size: 12px;
  font-family:
    "JetBrains Mono",
    "SF Mono",
    "Menlo",
    monospace;
}

.card-note {
  margin: -2px 0 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.copy-strategy-check,
.detail-filter-check {
  margin: 2px 0 10px;
}

form.grid {
  display: grid;
  gap: 8px;
}

form.grid.compact {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

form.grid.grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 10px;
}

.compact-scout {
  align-items: end;
}

.compact-scout > label > input,
.compact-scout > label > select {
  min-height: 41px;
}

form.grid.grid-two > label {
  min-width: 0;
}

.span-2 {
  grid-column: 1 / -1;
}

.slider-field {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
}

.slider-field input[type="range"] {
  width: 100%;
  margin: 0;
  padding: 0;
  height: 24px;
  border: none;
  background: transparent;
  accent-color: #5a84f5;
}

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

input,
select,
button {
  border-radius: 10px;
  border: 1px solid var(--line-soft);
  background: #101622;
  color: var(--text);
  padding: 9px 10px;
  font: inherit;
  font-size: 13px;
  line-height: 1.25;
}

input,
select,
textarea {
  width: 100%;
  min-width: 0;
}

input::placeholder {
  color: #7281a0;
}

input:focus,
select:focus,
button:focus {
  outline: 2px solid rgba(79, 126, 255, 0.45);
  outline-offset: 1px;
}

button {
  cursor: pointer;
}

.btn {
  border: 1px solid var(--line-soft);
  background: #111928;
  color: #e8efff;
  font-weight: 500;
}

.btn:hover {
  filter: brightness(1.08);
}

.btn-primary {
  border-color: rgba(79, 126, 255, 0.58);
  background: linear-gradient(180deg, #5d8aff, #4b76e8);
  color: #ffffff;
}

.btn-secondary {
  border-color: rgba(74, 98, 141, 0.95);
  background: #141f33;
  color: #e6eeff;
}

.btn-ghost {
  border-color: var(--line);
  background: transparent;
  color: var(--muted);
}

.btn-danger {
  border-color: rgba(235, 95, 114, 0.68);
  background: linear-gradient(180deg, #ef6b7c, #dc4e62);
  color: #ffffff;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  filter: none;
}

.manual-form {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.check {
  grid-template-columns: 16px 1fr;
  align-items: center;
}

.check input {
  width: 16px;
  height: 16px;
  margin: 0;
}

.table-wrap {
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.section-head-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

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

.section-head h2 {
  margin: 0;
}

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

.section-count {
  margin: 0;
}

.section-toggle-btn {
  min-width: 34px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(74, 98, 141, 0.88);
  border-radius: 10px;
  background: rgba(20, 31, 51, 0.96);
  color: #dce7ff;
}

.section-toggle-btn:hover {
  border-color: rgba(79, 126, 255, 0.48);
  background: rgba(79, 126, 255, 0.14);
}

.section-toggle-btn .ph,
.section-toggle-btn .ph-fill {
  font-size: 16px;
  line-height: 1;
}

.positions-subsection {
  display: grid;
  gap: 10px;
  margin: 0;
}

.positions-subsection-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.positions-filter-grid {
  margin: 2px 0 2px;
}

.positions-subsection-head h3 {
  margin: 0;
  font-size: 14px;
}

.positions-subsection-note {
  margin: 4px 0 0;
}

.table-section.is-collapsed tbody {
  display: none;
}

.table-section.is-collapsed .table-wrap {
  overflow-y: hidden;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 780px;
}

th,
td {
  border-bottom: 1px solid rgba(40, 52, 75, 0.92);
  text-align: center;
  vertical-align: middle;
  padding: 10px 8px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  font-family:
    "JetBrains Mono",
    "SF Mono",
    "Menlo",
    monospace;
}

th {
  color: var(--muted);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(13, 18, 28, 0.8);
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 3;
  box-shadow: inset 0 -1px 0 rgba(40, 52, 75, 0.92);
}

.table-sort {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: inherit;
  line-height: inherit;
  text-align: inherit;
}

th.table-right .table-sort,
th.table-center .table-sort {
  justify-content: center;
}

.table-sort:hover {
  color: #eef3ff;
}

.table-sort-label {
  display: inline-block;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.table-sort-indicator {
  color: #8da1c9;
  font-size: 11px;
  line-height: 1;
}

th.table-right,
td.table-right,
th.table-center,
td.table-center {
  text-align: center;
}

th.table-market,
td.table-market,
th.table-actions,
td.table-actions {
  text-align: left;
}

th.table-market .table-sort,
th.table-actions .table-sort {
  justify-content: flex-start;
}

.table-date-stack {
  display: inline-grid;
  justify-items: center;
  gap: 2px;
}

.table-date-primary,
.table-date-secondary {
  color: #94a7cc;
  font-size: 10px;
  line-height: 1.2;
  font-family:
    "JetBrains Mono",
    "SF Mono",
    "Menlo",
    monospace;
  white-space: nowrap;
}

.table-date-primary {
  color: #cfdcff;
}

tr:hover td {
  background: rgba(79, 126, 255, 0.12);
}

tr.wallet-row-auto td {
  background: rgba(255, 157, 66, 0.11);
}

tr.wallet-row-auto:hover td {
  background: rgba(255, 157, 66, 0.18);
}

tr.position-row-auto td {
  background: rgba(255, 157, 66, 0.11);
}

tr.position-row-auto:hover td {
  background: rgba(255, 157, 66, 0.18);
}

tr.position-row-warning td {
  background: rgba(241, 165, 84, 0.12);
}

tr.position-row-warning:hover td {
  background: rgba(241, 165, 84, 0.2);
}

tr.position-row-ok td {
  background: rgba(25, 200, 125, 0.08);
}

tr.position-row-ok:hover td {
  background: rgba(25, 200, 125, 0.16);
}

.wallet-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
}

.detail-table td:last-child {
  width: 1%;
  white-space: nowrap;
}

.detail-table td:last-child .wallet-actions {
  flex-wrap: nowrap;
  justify-content: flex-start;
}

.wallet-actions button {
  width: auto;
  min-height: 32px;
  min-width: 36px;
  font-size: 12px;
  padding: 5px 9px;
  border-radius: 8px;
  border-color: rgba(74, 98, 141, 0.88);
  background: #162139;
}

.wallet-actions button.btn-icon {
  min-width: 38px;
  min-height: 38px;
  padding: 6px;
  font-size: 0;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.wallet-actions button.btn-remove-manual {
  border-color: rgba(239, 107, 124, 0.58);
  background: rgba(133, 38, 55, 0.28);
  color: #ffd7de;
}

.wallet-actions button .ph,
.wallet-actions button .ph-fill,
.wallet-mini-filter .ph,
.wallet-mini-filter .ph-fill {
  font-size: 18px;
  line-height: 1;
}

.btn-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-label .ph,
.btn-label .ph-fill {
  font-size: 18px;
  line-height: 1;
}

.wallet-actions button.btn-following {
  border-color: rgba(25, 200, 125, 0.62);
  background: rgba(25, 200, 125, 0.16);
  color: #b9ffe3;
}

.wallet-actions button.btn-following:hover {
  background: rgba(25, 200, 125, 0.22);
}

.wallet-actions button.btn-auto-enabled {
  border-color: rgba(255, 157, 66, 0.72);
  background: rgba(255, 157, 66, 0.16);
  color: #ffe0bc;
}

.wallet-actions button:disabled {
  opacity: 0.52;
  cursor: not-allowed;
  filter: none;
}

.wallet-ident {
  display: grid;
  gap: 2px;
  width: 100%;
  min-width: 0;
  justify-items: center;
  text-align: center;
}

.wallet-ident-feed {
  gap: 4px;
}

.wallet-ident-feed .wallet-ident-actions {
  width: 100%;
  justify-content: center;
}

.wallet-ident-feed .wallet-name-button {
  flex: 1 1 auto;
  width: 100%;
  min-width: fit-content;
}

.wallet-ident-actionable {
  gap: 4px;
}

.wallet-ident-actions {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  width: auto;
  max-width: 100%;
  margin: 0 auto;
}

.wallet-name {
  color: var(--text);
  font-weight: 600;
  font-size: 13px;
  font-family:
    "Space Grotesk",
    "IBM Plex Sans",
    sans-serif;
}

.wallet-name-hash-only {
  font-weight: 500;
  font-size: 9px;
  letter-spacing: 0;
  opacity: 0.92;
}

.wallet-name-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 0;
  max-width: 100%;
  padding: 7px 14px;
  border: 1px solid rgba(84, 113, 171, 0.72);
  border-radius: 999px;
  background: rgba(56, 82, 132, 0.2);
  color: #edf3ff;
  font-size: 13px;
  font-weight: 600;
  font-family:
    "Space Grotesk",
    "IBM Plex Sans",
    sans-serif;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  justify-self: center;
}

.wallet-name-button:hover {
  border-color: rgba(98, 134, 201, 0.88);
  background: rgba(79, 126, 255, 0.24);
  color: #ffffff;
}

.wallet-name-button-hash-only {
  font-weight: 500;
  font-size: 11px;
  letter-spacing: -0.01em;
  padding-inline: 10px;
  font-family:
    "JetBrains Mono",
    "SF Mono",
    "Menlo",
    monospace;
}

.wallet-hash {
  color: var(--muted-2);
  font-size: 11px;
  line-height: 1.2;
  text-transform: lowercase;
  word-break: break-all;
  font-family:
    "JetBrains Mono",
    "SF Mono",
    "Menlo",
    monospace;
}

.wallet-hash-short {
  white-space: nowrap;
  word-break: normal;
}

.wallet-ident-secondary {
  color: var(--muted-2);
  font-size: 11px;
  line-height: 1.2;
}

.wallet-open-link-inline {
  min-width: 34px;
  min-height: 34px;
  padding: 6px;
  border: 1px solid rgba(74, 98, 141, 0.88);
  border-radius: 999px;
  background: #162139;
  color: #e6eeff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  line-height: 1;
}

.wallet-open-link-inline .ph,
.wallet-open-link-inline .ph-fill {
  font-size: 16px;
  line-height: 1;
}

.wallet-open-link-inline .pm-icon-img,
.wallet-actions .pm-icon-img {
  width: 18px;
  height: 18px;
  display: block;
  filter: brightness(0) invert(1);
}

.wallet-open-link-inline.wallet-follow-inline.is-active {
  border-color: rgba(25, 200, 125, 0.58);
  background: rgba(25, 200, 125, 0.18);
  color: #d4ffeb;
}

.wallet-open-link-inline.wallet-follow-inline.is-active:hover {
  border-color: rgba(25, 200, 125, 0.72);
  background: rgba(25, 200, 125, 0.24);
  color: #effff7;
}

.wallet-open-link-inline.wallet-auto-inline.is-active {
  border-color: rgba(255, 157, 66, 0.72);
  background: rgba(255, 157, 66, 0.16);
  color: #ffe0bc;
}

.wallet-open-link-inline.wallet-auto-inline.is-active:hover {
  border-color: rgba(255, 157, 66, 0.84);
  background: rgba(255, 157, 66, 0.24);
  color: #fff1df;
}

.table-wallet {
  min-width: 250px;
}

.table-activity {
  white-space: normal;
}

.table-metric-stack {
  display: grid;
  gap: 2px;
}

.table-metric-stack-right {
  justify-items: center;
}

.table-metric-stack-center {
  justify-items: center;
}

.table-metric-primary {
  color: #eef3ff;
  font-weight: 600;
}

.table-metric-secondary {
  color: #93a8d0;
  font-size: 10px;
  line-height: 1.2;
  white-space: nowrap;
}

.table-sparkline {
  min-width: 180px;
}

.wallet-sparkline {
  width: 166px;
  height: 52px;
  display: inline-block;
}

.wallet-sparkline-line {
  fill: none;
  stroke: #5b86ff;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wallet-sparkline-area {
  opacity: 1;
}

.wallet-sparkline-zero {
  stroke: rgba(116, 131, 165, 0.35);
  stroke-width: 1;
  stroke-dasharray: 2 3;
}

.state-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.state-pill-final {
  color: #beffe3;
  border-color: rgba(25, 200, 125, 0.5);
  background: rgba(25, 200, 125, 0.18);
}

.state-pill-open {
  color: #d4ffeb;
  border-color: rgba(25, 200, 125, 0.56);
  background: rgba(25, 200, 125, 0.18);
}

.state-pill-closed {
  color: #d9e8ff;
  border-color: rgba(79, 126, 255, 0.56);
  background: rgba(41, 72, 143, 0.28);
}

.state-pill-terminated {
  color: #ffd7de;
  border-color: rgba(239, 107, 124, 0.58);
  background: rgba(133, 38, 55, 0.34);
}

.final-state {
  display: grid;
  gap: 3px;
  align-items: center;
  justify-items: center;
}

.status-state {
  display: grid;
  gap: 4px;
  justify-items: center;
}

.status-at,
.final-at {
  color: #94a7cc;
  font-size: 10px;
  line-height: 1.2;
  white-space: nowrap;
  font-family:
    "JetBrains Mono",
    "SF Mono",
    "Menlo",
    monospace;
}

.final-duration {
  color: #d7e3ff;
  font-size: 10px;
  line-height: 1.2;
  font-family:
    "JetBrains Mono",
    "SF Mono",
    "Menlo",
    monospace;
}

.position-stake-cell {
  display: grid;
  gap: 3px;
  justify-items: center;
  align-content: center;
  text-align: center;
}

.position-stake-amount {
  color: #edf3ff;
}

.position-stake-duration {
  color: #94a7cc;
  font-size: 10px;
  line-height: 1.2;
  white-space: nowrap;
  font-family:
    "JetBrains Mono",
    "SF Mono",
    "Menlo",
    monospace;
}

.position-price-cell {
  display: grid;
  gap: 3px;
  justify-items: center;
  text-align: center;
}

td.table-center .position-price-cell {
  justify-items: center;
}

.position-price-amount {
  color: #edf3ff;
}

.position-price-note {
  color: #f1c38c;
  font-size: 10px;
  line-height: 1.2;
  white-space: nowrap;
  font-family:
    "JetBrains Mono",
    "SF Mono",
    "Menlo",
    monospace;
}

.position-profit {
  display: inline-grid;
  justify-items: end;
  justify-content: flex-end;
  min-width: 92px;
  font-weight: 600;
  gap: 2px;
  padding: 6px 10px;
  border: 1px solid rgba(81, 96, 126, 0.82);
  border-radius: 14px;
  background: rgba(24, 31, 45, 0.88);
}

.position-profit-amount {
  line-height: 1.15;
}

.position-profit-pct {
  font-size: 10px;
  line-height: 1.1;
  opacity: 0.92;
  font-family:
    "JetBrains Mono",
    "SF Mono",
    "Menlo",
    monospace;
}

.position-profit-positive {
  border-color: rgba(25, 200, 125, 0.45);
  background: rgba(25, 200, 125, 0.18);
  color: #d4ffeb;
}

.position-profit-negative {
  border-color: rgba(255, 109, 137, 0.45);
  background: rgba(255, 109, 137, 0.16);
  color: #ffd0d9;
}

.position-profit-neutral {
  border-color: rgba(95, 116, 158, 0.42);
  background: rgba(95, 116, 158, 0.16);
  color: #d8e2f8;
}

td.table-center .position-profit,
td.table-center .detail-profit-display {
  justify-items: center;
  justify-content: center;
}

.detail-profit-display {
  justify-items: end;
  width: 100%;
}

.detail-profit-pill {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 108px;
  padding: 7px 10px;
  border-radius: 14px;
  border: 1px solid rgba(81, 96, 126, 0.82);
  background: rgba(24, 31, 45, 0.88);
  font-family:
    "JetBrains Mono",
    "SF Mono",
    "Menlo",
    monospace;
}

.detail-profit-pill-amount {
  font-size: 12px;
  line-height: 1.1;
  font-weight: 600;
}

.detail-profit-pill-pct {
  font-size: 9px;
  line-height: 1.05;
  opacity: 0.92;
}

.detail-profit-pill-positive {
  border-color: rgba(25, 200, 125, 0.45);
  background: rgba(25, 200, 125, 0.18);
  color: #d4ffeb;
}

.detail-profit-pill-negative {
  border-color: rgba(255, 109, 137, 0.45);
  background: rgba(255, 109, 137, 0.16);
  color: #ffd0d9;
}

.detail-profit-pill-neutral {
  border-color: rgba(95, 116, 158, 0.42);
  background: rgba(95, 116, 158, 0.16);
  color: #d5ddef;
}

.detail-copy-cell {
  display: grid;
  justify-items: center;
  gap: 6px;
}

.detail-copy-stake {
  color: #edf3ff;
  font-weight: 600;
}

.detail-copy-pill {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 108px;
  padding: 6px 10px;
  border-radius: 14px;
  border: 1px solid rgba(81, 96, 126, 0.82);
  background: rgba(24, 31, 45, 0.88);
  color: #d5ddef;
  font-family:
    "JetBrains Mono",
    "SF Mono",
    "Menlo",
    monospace;
}

.detail-copy-pill-amount {
  font-size: 11px;
  line-height: 1.1;
  font-weight: 600;
}

.detail-copy-pill-pct {
  font-size: 9px;
  line-height: 1.05;
  opacity: 0.92;
}

.detail-copy-pill-positive {
  border-color: rgba(25, 200, 125, 0.45);
  background: rgba(25, 200, 125, 0.18);
  color: #d4ffeb;
}

.detail-copy-pill-negative {
  border-color: rgba(255, 109, 137, 0.45);
  background: rgba(255, 109, 137, 0.16);
  color: #ffd0d9;
}

.detail-copy-pill-neutral {
  border-color: rgba(95, 116, 158, 0.42);
  background: rgba(95, 116, 158, 0.16);
  color: #d5ddef;
}

.value-edge-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 70px;
  border: 1px solid rgba(60, 77, 109, 0.92);
  border-radius: 999px;
  background: rgba(16, 24, 38, 0.95);
  padding: 4px 10px;
  font-weight: 600;
  line-height: 1.2;
}

.value-edge-positive {
  border-color: rgba(25, 200, 125, 0.48);
  background: rgba(25, 200, 125, 0.16);
  color: #b9ffe3;
}

.value-edge-negative {
  border-color: rgba(239, 107, 124, 0.48);
  background: rgba(133, 38, 55, 0.24);
  color: #ffd3db;
}

.value-edge-neutral {
  color: #d9e4fb;
}

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

.paper-summary {
  display: flex;
  gap: 8px;
  align-items: stretch;
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.paper-summary::-webkit-scrollbar {
  display: none;
}

.summary-item {
  border: 1px solid rgba(44, 57, 84, 0.95);
  border-radius: 10px;
  background: linear-gradient(180deg, #161f31, #121b2c);
  padding: 8px;
}

.summary-item strong {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.summary-item span {
  color: #e8efff;
  font-size: 13px;
  font-weight: 600;
}

.summary-item .summary-item-secondary {
  display: block;
  margin-top: 3px;
  color: #93a8d0;
  font-size: 9px;
  line-height: 1.2;
  font-weight: 500;
  font-family:
    "JetBrains Mono",
    "SF Mono",
    "Menlo",
    monospace;
}

#detail-summary .summary-item {
  text-align: center;
}

#detail-summary .summary-item strong,
#detail-summary .summary-item span {
  text-align: center;
}

#detail-summary .summary-item .summary-item-secondary {
  font-size: 9px;
  font-weight: 500;
}

.summary-item-account {
  flex: 0 0 118px;
  min-width: 118px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2px;
  padding: 8px 10px;
  text-align: center;
}

.summary-item-account strong,
.summary-item-account span {
  width: 100%;
  text-align: center;
}

.summary-item-account strong {
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

button.summary-item-account-setting {
  appearance: none;
  font: inherit;
  cursor: pointer;
  transition:
    transform 140ms ease,
    border-color 140ms ease,
    box-shadow 140ms ease;
}

button.summary-item-account-setting:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(138, 170, 236, 0.08),
    0 8px 20px rgba(0, 0, 0, 0.28);
}

button.summary-item-account-setting:focus-visible {
  outline: 2px solid rgba(129, 166, 255, 0.85);
  outline-offset: 2px;
}

.summary-item-status {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

button.summary-item-status {
  appearance: none;
  font: inherit;
}

.summary-item-status strong,
.summary-item-status span {
  text-align: center;
}

.summary-item-account-status {
  flex: 0 0 94px;
  min-width: 94px;
  cursor: pointer;
  transition:
    transform 140ms ease,
    border-color 140ms ease,
    box-shadow 140ms ease,
    background 140ms ease;
}

.summary-item-account-status:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(138, 170, 236, 0.08),
    0 8px 20px rgba(0, 0, 0, 0.28);
}

.summary-item-account-status:focus-visible {
  outline: 2px solid rgba(129, 166, 255, 0.85);
  outline-offset: 2px;
}

.summary-item-status-open {
  border-color: rgba(25, 200, 125, 0.56);
  background: rgba(25, 200, 125, 0.18);
}

.summary-item-status-open strong,
.summary-item-status-open span {
  color: #d4ffeb;
}

.summary-item-status-closed {
  border-color: rgba(79, 126, 255, 0.56);
  background: rgba(41, 72, 143, 0.28);
}

.summary-item-status-closed strong,
.summary-item-status-closed span {
  color: #d9e8ff;
}

.summary-item-status-terminated {
  border-color: rgba(239, 107, 124, 0.58);
  background: rgba(133, 38, 55, 0.34);
}

.summary-item-status-terminated strong,
.summary-item-status-terminated span {
  color: #ffd7de;
}

.list {
  display: grid;
  gap: 8px;
}

.list-item {
  border: 1px solid rgba(43, 57, 84, 0.95);
  border-radius: 10px;
  background: linear-gradient(180deg, #161f31, #121b2c);
  padding: 10px;
}

.list-item strong {
  font-size: 13px;
  line-height: 1.3;
}

.list-item p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.simple-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.simple-list li {
  margin: 0;
  color: #e2e9ff;
  font-size: 12px;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.34;
}

.wallet-mini-item {
  border: 1px solid rgba(42, 56, 84, 0.92);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(21, 30, 46, 0.96), rgba(15, 22, 35, 0.98));
  padding: 11px 12px 12px;
}

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

.wallet-mini-header-buttons {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.wallet-mini-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
}

.wallet-mini-actions .wallet-mini-link {
  flex: 0 0 auto;
}

.wallet-mini-actions .wallet-open-link-inline {
  min-width: 38px;
  min-height: 38px;
  border-radius: 999px;
}

.wallet-mini-link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
  width: max-content;
  max-width: none;
  border: 1px solid rgba(84, 113, 171, 0.7);
  border-radius: 999px;
  background: rgba(56, 82, 132, 0.22);
  color: #edf3ff;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  text-align: left;
  white-space: nowrap;
  overflow: visible;
}

.wallet-mini-link:hover {
  background: rgba(79, 126, 255, 0.24);
}

.wallet-mini-header-btn {
  min-width: 38px;
  min-height: 38px;
  padding: 6px;
  border-radius: 999px;
  font-size: 0;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.wallet-mini-header-btn .ph,
.wallet-mini-header-btn .ph-fill {
  font-size: 18px;
  line-height: 1;
}

.wallet-mini-stop {
  border: 1px solid rgba(255, 157, 66, 0.72);
  background: rgba(255, 157, 66, 0.16);
  color: #ffe0bc;
}

.wallet-mini-stop:hover {
  background: rgba(255, 157, 66, 0.22);
}

.wallet-mini-favorite {
  border: 1px solid rgba(98, 121, 174, 0.72);
  background: rgba(41, 58, 94, 0.2);
  color: #edf3ff;
}

.wallet-mini-favorite:hover {
  background: rgba(79, 126, 255, 0.2);
}

.wallet-mini-favorite.is-active {
  border-color: rgba(25, 200, 125, 0.62);
  background: rgba(25, 200, 125, 0.16);
  color: #b9ffe3;
}

.wallet-mini-favorite.is-active:hover {
  background: rgba(25, 200, 125, 0.22);
}

.wallet-mini-auto {
  border: 1px solid rgba(98, 121, 174, 0.72);
  background: rgba(41, 58, 94, 0.2);
  color: #edf3ff;
}

.wallet-mini-auto:hover {
  background: rgba(79, 126, 255, 0.2);
}

.wallet-mini-auto.is-active {
  border-color: rgba(255, 157, 66, 0.72);
  background: rgba(255, 157, 66, 0.16);
  color: #ffe0bc;
}

.wallet-mini-filter {
  min-width: 38px;
  min-height: 38px;
  padding: 6px;
  border: 1px solid rgba(84, 113, 171, 0.7);
  border-radius: 999px;
  background: rgba(56, 82, 132, 0.22);
  color: #edf3ff;
  font-size: 16px;
  line-height: 1;
}

.wallet-mini-filter:hover {
  background: rgba(79, 126, 255, 0.24);
}

.wallet-mini-body {
  margin-top: 14px;
}

.wallet-mini-footer {
  margin-top: 12px;
}

.wallet-mini-behavior-pill {
  display: inline-flex;
  align-items: center;
  width: 100%;
  min-height: 38px;
  justify-content: center;
  border: 1px solid rgba(255, 157, 66, 0.48);
  border-radius: 999px;
  background: rgba(58, 39, 18, 0.94);
  color: #ffe0bc;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 9px 14px;
}

.wallet-mini-behavior-pill:hover {
  background: rgba(74, 49, 21, 0.98);
  border-color: rgba(255, 173, 92, 0.62);
}

.wallet-mini-body-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: end;
}

.wallet-mini-body-single {
  display: grid;
}

.wallet-mini-column {
  display: grid;
  gap: 7px;
}

.wallet-mini-column-auto {
  justify-items: start;
  align-content: start;
}

.wallet-mini-column-general {
  justify-items: end;
  align-content: end;
}

.wallet-mini-stat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(60, 77, 109, 0.9);
  border-radius: 999px;
  background: rgba(16, 24, 38, 0.95);
  padding: 4px 8px;
  color: #dfe7fb;
  font-size: 11px;
  line-height: 1.2;
}

.wallet-mini-stat-action {
  cursor: pointer;
}

.wallet-mini-stat-action:hover {
  filter: brightness(1.08);
}

.wallet-mini-stat-label {
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 10px;
}

.wallet-mini-stat.is-positive {
  border-color: rgba(25, 200, 125, 0.45);
}

.wallet-mini-stat.is-negative {
  border-color: rgba(239, 107, 124, 0.45);
}

.wallet-mini-stat.is-config {
  border-color: rgba(79, 126, 255, 0.46);
  background: rgba(31, 46, 74, 0.92);
}

.row {
  display: flex;
  gap: 8px;
  margin-bottom: 6px;
}

.wallet-feed-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.wallet-feed-head h2 {
  margin-bottom: 0;
}

.pm-account-reset {
  display: flex;
  align-items: center;
  margin: 0;
  flex: 0 0 auto;
}

.pm-account-reset .btn {
  min-width: 104px;
  height: 100%;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.1;
  white-space: normal;
}

.wallet-feed-note {
  margin: -2px 0 10px;
  max-width: 860px;
}

.wallet-feed-range {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.wallet-feed-range-btn {
  min-width: 46px;
  padding: 7px 12px;
  border: 1px solid rgba(74, 98, 141, 0.9);
  border-radius: 10px;
  background: #141f33;
  color: #c9d6f3;
  font-size: 12px;
  font-weight: 600;
}

.wallet-feed-range-btn:hover {
  background: #17243c;
}

.wallet-feed-range-btn.active {
  border-color: rgba(79, 126, 255, 0.62);
  background: rgba(79, 126, 255, 0.22);
  color: #edf3ff;
}

#detail-title {
  margin: -2px 0 10px;
}

.detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.detail-table-section .positions-subsection-head {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(50, 66, 95, 0.82);
}

#detail-title .wallet-name-button {
  font-size: 14px;
  width: auto;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
}

#detail-title .wallet-ident {
  width: auto;
  display: inline-grid;
  max-width: 100%;
}

#detail-title .wallet-ident-actions {
  width: fit-content;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: start;
  max-width: 100%;
}

#detail-title .wallet-ident-secondary {
  justify-self: start;
}

.detail-note {
  margin: -2px 0 10px;
  max-width: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.detail-count-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid rgba(84, 113, 171, 0.66);
  background: rgba(56, 82, 132, 0.22);
  color: #edf3ff;
  font-size: 11px;
  font-weight: 600;
  vertical-align: middle;
}

.detail-table-wrap table {
  min-width: 980px;
}

.overview-main #positions-table-section .table-wrap table {
  min-width: 1560px;
}

.auto-wallets-table-wrap table {
  min-width: 1180px;
}

#auto-wallets-summary-body td {
  vertical-align: middle;
}

.auto-wallet-mode {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  padding: 7px 10px;
  border: 1px solid rgba(84, 113, 171, 0.56);
  border-radius: 999px;
  background: rgba(56, 82, 132, 0.2);
  color: #edf3ff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auto-wallet-caution-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(84, 113, 171, 0.56);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auto-wallet-caution-pill.is-blocked {
  border-color: rgba(48, 196, 128, 0.56);
  background: rgba(18, 64, 43, 0.92);
  color: #cffff0;
}

.auto-wallet-caution-pill.is-allowed {
  border-color: rgba(229, 92, 108, 0.58);
  background: rgba(78, 24, 34, 0.92);
  color: #ffd2d9;
}

.auto-wallet-pnl {
  font-weight: 700;
}

.auto-wallet-pnl.is-positive {
  color: #7af0b1;
}

.auto-wallet-pnl.is-negative {
  color: #ff95a5;
}

.auto-wallet-pnl.is-neutral {
  color: #edf3ff;
}

.auto-wallet-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
}

.auto-wallet-actions button {
  width: auto;
  min-height: 32px;
  min-width: 36px;
  font-size: 12px;
  padding: 5px 9px;
  border-radius: 8px;
  border-color: rgba(74, 98, 141, 0.88);
  background: #162139;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.auto-wallet-actions button.btn-icon {
  min-width: 38px;
  min-height: 38px;
  padding: 6px;
  font-size: 0;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.auto-wallet-actions button .ph,
.auto-wallet-actions button .ph-fill {
  font-size: 18px;
  line-height: 1;
}

.auto-wallet-actions button.btn-following {
  border-color: rgba(25, 200, 125, 0.62);
  background: rgba(25, 200, 125, 0.16);
  color: #b9ffe3;
}

.auto-wallet-actions button.btn-following:hover {
  background: rgba(25, 200, 125, 0.22);
}

.auto-wallet-actions button.btn-auto-enabled {
  border-color: rgba(255, 157, 66, 0.72);
  background: rgba(255, 157, 66, 0.16);
  color: #ffe0bc;
}

#positions-table-section th:nth-child(2),
#positions-table-section td:nth-child(2) {
  min-width: 320px;
  width: 320px;
}

#positions-table-section td {
  vertical-align: middle;
}

#positions-table-section td.table-center .final-state {
  justify-items: center;
}

#positions-table-section td:nth-child(9) .detail-position-cell {
  justify-items: center;
}

#positions-table-section td:nth-child(9) .detail-position-outcome,
#positions-table-section td:nth-child(9) .detail-position-side {
  white-space: nowrap;
}

.detail-table td {
  vertical-align: middle;
}

.detail-row-copied td {
  background: rgba(25, 200, 125, 0.11);
}

.detail-row-copied:hover td {
  background: rgba(25, 200, 125, 0.18);
}

.detail-market-cell,
.detail-position-cell {
  display: grid;
  gap: 4px;
  justify-items: center;
  text-align: center;
}

.table-market .detail-market-cell {
  justify-items: start;
  text-align: left;
}

.detail-market-topline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.table-market .detail-market-topline {
  justify-content: flex-start;
}

.detail-copy-origin-icons {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.table-icon-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  min-height: 24px;
  line-height: 1;
}

.table-icon-inline .ph,
.table-icon-inline .ph-fill {
  font-size: 17px;
}

.position-validation-cell {
  display: grid;
  place-items: center;
}

.position-validation-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  min-height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(64, 84, 121, 0.92);
  background: rgba(14, 22, 36, 0.96);
  line-height: 1;
  cursor: help;
}

.position-validation-badge .ph,
.position-validation-badge .ph-fill {
  font-size: 18px;
  line-height: 1;
}

.position-validation-badge-ok {
  border-color: rgba(48, 190, 122, 0.55);
  background: rgba(18, 55, 41, 0.94);
  color: #58e391;
}

.position-validation-badge-warning {
  border-color: rgba(241, 165, 84, 0.6);
  background: rgba(61, 39, 18, 0.96);
  color: #f2ae59;
}

.detail-market-title,
.detail-position-side {
  color: #edf3ff;
  font-weight: 600;
}

.detail-market-meta,
.detail-position-outcome {
  color: #93a8d0;
  font-size: 10px;
  line-height: 1.2;
  white-space: nowrap;
}

.detail-market-checked {
  font-style: italic;
}

.detail-market-cell .table-date-stack {
  justify-items: center;
}

.detail-market-cell .table-date-primary,
.detail-market-cell .table-date-secondary {
  text-align: center;
}

.monitor-charts {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.monitor-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.monitor-refresh-control {
  display: grid;
  gap: 4px;
  min-width: 120px;
}

.monitor-refresh-control .meta {
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.monitor-refresh-control select {
  min-width: 120px;
}

.history-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.history-head-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.history-status {
  margin: 0;
  max-width: 860px;
}

.history-series-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 14px;
}

.history-series-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid rgba(61, 79, 116, 0.92);
  border-radius: 12px;
  background: rgba(16, 24, 38, 0.96);
  color: #dfe8ff;
  transition:
    border-color 140ms ease,
    background 140ms ease,
    transform 140ms ease,
    opacity 140ms ease;
}

.history-series-toggle:hover {
  transform: translateY(-1px);
}

.history-series-toggle.is-active {
  border-color: var(--series-color, rgba(129, 166, 255, 0.8));
  background: rgba(30, 44, 68, 0.98);
}

.history-series-toggle.is-inactive {
  opacity: 0.58;
}

.history-series-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--series-color, #8da1c9);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.history-charts {
  display: grid;
  gap: 12px;
}

.chart-card {
  border: 1px solid rgba(42, 57, 87, 0.9);
  border-radius: 12px;
  background: linear-gradient(180deg, #131d2f, #10192a);
  padding: 10px;
}

.chart-card header {
  display: grid;
  gap: 2px;
  margin-bottom: 8px;
}

.chart-card h3 {
  margin: 0;
}

.chart-card canvas {
  width: 100%;
  height: 220px;
  display: block;
  border: 1px solid rgba(36, 50, 76, 0.85);
  border-radius: 10px;
  background:
    linear-gradient(to bottom, rgba(18, 28, 44, 0.98), rgba(12, 18, 29, 0.98)),
    repeating-linear-gradient(
      to right,
      transparent,
      transparent 44px,
      rgba(58, 78, 116, 0.3) 45px
    );
}

.empty {
  color: var(--muted-2);
}

.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  background: rgba(5, 8, 14, 0.82);
  backdrop-filter: blur(8px);
}

.auth-overlay.hidden {
  display: none;
}

.login-card {
  width: min(380px, 92vw);
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, #131d2f, #10192a);
  padding: 16px;
}

.login-card h2 {
  margin: 0;
}

.login-card p {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 13px;
}

.toast {
  position: fixed;
  top: 96px;
  right: 16px;
  z-index: 60;
  display: grid;
  justify-items: start;
  gap: 4px;
  border-radius: 14px;
  border: 1px solid rgba(57, 74, 106, 0.95);
  background: rgba(16, 26, 43, 0.96);
  color: var(--text);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  padding: 10px 13px;
  max-width: min(360px, calc(100vw - 24px));
  font-size: 12px;
  line-height: 1.35;
  text-align: left;
  pointer-events: none;
  backdrop-filter: blur(10px);
}

.toast-copy {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px;
  width: 100%;
}

.toast-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  min-width: 20px;
  min-height: 20px;
  line-height: 1;
}

.toast-icon .ph,
.toast-icon .ph-fill {
  font-size: 18px;
  line-height: 1;
}

.toast-icon-spinning .ph,
.toast-icon-spinning .ph-fill {
  animation: toast-spin 0.9s linear infinite;
}

.toast-message {
  min-width: 0;
}

.toast-info {
  border-color: rgba(84, 113, 171, 0.82);
  background: rgba(18, 28, 45, 0.96);
  color: #edf3ff;
}

.toast-success {
  border-color: rgba(25, 200, 125, 0.5);
  background: rgba(13, 40, 31, 0.96);
  color: #d8ffec;
}

.toast-warning {
  border-color: rgba(255, 173, 92, 0.52);
  background: rgba(51, 34, 16, 0.96);
  color: #ffe4c4;
}

.toast-error {
  border-color: rgba(239, 107, 124, 0.52);
  background: rgba(49, 20, 29, 0.97);
  color: #ffd6de;
}

@keyframes toast-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

#log-card {
  margin-top: 14px;
}

.log-area {
  min-height: 180px;
  max-height: 380px;
  resize: vertical;
  border-radius: 10px;
  border: 1px solid rgba(57, 74, 106, 0.95);
  background: #0d1525;
  color: #e6eeff;
  padding: 9px 10px;
  font-size: 11px;
  line-height: 1.25;
  font-family:
    "JetBrains Mono",
    "SF Mono",
    "Menlo",
    monospace;
}

.hover-help {
  position: fixed;
  z-index: 120;
  border: 1px solid rgba(57, 74, 106, 0.96);
  border-radius: 8px;
  background: #0f1828;
  color: #e6eeff;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4);
  padding: 7px 10px;
  min-width: 88px;
  max-width: 280px;
  font-size: 11px;
  line-height: 1.25;
  text-align: center;
  word-break: break-word;
  font-family:
    "JetBrains Mono",
    "SF Mono",
    "Menlo",
    monospace;
  pointer-events: none;
}

.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: grid;
  place-items: center;
  background: rgba(6, 10, 16, 0.6);
  backdrop-filter: blur(5px);
  padding: 18px;
}

.loading-overlay.loading-overlay-corner {
  inset: auto 18px 18px auto;
  display: block;
  background: none;
  backdrop-filter: none;
  padding: 0;
  pointer-events: none;
}

.loading-card {
  min-width: min(320px, 92vw);
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 22px 20px;
  border: 1px solid rgba(57, 74, 106, 0.96);
  border-radius: 18px;
  background: rgba(13, 21, 35, 0.98);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42);
}

.loading-overlay.loading-overlay-corner .loading-card {
  min-width: min(280px, calc(100vw - 36px));
  justify-items: start;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(13, 21, 35, 0.96);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.36);
}

.loading-overlay.loading-overlay-corner .loading-message {
  text-align: left;
}

.loading-spinner {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 3px solid rgba(123, 149, 204, 0.22);
  border-top-color: rgba(129, 166, 255, 0.96);
  animation: loading-spin 780ms linear infinite;
}

.loading-overlay.loading-overlay-corner .loading-spinner {
  width: 22px;
  height: 22px;
  border-width: 2px;
}

.loading-message {
  color: #edf3ff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: center;
  font-family:
    "Space Grotesk",
    "IBM Plex Sans",
    sans-serif;
}

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

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  background: rgba(7, 10, 16, 0.7);
  backdrop-filter: blur(6px);
  padding: 16px;
}

.modal-card {
  width: min(480px, 96vw);
  display: grid;
  gap: 10px;
  border: 1px solid rgba(47, 61, 87, 0.94);
  border-radius: 16px;
  background: linear-gradient(180deg, #131d2f, #10192a);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
  padding: 14px;
}

.modal-card-wide {
  width: min(920px, 96vw);
}

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

.modal-head h3 {
  margin: 0;
}

.modal-close {
  min-width: 34px;
  min-height: 30px;
  padding: 0;
}

.modal-input {
  display: grid;
  gap: 5px;
}

.manual-copy-form {
  display: grid;
  gap: 10px;
}

.auto-trade-form {
  gap: 12px;
  width: min(100%, 460px);
}

.modal-auto-summary {
  display: grid;
  gap: 10px;
  padding: 12px 13px;
  border: 1px solid rgba(56, 79, 120, 0.92);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(17, 28, 46, 0.98), rgba(12, 21, 35, 0.98));
  box-shadow: inset 0 1px 0 rgba(112, 146, 219, 0.08);
}

.modal-auto-summary-head {
  display: grid;
  gap: 4px;
}

.modal-auto-summary-label {
  color: #8ea2ca;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.modal-auto-summary-wallet {
  display: grid;
  gap: 2px;
}

.modal-auto-summary-name {
  color: #edf3ff;
  font-size: 13px;
  font-weight: 700;
  font-family:
    "Space Grotesk",
    "IBM Plex Sans",
    sans-serif;
}

.modal-auto-summary-hash {
  color: #93a4c6;
  font-size: 11px;
  font-family:
    "JetBrains Mono",
    "SF Mono",
    "Menlo",
    monospace;
}

.modal-auto-summary-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.modal-auto-summary-chip {
  display: inline-grid;
  gap: 2px;
  min-width: 92px;
  padding: 8px 10px;
  border: 1px solid rgba(70, 93, 140, 0.82);
  border-radius: 11px;
  background: rgba(18, 29, 47, 0.92);
}

.modal-auto-summary-chip-label {
  color: #8193ba;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.modal-auto-summary-chip-value {
  color: #eef4ff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.modal-input-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.modal-choice-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.modal-check {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px 12px;
  border: 1px solid rgba(53, 71, 106, 0.92);
  border-radius: 12px;
  background: rgba(15, 24, 38, 0.92);
}

.modal-check input {
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
}

.modal-check-copy {
  display: grid;
  gap: 4px;
}

.modal-check-title {
  color: #eaf1ff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.modal-check-note {
  color: #93a4c6;
  font-size: 11px;
  line-height: 1.45;
}

.modal-choice-pill {
  appearance: none;
  border: 1px solid rgba(72, 90, 128, 0.94);
  border-radius: 999px;
  background: rgba(17, 26, 42, 0.98);
  color: #c7d8ff;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    border-color 120ms ease,
    background 120ms ease,
    color 120ms ease,
    transform 120ms ease;
}

.modal-choice-pill:hover {
  border-color: rgba(105, 140, 214, 0.94);
  background: rgba(25, 40, 68, 0.98);
  color: #eef3ff;
}

.modal-choice-pill.is-active {
  border-color: rgba(94, 138, 255, 0.96);
  background: linear-gradient(180deg, rgba(35, 64, 126, 0.98), rgba(25, 46, 92, 0.98));
  color: #f5f8ff;
  box-shadow: 0 8px 18px rgba(12, 20, 38, 0.32);
}

.modal-choice-pill:focus-visible {
  outline: 2px solid rgba(132, 168, 255, 0.9);
  outline-offset: 2px;
}

.manual-copy-availability-card {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(47, 61, 87, 0.94);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(18, 28, 44, 0.98), rgba(14, 22, 36, 0.98));
  padding: 10px;
}

.manual-copy-availability-label {
  color: var(--muted);
  font-size: 11px;
}

.manual-copy-availability-value {
  color: #eef3ff;
  font-size: 18px;
  line-height: 1.1;
}

.manual-copy-availability-detail {
  color: #93a8d0;
  font-size: 11px;
  line-height: 1.35;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.diagnostics-modal-card {
  gap: 14px;
}

.diagnostics-stack {
  display: grid;
  gap: 12px;
}

.diagnostics-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(72, 90, 128, 0.94);
  border-radius: 12px;
  background: rgba(16, 24, 36, 0.94);
}

.diagnostics-banner strong {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.diagnostics-banner-good {
  border-color: rgba(25, 200, 125, 0.38);
  background: rgba(25, 200, 125, 0.14);
  color: #ddfff0;
}

.diagnostics-banner-bad {
  border-color: rgba(255, 148, 102, 0.42);
  background: rgba(255, 132, 82, 0.14);
  color: #ffe0d1;
}

.diagnostics-reasons {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.diagnostics-reason-item {
  color: #d8e3ff;
  font-size: 12px;
  line-height: 1.45;
  padding: 8px 10px;
  border: 1px solid rgba(54, 70, 102, 0.84);
  border-radius: 10px;
  background: rgba(14, 20, 31, 0.82);
}

.diagnostics-copy-row {
  display: flex;
  justify-content: flex-end;
}

.diagnostics-panel {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(47, 61, 87, 0.94);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(16, 24, 38, 0.98), rgba(12, 18, 29, 0.98));
  padding: 12px;
}

.diagnostics-panel header h4 {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.diagnostics-log {
  margin: 0;
  max-height: 240px;
  overflow: auto;
  border-radius: 10px;
  padding: 10px;
  background: rgba(7, 11, 18, 0.92);
  color: #d7e5ff;
  font-family:
    "JetBrains Mono",
    "SFMono-Regular",
    monospace;
  font-size: 11px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.hidden {
  display: none !important;
}

@media (max-width: 1280px) {
  .page-jump-nav {
    padding: 6px 8px;
  }

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

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

  .scout-sidebar {
    position: static;
  }

  .detail-table-wrap table {
    min-width: 1080px;
  }

  .overview-main #positions-table-section .table-wrap table {
    min-width: 1280px;
  }

  .auto-wallets-table-wrap table {
    min-width: 1080px;
  }
}

@media (max-width: 720px) {
  .page-shell {
    padding: 10px;
  }

  .page-jump-nav {
    padding: 8px;
  }

  .page-jump-nav-btn {
    min-width: 112px;
    min-height: 34px;
    padding: 6px 9px;
  }

  .card {
    padding: 12px;
  }

  .wallet-mini-header {
    flex-direction: column;
    align-items: stretch;
  }

  .wallet-mini-header-buttons {
    justify-content: flex-end;
  }

  .wallet-mini-actions {
    width: 100%;
    justify-content: space-between;
  }

  .wallet-mini-link {
    width: 100%;
    max-width: 100%;
    white-space: normal;
  }

  .wallet-mini-body-split {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .positions-subsection {
    margin: 0;
  }

  .wallet-mini-column-general,
  .wallet-mini-column-auto {
    justify-items: start;
  }

  .pm-topbar {
    padding: 10px 12px 12px;
  }

  .pm-search-wrap {
    min-width: 88px;
  }

  .pm-tabs {
    max-width: 46vw;
  }

  .pm-tabs .page-tab {
    padding: 6px 10px;
    font-size: 11px;
  }

  .pm-auth {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .system-health-btn {
    min-width: 0;
    max-width: 100%;
  }

  .pm-topbar-account {
    flex-wrap: wrap;
    overflow: visible;
  }

  .pm-account-mode {
    width: 100%;
  }

  .pm-account-title-btn {
    width: 100%;
  }

  .paper-summary {
    flex-wrap: wrap;
    overflow: visible;
  }

  .summary-item-account {
    flex: 1 1 calc(50% - 4px);
    min-width: calc(50% - 4px);
  }

  .summary-item-account-status {
    flex: 1 1 calc(33.333% - 6px);
    min-width: calc(33.333% - 6px);
  }

  .pm-account-reset {
    width: 100%;
  }

  .pm-account-reset .btn {
    width: 100%;
    min-height: 46px;
  }

  .wallet-feed-head {
    flex-direction: column;
    align-items: stretch;
  }

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

  .diagnostics-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .history-series-toggles {
    gap: 6px;
  }

  .history-series-toggle {
    width: 100%;
    justify-content: flex-start;
  }

  .wallet-feed-range {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .wallet-feed-range-btn {
    flex: 0 0 auto;
  }

  .wallet-feed-note,
  .card-note {
    font-size: 11px;
  }

  #positions-table-section th:nth-child(2),
  #positions-table-section td:nth-child(2) {
    min-width: 260px;
    width: 260px;
  }
}

@media (max-width: 980px) {
  .pm-topbar {
    gap: 8px;
  }

  .pm-topbar-main {
    gap: 10px;
  }

  .pm-search-wrap {
    flex: 1 1 140px;
  }

  .pm-tabs {
    flex: 0 1 auto;
    max-width: min(56vw, 420px);
    padding-bottom: 2px;
  }

  .pm-auth {
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  #system-health-meta {
    max-width: 132px;
  }

  .pm-topbar-account {
    flex-wrap: wrap;
  }

  .wallet-feed-head {
    align-items: flex-start;
  }

  .table-wrap table {
    min-width: 720px;
  }

  form.grid.grid-two {
    grid-template-columns: 1fr;
  }

  .span-2 {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .modal-input-row {
    grid-template-columns: 1fr;
  }
}
