:root {
  color-scheme: light;
  --ink: #182238;
  --muted: #536078;
  --soft: #667085;
  --line: #e8ecf2;
  --line-strong: #dce2eb;
  --blue-line: #b9cbe6;
  --green-line: #b7d8cc;
  --red-line: #e9bcc2;
  --amber-line: #d8c18f;
  --violet-line: #d9d4ef;
  --canvas: #ffffff;
  --subtle: #f7f9fc;
  --subtle-strong: #f1f4f8;
  /* Raised surfaces (modals, dropdowns, pickers). Referenced across hub.css
     but historically undefined — it silently fell back to transparent, which
     native select popups exposed as washed-out rows. */
  --panel: #ffffff;
  --navy: #122642;
  --accent: #122642;
  --accent-hover: #1d3b63;
  --accent-soft: #eef2f7;
  --action: #122642;
  --action-hover: #1d3b63;
  --control-border: #8793a6;
  --disabled-bg: #e9eef5;
  --disabled-fg: #536078;
  --disabled-line: #c4cedc;
  --blue: #3268d6;
  --blue-soft: #eef4ff;
  --green: #16936c;
  --green-soft: #eaf8f2;
  --red: #d95761;
  --red-soft: #fff0f1;
  --amber: #a66b13;
  --amber-soft: #fff7e8;
  --violet: #7159a8;
  --violet-soft: #f5f2ff;
  --focus-ring: rgba(50, 104, 214, 0.16);
  --mono: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  --brand-cyan: #1272d9;
  --brand-indigo: #3746d6;
  --brand-gradient: linear-gradient(115deg, var(--brand-cyan), var(--brand-indigo));
  --theme-brand-mark-image: url("/assets/arcdu-duo-mark-192.png");
  --glow: 0 6px 18px rgba(18, 86, 214, 0.22);
  --pnl-glow: rgba(22, 147, 108, 0.18);
}

.theme-brand-mark {
  display: block;
  background-image: var(--theme-brand-mark-image);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 0;
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--canvas);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.45;
  letter-spacing: 0;
}

button,
input,
select {
  font: inherit;
  letter-spacing: 0;
}

button,
a,
select {
  -webkit-tap-highlight-color: transparent;
}

button,
select {
  cursor: pointer;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.hidden {
  display: none !important;
}

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

.app-shell {
  min-height: 100vh;
  min-height: 100dvh;
}

.global-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 64px;
  border-bottom: 1px solid var(--line);
  background: var(--canvas);
  backdrop-filter: blur(14px);
}

.header-inner {
  width: min(100%, 1248px);
  height: 100%;
  display: grid;
  grid-template-columns: auto auto minmax(320px, 1fr) auto;
  align-items: center;
  gap: 26px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.brand img,
.brand .theme-brand-mark {
  width: 52px;
  height: 32px;
  border-radius: 6px;
  background-color: #03060d;
  object-fit: contain;
  padding: 4px 6px;
}

.brand > span {
  display: grid;
  gap: 1px;
}

.brand b {
  font-size: 15px;
  line-height: 1.1;
}

.brand small {
  color: var(--soft);
  font-size: 13px;
  font-weight: 500;
}

.sidebar-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid #2b3b53;
  border-radius: 50%;
  background: #07111f;
  color: #a8b6c9;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.28);
  transition: border-color 140ms ease, color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.sidebar-toggle:hover {
  border-color: #49627f;
  background: #0a1728;
  color: #f4f7fb;
}

.sidebar-toggle:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-color: #8ed3ff;
  color: #f4f7fb;
}

.sidebar-toggle svg {
  width: 18px;
  height: 18px;
}

.sidebar-toggle-expand {
  display: none;
}

.global-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  scrollbar-width: none;
}

.operations-page {
  min-height: calc(100vh - 126px);
  padding-bottom: 40px;
}

.operations-heading {
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.operations-heading p,
.operations-section-heading p {
  margin: 0 0 4px;
  color: var(--soft);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.operations-heading h2,
.operations-section-heading h2 {
  margin: 0;
  color: var(--ink);
  letter-spacing: 0;
}

.operations-heading h2 {
  font-size: 24px;
}

.operations-heading > div > span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.operations-heading-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.operations-health,
.operations-provider-status {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.operations-health small,
.operations-provider-status small {
  color: var(--soft);
  font-size: 12px;
  font-weight: 500;
}

.operations-health.healthy,
.operations-provider-status.healthy {
  color: var(--green);
}

.operations-health.attention,
.operations-health.error,
.operations-provider-status.attention {
  color: var(--red);
}

.operations-health.stale,
.operations-health.degraded,
.operations-provider-status.processing {
  color: var(--amber);
}

.operations-access {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  background: var(--subtle);
  padding: 9px 14px;
}

.operations-access-copy {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 12px;
}

.operations-access-copy span {
  overflow-wrap: anywhere;
}

.operations-login-form {
  display: grid;
  grid-template-columns: minmax(138px, 174px) minmax(138px, 174px) auto;
  align-items: end;
  gap: 8px;
}

.operations-login-form label {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.operations-login-form label > span {
  color: var(--soft);
  font-size: 12px;
  font-weight: 600;
}

.operations-login-form input {
  width: 100%;
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: var(--subtle);
  color: var(--ink);
  padding: 0 10px;
  font: inherit;
  font-size: 13px;
  outline: none;
}

.operations-login-form input:focus {
  border-color: var(--blue);
  outline: 0;
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.operations-login-form .primary-button,
#operationsWalletLoginButton,
#operationsLogoutButton {
  min-height: 34px;
  white-space: nowrap;
}

.operations-access svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: var(--green);
}

.operations-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.operations-summary-metric {
  min-width: 0;
  min-height: 92px;
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 16px 20px;
}

.operations-summary-metric + .operations-summary-metric {
  border-left: 1px solid var(--line);
}

.operations-summary-metric span,
.operations-event-cell small,
.operations-event-identity small {
  color: var(--soft);
  font-size: 13px;
}

.operations-summary-metric strong {
  font-size: 20px;
  line-height: 1.15;
}

.operations-summary-metric small {
  color: var(--muted);
  font-size: 13px;
}

.operations-summary-metric.danger strong {
  color: var(--red);
}

.operations-summary-metric.positive strong {
  color: var(--green);
}

.operations-summary-metric.warning strong {
  color: var(--amber);
}

.operations-section {
  border-bottom: 1px solid var(--line);
  padding: 26px 0 0;
}

.operations-section-heading {
  min-height: 48px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 14px;
}

.operations-section-heading h2 {
  font-size: 16px;
}

.operations-section-heading > span {
  color: var(--soft);
  font-size: 13px;
}

.operations-providers {
  border-top: 1px solid var(--line);
}

.operations-provider {
  min-height: 64px;
  display: grid;
  grid-template-columns: 96px minmax(150px, 0.8fr) minmax(180px, 1.2fr) auto;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding: 10px 14px;
}

.operations-provider:last-child {
  border-bottom: 0;
}

.operations-provider strong {
  font-size: 13px;
}

.operations-provider small {
  color: var(--muted);
  font-size: 13px;
}

.operations-provider > b {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  text-align: right;
}

.operations-events-heading {
  align-items: center;
}

.operations-filters {
  display: flex;
  align-items: center;
  gap: 8px;
}

.operations-filters select {
  min-width: 136px;
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: var(--subtle);
  color: var(--muted);
  padding: 0 28px 0 10px;
  font-size: 12px;
}

.operations-events {
  border-top: 1px solid var(--line);
}

.operations-events-header,
.operations-event-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) 172px 92px minmax(210px, 1fr) 44px;
  align-items: center;
  gap: 14px;
}

.operations-events-header {
  min-height: 36px;
  background: var(--subtle);
  color: var(--soft);
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
}

.operations-event-row {
  min-height: 76px;
  border-top: 1px solid var(--line);
  padding: 11px 14px;
}

.operations-events-header + .operations-event-row {
  border-top: 0;
}

.operations-event-identity,
.operations-event-cell {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.operations-event-identity {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: 8px;
}

.operations-event-identity small {
  grid-column: 1 / -1;
  overflow: hidden;
  font-family: var(--mono);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.operations-event-identity strong,
.operations-event-cell strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.operations-event-result strong {
  color: var(--muted);
  font-weight: 500;
}

.operations-status {
  width: max-content;
  color: var(--muted);
  padding: 0;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.operations-status.failed,
.operations-status.rejected {
  color: var(--red);
}

.operations-status.processed {
  color: var(--green);
}

.operations-status.processing {
  color: var(--amber);
}

.operations-event-action {
  display: flex;
  justify-content: flex-end;
}

.operations-event-action button {
  width: 34px;
  height: 34px;
}

.operations-event-action button:disabled {
  cursor: not-allowed;
  opacity: 1;
}

.operations-event-action [data-lucide="loader-circle"] {
  animation: operations-spin 0.9s linear infinite;
}

.operations-empty {
  min-height: 120px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 5px;
  color: var(--soft);
  text-align: center;
}

.operations-empty svg {
  width: 20px;
  height: 20px;
}

.operations-empty strong {
  color: var(--muted);
  font-size: 13px;
}

.operations-empty span {
  max-width: 380px;
  font-size: 13px;
}

.operations-policy {
  margin: 14px 0 0;
  color: var(--soft);
  font-size: 13px;
  text-align: right;
}

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

@media (max-width: 900px) {
  .operations-events-header {
    display: none;
  }

  .operations-event-row {
    grid-template-columns: minmax(0, 1.2fr) minmax(130px, 0.8fr) 44px;
  }

  .operations-event-row .operations-event-cell:nth-child(3) {
    display: none;
  }

  .operations-event-result {
    grid-column: 2;
    grid-row: 1;
  }

  .operations-event-action {
    grid-column: 3;
    grid-row: 1;
  }
}

@media (max-width: 760px) {
  .operations-heading {
    min-height: 96px;
  }

  .operations-heading h2 {
    font-size: 20px;
  }

  .operations-heading > div > span {
    max-width: 260px;
  }

  .operations-access {
    align-items: flex-start;
    flex-direction: column;
  }

  .operations-login-form {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  }

  .operations-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .operations-summary-metric:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .operations-summary-metric:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .operations-provider {
    grid-template-columns: 86px minmax(0, 1fr) auto;
  }

  .operations-provider small {
    display: none;
  }

  .operations-events-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .operations-filters,
  .operations-filters label,
  .operations-filters select {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .operations-access {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px;
  }

  .operations-access button {
    width: 100%;
  }

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

  .operations-summary-metric {
    min-height: 78px;
    padding: 12px;
  }

  .operations-summary-metric strong {
    font-size: 17px;
  }

  .operations-provider {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 10px;
    padding: 10px 4px;
  }

  .operations-provider > b {
    grid-column: 2;
    text-align: left;
  }

  .operations-event-row {
    grid-template-columns: minmax(0, 1fr) 40px;
    gap: 8px;
    padding: 12px 4px;
  }

  .operations-event-row .operations-event-cell {
    grid-column: 1;
  }

  .operations-event-result {
    grid-row: 3;
  }

  .operations-event-action {
    grid-column: 2;
    grid-row: 1 / span 3;
  }

  .operations-policy {
    text-align: left;
  }
}

.global-nav::-webkit-scrollbar,
.profile-tabs::-webkit-scrollbar {
  display: none;
}

.global-nav a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  padding: 8px 9px 6px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.global-nav a:hover,
.global-nav a.active {
  border-bottom-color: var(--accent);
  color: var(--ink);
}

.global-search {
  width: min(100%, 480px);
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  justify-self: end;
  gap: 8px;
}

.global-search label {
  min-width: 0;
}

.global-search input {
  width: 100%;
  height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  outline: 0;
  background: var(--subtle);
  color: var(--ink);
  padding: 0 13px;
  font-family: var(--mono);
  font-size: 13px;
}

.global-search input::placeholder {
  color: var(--soft);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

.global-search input:focus {
  border-color: var(--blue);
  background: var(--subtle-strong);
  outline: 0;
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.search-button,
.wallet-button,
.secondary-button,
.refresh-button,
.plain-button {
  min-height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: var(--subtle);
  color: var(--ink);
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 600;
}

.search-button {
  min-width: 72px;
  border-color: var(--action);
  background: var(--action);
  color: #ffffff;
}

.search-button:hover {
  border-color: var(--action-hover);
  background: var(--action-hover);
}

.wallet-button {
  min-width: 128px;
  border-color: var(--accent);
  color: var(--accent);
}

.wallet-control {
  position: relative;
  justify-self: end;
}

.wallet-button .wallet-chevron {
  width: 14px;
  height: 14px;
  margin-left: 1px;
  transition: transform 140ms ease;
}

.wallet-button[aria-expanded="true"] .wallet-chevron {
  transform: rotate(180deg);
}

.wallet-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 80;
  width: 380px;
  max-height: min(680px, calc(100vh - 84px));
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: var(--canvas);
  box-shadow: 0 14px 34px rgba(18, 38, 66, 0.16);
}

.wallet-menu-account {
  display: grid;
  gap: 3px;
  border-bottom: 1px solid var(--line);
  padding: 12px 13px;
}

.wallet-menu-account span,
.wallet-menu-account small {
  color: var(--soft);
  font-size: 13px;
}

.wallet-menu-account strong {
  overflow: hidden;
  font-family: var(--mono);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wallet-menu-portfolio {
  border-bottom: 1px solid var(--line);
  padding: 10px 12px 12px;
}

.wallet-menu-portfolio-heading {
  min-height: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--soft);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.wallet-portfolio-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.wallet-portfolio-row {
  min-height: 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  align-items: stretch;
  border-bottom: 1px solid var(--line);
}

.wallet-portfolio-row > button:first-child {
  min-width: 0;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 6px 4px;
  text-align: left;
}

.wallet-portfolio-row > button:first-child:hover,
.wallet-portfolio-row.active > button:first-child {
  background: var(--subtle);
}

.wallet-portfolio-row > button:first-child > b,
.wallet-portfolio-row.empty > b {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--muted);
  font-size: 13px;
}

.wallet-portfolio-row.active > button:first-child > b {
  border-color: var(--action);
  background: var(--action);
  color: #ffffff;
}

.wallet-portfolio-row span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.wallet-portfolio-row strong,
.wallet-portfolio-row small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wallet-portfolio-row strong {
  font-size: 12px;
}

.wallet-portfolio-row small {
  color: var(--soft);
  font-family: var(--mono);
  font-size: 12px;
}

.wallet-portfolio-row.empty {
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  color: var(--soft);
  padding: 6px 4px;
  opacity: 1;
}

.wallet-portfolio-remove {
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--soft);
}

.wallet-portfolio-remove:hover {
  background: var(--red-soft);
  color: var(--red);
}

.wallet-manager-enable {
  width: 100%;
  min-height: 34px;
  justify-content: center;
  margin-top: 9px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: var(--subtle);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

.wallet-manager-enable:hover:not(:disabled) {
  border-color: var(--blue-line);
  background: var(--subtle-strong);
  color: var(--blue);
}

.wallet-portfolio-form {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.8fr) 34px;
  gap: 5px;
  margin-top: 9px;
}

.wallet-portfolio-form input {
  min-width: 0;
  height: 32px;
  border: 1px solid var(--control-border);
  border-radius: 6px;
  outline: 0;
  background: var(--subtle);
  color: var(--ink);
  padding: 0 8px;
  font-size: 13px;
}

.wallet-portfolio-form input:first-child {
  font-family: var(--mono);
}

.wallet-portfolio-form input:focus {
  border-color: var(--blue);
  outline: 0;
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.wallet-portfolio-form button {
  display: grid;
  place-items: center;
  border: 1px solid var(--action);
  border-radius: 6px;
  background: var(--action);
  color: #ffffff;
}

.wallet-manager-status {
  display: block;
  margin-top: 8px;
  color: var(--soft);
  font-size: 12px;
  line-height: 1.45;
}

.wallet-menu-action {
  width: 100%;
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: var(--canvas);
  color: var(--ink);
  padding: 9px 13px;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
}

.wallet-menu-action:last-child {
  border-bottom: 0;
}

.wallet-menu-action:hover {
  background: var(--subtle);
}

.wallet-menu-action.danger {
  color: var(--red);
}

.wallet-menu-action.danger:hover {
  background: var(--red-soft);
}

.wallet-button:hover,
.secondary-button:hover,
.refresh-button:hover,
.plain-button:hover {
  border-color: var(--line-strong);
  background: var(--subtle-strong);
}

.plain-button {
  min-height: 26px;
  border-color: transparent;
  background: transparent;
  color: var(--muted);
  padding: 4px 6px;
  font-size: 12px;
}

.page {
  width: min(100%, 1248px);
  min-height: calc(100vh - 64px);
  margin: 0 auto;
  padding: 0 24px 30px;
}

.empty-profile {
  height: min(430px, calc(100vh - 150px));
  min-height: 310px;
  position: relative;
  overflow: hidden;
  margin-top: 28px;
  border-radius: 8px;
  background: var(--navy);
}

.empty-brand-art {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  opacity: 0.88;
}

.empty-profile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(12, 30, 53, 0.38);
}

.empty-profile-copy {
  max-width: 620px;
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 56px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  color: #ffffff;
  transform: translateY(-50%);
}

.empty-profile-copy > img {
  width: 76px;
  height: 56px;
  object-fit: contain;
}

.empty-profile-copy p {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.empty-profile-copy h2 {
  margin: 0;
  font-size: 30px;
  font-weight: 650;
  line-height: 1.22;
}

.empty-profile-copy span {
  display: block;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
}

.empty-connect-button {
  min-width: 150px;
  min-height: 40px;
  margin-top: 22px;
  border: 1px solid var(--action);
  border-radius: 7px;
  background: var(--action);
  color: #ffffff;
  padding: 9px 16px;
  font-size: 12px;
  font-weight: 700;
}

.empty-connect-button:hover {
  border-color: var(--action-hover);
  background: var(--action-hover);
}

.empty-connect-button:disabled,
.mint-primary-button:disabled,
.wallet-button:disabled {
  cursor: not-allowed;
  opacity: 1;
}

.mint-page {
  min-height: calc(100vh - 126px);
}

.mint-toolbar {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  color: var(--soft);
  font-size: 12px;
  font-weight: 600;
}

.back-button {
  min-height: 30px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: var(--subtle);
  color: var(--muted);
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
}

.back-button:hover {
  border-color: var(--line-strong);
  background: var(--subtle-strong);
  color: var(--ink);
}

.mint-layout {
  width: min(100%, 980px);
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  align-items: start;
  gap: 56px;
  margin: 0 auto;
  padding: 40px 0 58px;
}

.sbt-preview {
  overflow: hidden;
  border: 1px solid #253d60;
  border-radius: 8px;
  background: var(--navy);
  box-shadow: 0 18px 42px rgba(18, 38, 66, 0.16);
}

.sbt-preview > video {
  width: 100%;
  aspect-ratio: 1;
  display: block;
  object-fit: cover;
  object-position: center;
}

.sbt-preview-meta {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  padding: 14px 16px;
}

.sbt-preview-meta > div {
  min-width: 0;
}

.sbt-preview-meta span,
.sbt-preview-meta strong {
  display: block;
}

.sbt-preview-meta > div span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
  font-weight: 700;
}

.sbt-preview-meta strong {
  margin-top: 3px;
  font-size: 15px;
}

.soulbound-label {
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.76);
  padding: 5px 9px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.mint-panel {
  min-width: 0;
  padding-top: 4px;
}

.section-kicker {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.mint-panel h2 {
  margin: 0;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
}

.mint-description {
  max-width: 500px;
  margin: 12px 0 24px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.mint-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.mint-facts > div {
  min-width: 0;
  padding: 12px 0;
}

.mint-facts > div:nth-child(even) {
  border-left: 1px solid var(--line);
  padding-left: 16px;
}

.mint-facts span,
.mint-facts strong {
  display: block;
}

.mint-facts span {
  color: var(--soft);
  font-size: 13px;
}

.mint-facts strong {
  margin-top: 3px;
  font-size: 13px;
}

.mint-status {
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--subtle);
}

.mint-status > div {
  min-height: 38px;
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 8px 11px;
}

.mint-status > div:last-child {
  border-bottom: 0;
}

.mint-status span {
  color: var(--soft);
  font-size: 13px;
}

.mint-status strong {
  overflow: hidden;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mint-status strong.verified {
  color: var(--green);
}

.mint-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.mint-primary-button {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--action);
  border-radius: 7px;
  background: var(--action);
  color: #ffffff;
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 700;
}

.mint-primary-button:hover:not(:disabled) {
  border-color: var(--action-hover);
  background: var(--action-hover);
}

.mint-faucet-button {
  width: 100%;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: var(--canvas);
  color: var(--ink);
  padding: 10px 13px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.mint-faucet-button:hover {
  border-color: var(--blue);
  background: var(--blue-soft);
  color: var(--blue);
}

.mint-progress {
  margin-top: 10px;
}

.mint-progress:empty {
  display: none;
}

.mint-progress-state {
  min-height: 58px;
  display: block;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 11px 12px;
}

.mint-progress-state > div {
  min-width: 0;
}

.mint-progress-state strong,
.mint-progress-state p {
  display: block;
  margin: 0;
}

.mint-progress-state strong {
  font-size: 12px;
}

.mint-progress-state p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.mint-progress-state a,
.mint-links a {
  display: inline-block;
  margin-top: 5px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.mint-progress-state a:hover,
.mint-links a:hover {
  text-decoration: underline;
}

.mint-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 14px;
}

.mint-links a {
  margin-top: 0;
}

.mint-disclaimer {
  margin: 13px 0 0;
  color: var(--soft);
  font-size: 13px;
  line-height: 1.5;
}

.profile-page {
  min-width: 0;
}

.profile-page.workspace-view {
  padding-top: 20px;
}

.profile-overview {
  min-height: 176px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.55fr);
  align-items: center;
  gap: 48px;
  padding: 26px 0 18px;
}

.profile-identity {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 18px;
}

.profile-avatar {
  width: 88px;
  height: 88px;
  flex: 0 0 88px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--subtle);
  object-fit: cover;
}

.profile-copy {
  min-width: 0;
}

.profile-copy h2 {
  margin: 0 0 6px;
  overflow: hidden;
  font-size: 21px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.address-row {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.address-row > span {
  overflow: hidden;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-copy > p {
  margin: 6px 0 0;
  color: var(--soft);
  font-size: 13px;
}

.profile-value {
  min-width: 0;
  justify-self: end;
  text-align: right;
}

.profile-value > span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.profile-value > strong {
  display: block;
  margin: 3px 0;
  max-width: 520px;
  font-size: 26px;
  font-weight: 650;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.profile-value > small {
  color: var(--soft);
  font-size: 12px;
}

.profile-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0;
  padding-bottom: 17px;
}

.profile-stat {
  min-width: 118px;
  display: grid;
  gap: 2px;
  border-right: 1px solid var(--line);
  padding: 0 22px;
}

.profile-stat:first-child {
  padding-left: 0;
}

.profile-stat:last-child {
  border-right: 0;
}

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

.profile-stat strong {
  font-size: 13px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.profile-stat strong.live {
  color: var(--green);
}

.profile-navigation {
  min-height: 52px;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.profile-tabs {
  display: flex;
  align-items: stretch;
  gap: 30px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.profile-tabs button {
  position: relative;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0;
  font-size: 12px;
  font-weight: 600;
}

.profile-tabs button:hover,
.profile-tabs button.active {
  color: var(--ink);
}

.profile-tabs button.active::after {
  content: "";
  height: 2px;
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  background: var(--accent);
}

.profile-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-controls > span {
  color: var(--soft);
  font-size: 12px;
  white-space: nowrap;
}

.refresh-button {
  min-height: 28px;
  padding: 4px 8px;
  color: var(--muted);
  font-size: 12px;
}

.chain-select-label {
  position: relative;
}

.chain-select-label select {
  height: 32px;
  min-width: 126px;
  border: 1px solid transparent;
  border-radius: 7px;
  outline: 0;
  background: var(--subtle);
  color: var(--muted);
  padding: 0 28px 0 10px;
  font-size: 13px;
  font-weight: 600;
}

.chain-select-label select:hover,
.chain-select-label select:focus {
  border-color: var(--control-border);
  background: var(--subtle-strong);
  color: var(--ink);
}

.chain-select-label select:focus {
  outline: 0;
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.view-panel {
  min-width: 0;
}

.chain-overview {
  display: flex;
  align-items: stretch;
  gap: 8px;
  overflow-x: auto;
  padding: 22px 0 12px;
  scrollbar-width: none;
}

.chain-overview::-webkit-scrollbar,
.collection-overview::-webkit-scrollbar {
  display: none;
}

.chain-allocation {
  width: 184px;
  min-width: 184px;
  min-height: 62px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-content: center;
  gap: 2px 10px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: var(--subtle);
  color: var(--ink);
  padding: 10px 12px;
  text-align: left;
}

.chain-allocation:hover,
.chain-allocation.active {
  border-color: var(--line-strong);
  background: var(--subtle-strong);
}

.chain-allocation strong {
  overflow: hidden;
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chain-allocation b {
  font-size: 13px;
  font-weight: 650;
}

.chain-allocation span {
  grid-column: 1 / -1;
  color: var(--soft);
  font-size: 13px;
}

.collection-overview {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  padding: 4px 0 20px;
}

.collection-tile {
  min-width: 0;
  min-height: 54px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: var(--subtle);
  color: var(--ink);
  padding: 8px 9px;
  text-align: left;
}

.collection-tile:hover,
.collection-tile.active {
  border-color: var(--line-strong);
  background: var(--subtle-strong);
}

.collection-tile img {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--subtle);
  object-fit: cover;
}

.collection-tile div {
  min-width: 0;
}

.collection-tile strong,
.collection-tile span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.collection-tile strong {
  font-size: 12px;
  font-weight: 600;
}

.collection-tile span {
  color: var(--soft);
  font-size: 13px;
}

.holdings-section {
  padding-top: 16px;
}

.section-heading {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
}

.section-heading p,
.standalone-heading p,
.drawer-heading p {
  margin: 0 0 2px;
  color: var(--soft);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.section-heading h2,
.standalone-heading h2,
.drawer-heading h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 650;
}

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

.section-actions > span {
  color: var(--muted);
  font-size: 12px;
}

.portfolio-summary-bar {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--subtle);
  margin-bottom: 10px;
}

.portfolio-metrics {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.portfolio-metric {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 2px;
  border-right: 1px solid var(--line);
  padding: 12px 16px;
}

.portfolio-metric span,
.portfolio-metric small {
  overflow: hidden;
  color: var(--soft);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portfolio-metric strong {
  font-size: 14px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.pnl-basis-control {
  min-width: 168px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 10px 0 10px 16px;
}

.pnl-basis-control > span {
  color: var(--soft);
  font-size: 13px;
  font-weight: 600;
}

.segmented-control {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--subtle);
  padding: 2px;
}

.segmented-control button {
  min-height: 27px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  padding: 4px 9px;
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
}

.segmented-control button:hover {
  color: var(--ink);
}

.segmented-control button.active {
  background: var(--action);
  color: #ffffff;
}

.secondary-button:disabled {
  cursor: not-allowed;
  opacity: 1;
}

.active-filter {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--blue-line);
  border-radius: 7px;
  background: var(--blue-soft);
  color: var(--muted);
  margin-bottom: 8px;
  padding: 6px 10px;
  font-size: 12px;
}

.active-filter button {
  border: 0;
  background: transparent;
  color: var(--blue);
  padding: 2px;
  font-size: 12px;
  font-weight: 600;
}

.nft-list {
  min-width: 0;
  overflow-x: auto;
  border-radius: 7px;
  background: var(--subtle);
}

.nft-table-header,
.nft-row {
  min-width: 1040px;
  display: grid;
  grid-template-columns: minmax(250px, 1.55fr) minmax(104px, 0.58fr) minmax(150px, 0.86fr) minmax(135px, 0.74fr) minmax(135px, 0.74fr) minmax(145px, 0.8fr);
  gap: 12px;
  align-items: center;
}

.nft-table-header {
  min-height: 38px;
  color: var(--soft);
  padding: 0 16px;
  font-size: 13px;
  font-weight: 600;
}

.nft-row {
  width: 100%;
  min-height: 70px;
  appearance: none;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: var(--canvas);
  color: inherit;
  padding: 9px 16px;
  text-align: left;
  cursor: pointer;
}

.nft-row:hover {
  background: var(--subtle);
}

.nft-row.suspicious {
  background: var(--red-soft);
}

.nft-row.suspicious:hover {
  background: var(--red-soft);
}

.asset-cell {
  min-width: 0;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
}

.asset-cell img {
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--subtle);
  object-fit: cover;
}

.asset-cell h3,
.asset-cell span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.asset-cell h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 650;
}

.asset-cell span {
  margin-top: 3px;
  color: var(--soft);
  font-size: 13px;
}

.table-cell {
  min-width: 0;
}

.table-cell small,
.table-cell strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.table-cell small {
  white-space: nowrap;
}

.table-cell small {
  color: var(--soft);
  font-size: 13px;
}

.table-cell strong {
  margin: 2px 0;
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.nft-detail-button {
  width: 100%;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: inherit;
  padding: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.nft-detail-button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.positive {
  color: var(--green);
}

.negative {
  color: var(--red);
}

.neutral {
  color: var(--ink);
}

.pnl-cell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px;
  align-items: center;
  gap: 7px;
}

.pnl-cell-value {
  min-width: 0;
}

.pnl-cell strong {
  font-weight: 700;
}

.nft-pnl-share-button {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--control-border);
  border-radius: 6px;
  background: var(--subtle);
  color: var(--blue);
  cursor: pointer;
}

.nft-pnl-share-button:hover:not(:disabled) {
  border-color: var(--blue);
  color: var(--blue);
}

.nft-pnl-share-button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.nft-pnl-share-button:disabled {
  cursor: not-allowed;
  opacity: 1;
}

.pnl-badge {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--subtle);
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.25;
  text-align: right;
}

.pnl-badge.positive {
  border-color: var(--green-line);
  background: var(--green-soft);
}

.pnl-badge.negative {
  border-color: var(--red-line);
  background: var(--red-soft);
}

.status-badge,
.confidence-badge,
.warning-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  padding: 0;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.status-badge.ledger {
  color: var(--green);
}

.empty-state,
.activity-state {
  min-height: 210px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 5px;
  color: var(--soft);
  padding: 30px;
  text-align: center;
}

.empty-state strong,
.activity-state strong {
  color: var(--muted);
  font-size: 13px;
}

.empty-state span,
.activity-state span {
  max-width: 430px;
  font-size: 12px;
}

.activity-state.has-activity {
  width: 100%;
  min-height: 0;
  display: block;
  place-content: normal;
  justify-items: stretch;
  padding: 0;
  text-align: left;
}

.activity-state.has-activity span {
  max-width: none;
}

.activity-filter-control {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.activity-summary {
  display: grid;
  grid-template-columns: 0.7fr 0.7fr 0.85fr 1.75fr;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--subtle);
  margin-bottom: 10px;
}

.activity-summary-metric {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 2px;
  border-right: 1px solid var(--line);
  padding: 12px 16px;
}

.activity-summary-metric:last-child {
  border-right: 0;
}

.activity-summary-metric span,
.activity-summary-metric small {
  overflow: hidden;
  color: var(--soft);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-summary-metric strong {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  line-height: 1.35;
}

.activity-summary-metric strong.positive,
.activity-value-cell strong.positive {
  color: var(--green);
}

.activity-summary-metric strong.negative,
.activity-value-cell strong.negative {
  color: var(--red);
}

.activity-ledger {
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

.activity-table-header,
.activity-row {
  display: grid;
  grid-template-columns: 92px minmax(180px, 1.35fr) minmax(130px, 0.75fr) minmax(150px, 0.9fr) minmax(170px, 1fr) 32px;
  align-items: center;
  gap: 16px;
}

.activity-table-header {
  min-height: 34px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--soft);
  padding: 0 10px;
  font-size: 13px;
  font-weight: 600;
}

.activity-row {
  min-height: 72px;
  border-bottom: 1px solid var(--line);
  padding: 10px;
}

.activity-row:hover {
  background: var(--subtle);
}

.activity-group,
.activity-group-children {
  min-width: 0;
}

.activity-row-group {
  background: var(--canvas);
}

.activity-group.expanded > .activity-row-group {
  background: var(--subtle);
}

.activity-expand-button svg {
  transition: transform 160ms ease;
}

.activity-group.expanded .activity-expand-button svg {
  transform: rotate(180deg);
}

.activity-group-children {
  border-bottom: 1px solid var(--line-strong);
  background: var(--subtle);
  padding-left: 22px;
}

.activity-row-child {
  background: var(--canvas);
}

.activity-row-child:last-child {
  border-bottom: 0;
}

.activity-type-cell,
.activity-asset-cell,
.activity-detail-cell,
.activity-value-cell {
  min-width: 0;
}

.activity-asset-cell {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.activity-asset-cell img {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--subtle);
  object-fit: cover;
}

.activity-asset-cell strong,
.activity-asset-cell span,
.activity-detail-cell strong,
.activity-detail-cell span,
.activity-detail-cell code,
.activity-value-cell strong,
.activity-value-cell span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-asset-cell strong,
.activity-detail-cell strong,
.activity-value-cell strong {
  color: var(--ink);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  line-height: 1.35;
}

.activity-asset-cell span,
.activity-detail-cell span,
.activity-value-cell span,
.activity-detail-cell code {
  margin-top: 3px;
  color: var(--soft);
  font-size: 13px;
}

.activity-kind {
  width: fit-content;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--blue-line);
  border-radius: 5px;
  background: var(--blue-soft);
  color: var(--blue);
  padding: 3px 7px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.activity-kind.sold {
  border-color: var(--green-line);
  background: var(--green-soft);
  color: var(--green);
}

.activity-share-button {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--control-border);
  border-radius: 6px;
  background: var(--subtle);
  color: var(--blue);
}

.activity-share-button:hover:not(:disabled) {
  border-color: var(--accent);
  background: var(--blue-soft);
}

.activity-share-button:disabled {
  cursor: not-allowed;
  opacity: 1;
}

.activity-share-button svg {
  width: 14px;
  height: 14px;
}

.activity-pagination {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-top: 1px solid var(--line);
}

.activity-pagination > span {
  min-width: 110px;
  display: grid;
  grid-template-columns: auto auto auto;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.activity-pagination > span strong {
  color: var(--ink);
}

.activity-pagination > span small {
  grid-column: 1 / -1;
  color: var(--soft);
  font-size: 12px;
}

.mint-signals-view {
  min-width: 0;
  padding-bottom: 18px;
}

.mint-signals-heading {
  min-height: 72px;
}

.mint-signals-heading-actions,
.mint-signals-toolbar,
.mint-signal-links,
.mint-signal-name-line {
  display: flex;
  align-items: center;
}

.mint-signals-heading-actions {
  gap: 8px;
}

.mint-stream-status {
  min-height: 28px;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  color: var(--muted);
  padding: 0;
  font-size: 13px;
}

.mint-stream-status small {
  color: var(--soft);
  font-size: 12px;
  font-weight: 500;
}

.mint-stream-status b {
  font-weight: 700;
}

.mint-stream-status.live {
  color: var(--green);
}

.mint-stream-status.local {
  color: var(--blue);
}

.mint-stream-status.error,
.mint-stream-status.paused {
  color: var(--red);
}

.mint-signals-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--subtle);
}

.mint-signals-summary-metric {
  min-width: 0;
  min-height: 76px;
  display: grid;
  align-content: center;
  gap: 3px;
  border-right: 1px solid var(--line);
  padding: 12px 16px;
}

.mint-signals-summary-metric:last-child {
  border-right: 0;
}

.mint-signals-summary-metric span,
.mint-signals-summary-metric small,
.mint-signals-summary-metric strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mint-signals-summary-metric span,
.mint-signals-summary-metric small {
  color: var(--soft);
  font-size: 13px;
}

.mint-signals-summary-metric strong {
  color: var(--ink);
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}

.mint-signals-summary-metric.skeleton span,
.mint-signals-summary-metric.skeleton strong,
.mint-signals-summary-metric.skeleton small,
.mint-signal-loading-row > span,
.mint-signal-loading-row b,
.mint-signal-loading-row i,
.mint-signal-loading-row > strong {
  display: block;
  border-radius: 4px;
  background: var(--subtle-strong);
  animation: mint-signal-pulse 1.4s ease-in-out infinite;
}

.mint-signals-summary-metric.skeleton span {
  width: 58px;
  height: 8px;
}

.mint-signals-summary-metric.skeleton strong {
  width: 92px;
  height: 18px;
}

.mint-signals-summary-metric.skeleton small {
  width: 110px;
  height: 8px;
}

.mint-alerts-panel {
  border-bottom: 1px solid var(--line);
  background: var(--canvas);
}

.mint-alerts-bar {
  min-height: 64px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
}

.mint-alerts-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: var(--navy);
  color: #ffffff;
}

.mint-alerts-icon svg,
.mint-alerts-configure-button svg {
  width: 15px;
  height: 15px;
}

.mint-alerts-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.mint-alerts-copy > span,
.mint-alerts-copy > small {
  overflow: hidden;
  color: var(--soft);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mint-alerts-copy > span {
  font-weight: 700;
  text-transform: uppercase;
}

.mint-alerts-copy h3 {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
}

.mint-alerts-status {
  min-height: 26px;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 0;
  color: var(--muted);
  font-size: 12px;
}

.mint-alerts-status small {
  color: var(--soft);
  font-size: inherit;
  font-weight: 500;
}

.mint-alerts-status.live {
  color: var(--green);
}

.mint-alerts-status.waiting,
.mint-alerts-status.setup {
  color: var(--blue);
}

.mint-alerts-status.error {
  color: var(--red);
}

.mint-alerts-bar .secondary-button {
  min-height: 32px;
}

.mint-alerts-bar .secondary-button svg {
  width: 13px;
  height: 13px;
}

.mint-alerts-bar .secondary-button:disabled svg[data-lucide="loader-circle"] {
  animation: settlement-spin 0.9s linear infinite;
}

.mint-alerts-settings {
  border-top: 1px solid var(--line);
  background: var(--subtle);
}

.mint-alerts-auth {
  min-height: 100px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 4px;
  padding: 24px;
  color: var(--soft);
  text-align: center;
}

.mint-alerts-auth strong {
  color: var(--ink);
  font-size: 13px;
}

.mint-alerts-auth span {
  font-size: 13px;
}

.mint-alerts-telegram {
  min-height: 48px;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) auto;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  background: var(--canvas);
  padding: 8px 12px;
}

.mint-alerts-telegram > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.mint-alerts-telegram span,
.mint-alerts-form label > span,
.mint-alerts-scope > span,
.mint-alerts-form-heading span,
.mint-alerts-watchlist-form label > span,
.mint-alerts-subheading span {
  color: var(--soft);
  font-size: 12px;
  font-weight: 600;
}

.mint-alerts-telegram strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mint-alerts-delivery {
  display: grid;
  grid-template-columns: repeat(5, minmax(86px, 1fr)) auto auto;
  align-items: end;
  gap: 9px;
  border-bottom: 1px solid var(--line);
  background: var(--canvas);
  padding: 12px;
}

.mint-alerts-delivery-heading {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.mint-alerts-delivery-heading > div:first-child {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.mint-alerts-delivery-heading span,
.mint-alerts-delivery > label > span {
  color: var(--soft);
  font-size: 12px;
  font-weight: 600;
}

.mint-alerts-delivery-heading strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mint-alerts-delivery-heading .segmented-control {
  grid-template-columns: repeat(4, minmax(44px, 1fr));
}

.mint-alerts-delivery-heading .segmented-control button:last-child {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.mint-alerts-delivery-heading .segmented-control svg,
.mint-alerts-delivery > button svg {
  width: 12px;
  height: 12px;
}

.mint-alerts-delivery > label {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.mint-alerts-delivery input[type="time"],
.mint-alerts-delivery select {
  width: 100%;
  height: 32px;
  border: 1px solid var(--control-border);
  border-radius: 6px;
  outline: 0;
  background: var(--subtle);
  color: var(--ink);
  padding: 0 9px;
  font-size: 13px;
}

.mint-alerts-delivery input[type="time"]:focus,
.mint-alerts-delivery select:focus {
  border-color: var(--blue);
  outline: 0;
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.mint-alerts-quiet-toggle .switch-control,
.mint-alerts-delivery > button {
  height: 32px;
}

.mint-alerts-delivery > button {
  white-space: nowrap;
}

.mint-alerts-form {
  display: grid;
  grid-template-columns: repeat(6, minmax(80px, 1fr)) 110px;
  align-items: end;
  gap: 9px;
  padding: 12px;
}

.mint-alerts-form-heading {
  min-height: 34px;
  grid-column: 1 / 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mint-alerts-form-heading > div {
  display: grid;
  gap: 2px;
}

.mint-alerts-form-heading strong {
  font-size: 13px;
}

.switch-control {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
}

.switch-control input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.switch-control > span {
  position: relative;
  width: 30px;
  height: 17px;
  flex: 0 0 30px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--subtle-strong);
}

.switch-control > span::after {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(18, 38, 66, 0.22);
  content: "";
  transition: transform 120ms ease;
}

.switch-control input:checked + span {
  border-color: var(--action);
  background: var(--action);
}

.switch-control input:checked + span::after {
  transform: translateX(13px);
}

.switch-control input:focus-visible + span {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.switch-control input:disabled + span,
.pnl-share-toggle input:disabled + .toggle-track {
  border-color: var(--disabled-line);
  background: var(--disabled-bg);
  cursor: not-allowed;
}

.switch-control b {
  color: var(--muted);
  font-size: 13px;
}

.mint-alerts-scope {
  min-width: 0;
  grid-column: 4 / -1;
  display: grid;
  grid-template-columns: auto minmax(210px, 300px);
  align-items: center;
  justify-content: end;
  gap: 10px;
}

.mint-alerts-scope .segmented-control {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mint-alerts-form > label,
.mint-alerts-watchlist-form label {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.mint-alerts-form input,
.mint-alerts-form select,
.mint-alerts-watchlist-form input {
  width: 100%;
  height: 32px;
  border: 1px solid var(--control-border);
  border-radius: 6px;
  outline: 0;
  background: var(--subtle);
  color: var(--ink);
  padding: 0 9px;
  font-size: 13px;
}

.mint-alerts-form .switch-control input {
  position: absolute;
  width: 1px;
  height: 1px;
  border: 0;
  padding: 0;
  opacity: 0;
}

.mint-alerts-form input:focus,
.mint-alerts-form select:focus,
.mint-alerts-watchlist-form input:focus {
  border-color: var(--blue);
  outline: 0;
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.mint-alerts-form .primary-button {
  height: 32px;
}

.mint-alerts-data-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  background: var(--canvas);
}

.mint-alerts-watchlist,
.mint-alerts-history {
  min-width: 0;
  padding: 12px;
}

.mint-alerts-watchlist {
  border-right: 1px solid var(--line);
}

.mint-alerts-subheading {
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.mint-alerts-subheading > div {
  display: grid;
  gap: 2px;
}

.mint-alerts-subheading h4 {
  margin: 0;
  font-size: 13px;
}

.mint-alerts-subheading > b {
  color: var(--muted);
  font-size: 13px;
}

.mint-alerts-watchlist-form {
  display: grid;
  grid-template-columns: minmax(100px, 0.6fr) minmax(180px, 1.4fr) 32px;
  align-items: end;
  gap: 7px;
  margin-top: 8px;
}

.mint-alerts-contract-field input,
.mint-alert-watch-row code {
  font-family: var(--mono);
}

.mint-alerts-watchlist-list,
.mint-alerts-history-list {
  display: grid;
  margin-top: 10px;
}

.mint-alert-watch-row,
.mint-alert-history-row {
  min-width: 0;
  border-top: 1px solid var(--line);
  padding: 9px 0;
}

.mint-alert-watch-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32px;
  align-items: center;
  gap: 10px;
}

.mint-alert-watch-row > div,
.mint-alert-history-row > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.mint-alert-watch-row strong,
.mint-alert-watch-row code,
.mint-alert-history-row strong,
.mint-alert-history-row span,
.mint-alert-history-row code {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mint-alert-watch-row strong,
.mint-alert-history-row strong {
  color: var(--ink);
  font-size: 13px;
}

.mint-alert-watch-row code,
.mint-alert-history-row code,
.mint-alert-history-row span {
  color: var(--soft);
  font-size: 12px;
}

.mint-alert-history-row {
  display: grid;
  grid-template-columns: minmax(140px, 1.4fr) minmax(100px, 0.8fr) minmax(82px, 0.6fr);
  align-items: center;
  gap: 10px;
}

.mint-alert-history-row > div:first-child > span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mint-alert-history-row b {
  flex: 0 0 auto;
  padding: 0;
  font-size: 13px;
}

.mint-alert-history-row b.delivered {
  color: var(--green);
}

.mint-alert-history-row b.pending {
  color: var(--blue);
}

.mint-alert-history-row b.failed {
  color: var(--red);
}

.mint-alert-empty {
  min-height: 62px;
  display: grid;
  place-content: center;
  gap: 3px;
  color: var(--soft);
  text-align: center;
}

.mint-alert-empty strong {
  color: var(--muted);
  font-size: 13px;
}

.mint-alert-empty span {
  font-size: 12px;
}

.mint-signals-toolbar {
  min-height: 54px;
  justify-content: space-between;
  gap: 16px;
}

.mint-signals-toolbar > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.mint-signal-filter-control {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mint-signals-filters {
  min-height: 54px;
  display: grid;
  grid-template-columns: 112px 122px 210px 90px 90px minmax(105px, 1fr) 34px;
  align-items: end;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding: 9px 0;
}

.mint-filter-select,
.mint-filter-price,
.mint-filter-cost {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.mint-filter-select > span,
.mint-filter-price > span,
.mint-filter-cost > span {
  color: var(--soft);
  font-size: 12px;
  font-weight: 600;
}

.mint-filter-select select,
.mint-filter-price input {
  width: 100%;
  height: 32px;
  border: 1px solid var(--control-border);
  border-radius: 6px;
  outline: 0;
  background: var(--subtle);
  color: var(--ink);
  padding: 0 9px;
  font-size: 13px;
}

.mint-filter-select select:focus,
.mint-filter-price input:focus {
  border-color: var(--blue);
  outline: 0;
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.mint-cost-filter-control {
  height: 32px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mint-filter-toggle {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.mint-filter-toggle input {
  width: 14px;
  height: 14px;
  accent-color: var(--blue);
}

.mint-signal-table-header,
.mint-signal-row {
  min-width: 1080px;
  display: grid;
  grid-template-columns: minmax(230px, 1.5fr) 90px 90px 116px 92px 96px 108px 124px;
  align-items: center;
  gap: 14px;
}

.mint-signal-table-header {
  min-height: 34px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--soft);
  padding: 0 12px;
  font-size: 13px;
  font-weight: 600;
}

.mint-signals-state {
  min-width: 0;
  overflow-x: auto;
}

.mint-signals-state.has-signals {
  border-bottom: 1px solid var(--line);
}

.mint-signal-row {
  min-height: 88px;
  border-bottom: 1px solid var(--line);
  background: var(--canvas);
  padding: 10px 12px;
}

.mint-signal-row:last-child {
  border-bottom: 0;
}

.mint-signal-row:hover {
  background: var(--subtle);
}

.mint-signal-row:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: -2px;
}

.mint-signal-collection {
  min-width: 0;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.mint-signal-collection img {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--subtle);
  object-fit: cover;
}

.mint-signal-collection > div,
.mint-signal-value {
  min-width: 0;
}

.mint-signal-name-line {
  min-width: 0;
  gap: 6px;
}

.mint-signal-name-line strong,
.mint-signal-contract,
.mint-signal-value strong,
.mint-signal-value span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mint-signal-name-line strong {
  min-width: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
}

.mint-signal-contract,
.mint-signal-value span {
  margin-top: 3px;
  color: var(--soft);
  font-size: 13px;
}

.mint-signal-reason {
  display: block;
  margin-top: 5px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mint-signal-badge {
  flex: 0 0 auto;
  color: var(--blue);
  padding: 0;
  font-size: 12px;
  font-weight: 700;
}

.mint-signal-badge.accelerating {
  color: var(--green);
}

.mint-signal-badge.stalled {
  color: var(--muted);
}

.mint-signal-badge.corrected {
  color: var(--amber);
}

.mint-signal-value::before {
  display: none;
}

.mint-signal-value strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.mint-signal-score > span.high,
.mint-detail-score.high {
  color: var(--green);
}

.mint-signal-score > span.medium,
.mint-detail-score.medium {
  color: var(--blue);
}

.mint-signal-score > span.watch,
.mint-detail-score.watch {
  color: var(--amber);
}

.mint-signal-sparkline {
  width: 78px;
  height: 18px;
  display: flex;
  align-items: flex-end;
  gap: 2px;
  margin-top: 4px;
  overflow: hidden;
}

.mint-signal-sparkline i {
  width: 5px;
  height: var(--mint-bar-height);
  flex: 0 0 5px;
  border-radius: 1px 1px 0 0;
  background: var(--subtle-strong);
}

.mint-signal-sparkline i.active {
  background: var(--navy);
}

.mint-signal-links {
  justify-content: flex-end;
  gap: 5px;
}

.mint-signal-links > a:not(.icon-button) {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--subtle);
  color: var(--blue);
  padding: 4px 8px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.mint-signal-links > a:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.mint-watch-button.active {
  border-color: var(--green-line);
  background: var(--green-soft);
  color: var(--green);
  opacity: 1;
}

.mint-signals-empty {
  min-height: 220px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 6px;
  padding: 30px;
  color: var(--soft);
  text-align: center;
}

.mint-signals-empty strong {
  color: var(--muted);
  font-size: 13px;
}

.mint-signals-empty span {
  max-width: 420px;
  font-size: 12px;
}

.mint-signals-empty button {
  margin-top: 8px;
}

.mint-signal-loading-row {
  min-width: 930px;
  min-height: 76px;
  display: grid;
  grid-template-columns: 44px minmax(190px, 1fr) repeat(3, 90px);
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 10px 12px;
}

.mint-signal-loading-row > span {
  width: 44px;
  height: 44px;
}

.mint-signal-loading-row div {
  display: grid;
  gap: 7px;
}

.mint-signal-loading-row b {
  width: min(160px, 80%);
  height: 10px;
}

.mint-signal-loading-row i {
  width: 100px;
  height: 8px;
}

.mint-signal-loading-row > strong {
  width: 64px;
  height: 10px;
}

.mint-signals-methodology {
  margin: 12px 0 0;
  color: var(--soft);
  font-size: 13px;
  line-height: 1.6;
}

.detail-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wallet-tracker-view {
  min-width: 0;
  overflow: hidden;
  padding-bottom: 18px;
}

.tracker-heading {
  min-height: 72px;
}

.tracker-heading-actions,
.tracker-wallet-network,
.tracker-row-links,
.tracker-sweep-collection > span {
  display: flex;
  align-items: center;
}

.tracker-heading-actions {
  gap: 8px;
}

.tracker-add-form {
  display: grid;
  grid-template-columns: minmax(140px, 0.55fr) minmax(280px, 1.45fr) auto;
  align-items: end;
  gap: 10px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--subtle);
  padding: 12px 14px;
}

.tracker-add-form label {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.tracker-add-form label > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.tracker-add-form input {
  width: 100%;
  height: 36px;
  border: 1px solid var(--control-border);
  border-radius: 6px;
  outline: 0;
  background: var(--subtle);
  color: var(--ink);
  padding: 0 11px;
  font-size: 12px;
}

.tracker-address-field input {
  font-family: var(--mono);
}

.tracker-add-form input:focus {
  border-color: var(--blue);
  outline: 0;
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.tracker-add-form input:disabled {
  background: var(--subtle-strong);
  color: var(--soft);
}

.tracker-add-form .primary-button {
  min-width: 112px;
  height: 36px;
}

.tracker-add-form .primary-button svg {
  width: 14px;
  height: 14px;
}

.tracker-add-form .primary-button:disabled svg[data-lucide="loader-circle"] {
  animation: settlement-spin 0.9s linear infinite;
}

.tracker-telegram-form {
  min-height: 58px;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(180px, 260px) auto auto;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  background: var(--canvas);
  padding: 10px 14px;
}

.tracker-telegram-copy {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.tracker-telegram-copy > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.tracker-telegram-copy strong,
.tracker-telegram-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tracker-telegram-copy strong {
  color: var(--ink);
  font-size: 13px;
}

.tracker-telegram-copy span {
  color: var(--muted);
  font-size: 13px;
}

.tracker-telegram-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: var(--navy);
  color: #ffffff;
}

.tracker-telegram-icon svg {
  width: 14px;
  height: 14px;
}

.tracker-telegram-form label,
.tracker-telegram-form input {
  min-width: 0;
  width: 100%;
}

.tracker-telegram-form input {
  height: 34px;
  border: 1px solid var(--control-border);
  border-radius: 6px;
  outline: 0;
  background: var(--subtle);
  padding: 0 10px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12px;
}

.tracker-telegram-form input:focus {
  border-color: var(--blue);
  outline: 0;
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.tracker-telegram-form .secondary-button {
  height: 34px;
}

.tracker-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
  background: var(--canvas);
}

.tracker-summary-metric {
  min-width: 0;
  min-height: 76px;
  display: grid;
  align-content: center;
  gap: 3px;
  border-right: 1px solid var(--line);
  padding: 12px 16px;
}

.tracker-summary-metric:last-child {
  border-right: 0;
}

.tracker-summary-metric span,
.tracker-summary-metric small,
.tracker-summary-metric strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tracker-summary-metric span,
.tracker-summary-metric small {
  color: var(--soft);
  font-size: 13px;
}

.tracker-summary-metric strong {
  color: var(--ink);
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}

.tracker-summary-metric.skeleton span,
.tracker-summary-metric.skeleton strong,
.tracker-summary-metric.skeleton small {
  display: block;
  border-radius: 4px;
  background: var(--subtle-strong);
  animation: mint-signal-pulse 1.4s ease-in-out infinite;
}

.tracker-summary-metric.skeleton span {
  width: 64px;
  height: 8px;
}

.tracker-summary-metric.skeleton strong {
  width: 86px;
  height: 18px;
}

.tracker-summary-metric.skeleton small {
  width: 112px;
  height: 8px;
}

.tracker-section {
  min-width: 0;
  border-bottom: 1px solid var(--line);
}

.tracker-section-heading {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 10px 12px;
}

.tracker-section-heading > div {
  min-width: 0;
}

.tracker-section-heading p,
.tracker-section-heading h3 {
  margin: 0;
}

.tracker-section-heading p {
  color: var(--soft);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.tracker-section-heading h3 {
  margin-top: 2px;
  color: var(--ink);
  font-size: 14px;
}

.tracker-section-heading > span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 13px;
}

.tracker-wallet-row {
  min-height: 62px;
  display: grid;
  grid-template-columns: minmax(250px, 1fr) 120px 140px 34px;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding: 9px 12px;
}

.tracker-wallet-row:last-child,
.tracker-sweep-row:last-child,
.tracker-activity-row:last-child {
  border-bottom: 0;
}

.tracker-wallet-row:hover,
.tracker-sweep-row:hover,
.tracker-activity-row:hover {
  background: var(--subtle);
}

.tracker-wallet-identity {
  min-width: 0;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.tracker-wallet-avatar {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--navy);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
}

.tracker-wallet-identity strong,
.tracker-wallet-identity code,
.tracker-wallet-added {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tracker-wallet-identity strong {
  color: var(--ink);
  font-size: 13px;
}

.tracker-wallet-identity code,
.tracker-wallet-added {
  margin-top: 3px;
  color: var(--soft);
  font-family: var(--mono);
  font-size: 12px;
}

.tracker-wallet-network {
  color: var(--green);
  font-size: 13px;
  font-weight: 650;
}

.tracker-remove-button {
  color: var(--soft);
}

.tracker-remove-button:hover:not(:disabled) {
  border-color: var(--red-line);
  background: var(--red-soft);
  color: var(--red);
}

.tracker-sweep-row {
  min-height: 76px;
  display: grid;
  grid-template-columns: 44px minmax(220px, 1.4fr) minmax(100px, 0.6fr) minmax(110px, 0.7fr) minmax(90px, 0.55fr) 90px;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 10px 12px;
}

.tracker-sweep-row > img,
.tracker-activity-collection img {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--subtle);
  object-fit: cover;
}

.tracker-sweep-row > img {
  width: 44px;
  height: 44px;
}

.tracker-sweep-row > div {
  min-width: 0;
}

.tracker-sweep-row > div > strong,
.tracker-sweep-row > div > span,
.tracker-sweep-collection strong,
.tracker-sweep-collection small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tracker-sweep-row > div > strong,
.tracker-sweep-collection strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: 650;
}

.tracker-sweep-row > div > span,
.tracker-sweep-collection small {
  margin-top: 3px;
  color: var(--soft);
  font-size: 12px;
}

.tracker-sweep-collection > span {
  min-width: 0;
  gap: 6px;
}

.tracker-sweep-collection > span strong {
  min-width: 0;
}

.tracker-sweep-collection b {
  flex: 0 0 auto;
  border: 1px solid var(--green-line);
  border-radius: 5px;
  background: var(--green-soft);
  color: var(--green);
  padding: 2px 5px;
  font-size: 13px;
}

.tracker-row-links {
  justify-content: flex-end;
  gap: 5px;
}

.tracker-row-links > a:not(.icon-button) {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--subtle);
  color: var(--blue);
  padding: 4px 8px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.tracker-activity-header,
.tracker-activity-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.9fr) 85px minmax(210px, 1.4fr) 70px 105px 92px 34px;
  align-items: center;
  gap: 12px;
}

.tracker-activity-header {
  min-height: 34px;
  border-bottom: 1px solid var(--line);
  color: var(--soft);
  padding: 0 12px;
  font-size: 12px;
  font-weight: 600;
}

.tracker-activity-row {
  min-height: 68px;
  border-bottom: 1px solid var(--line);
  padding: 9px 12px;
}

.tracker-activity-row > div {
  min-width: 0;
}

.tracker-activity-row strong,
.tracker-activity-row span,
.tracker-activity-row small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tracker-activity-row strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
}

.tracker-activity-row span,
.tracker-activity-row small {
  margin-top: 3px;
  color: var(--soft);
  font-size: 12px;
}

.tracker-activity-collection {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.tracker-activity-collection img {
  width: 34px;
  height: 34px;
}

.tracker-activity-kind {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  border: 1px solid var(--blue-line);
  border-radius: 5px;
  background: var(--blue-soft);
  color: var(--blue);
  padding: 2px 6px;
  font-size: 12px;
}

.tracker-activity-kind.out {
  border-color: var(--line-strong);
  background: var(--subtle);
  color: var(--muted);
}

.tracker-empty {
  min-height: 132px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 5px;
  padding: 24px;
  color: var(--soft);
  text-align: center;
}

.tracker-empty strong {
  color: var(--muted);
  font-size: 12px;
}

.tracker-empty span {
  max-width: 440px;
  font-size: 13px;
}

.tracker-empty button {
  margin-top: 7px;
}

.refresh-button.spinning svg {
  animation: settlement-spin 0.9s linear infinite;
}

@keyframes mint-signal-pulse {
  50% {
    opacity: 0.45;
  }
}

.standalone-heading {
  min-height: 72px;
  padding-top: 18px;
}

.collections-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.collection-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--subtle);
  color: var(--ink);
  padding: 11px;
  text-align: left;
}

.collection-card:hover {
  border-color: var(--line-strong);
  background: var(--subtle-strong);
  transition: background 150ms ease, border-color 150ms ease;
}

.switch-control:hover > span {
  border-color: var(--control-border);
}

.collection-card img {
  width: 54px;
  height: 54px;
  border-radius: 7px;
  object-fit: cover;
}

.collection-card div {
  min-width: 0;
}

.collection-card strong,
.collection-card span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.collection-card strong {
  font-size: 13px;
}

.collection-card span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.footer {
  margin-top: 28px;
  border-top: 1px solid var(--line);
  padding: 20px 0 6px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 24px;
}

.footer-links a {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--ink);
}

.legal-page {
  background: #ffffff;
}

.legal-header {
  height: 64px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.97);
}

.legal-header-inner,
.legal-main,
.legal-site-footer {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
}

.legal-header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.legal-back {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}

.legal-back:hover {
  color: var(--ink);
}

.legal-main {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  align-items: start;
  gap: 64px;
  padding: 56px 0 72px;
}

.legal-sidebar {
  position: sticky;
  top: 28px;
  display: grid;
  gap: 4px;
}

.legal-sidebar p {
  margin: 0 0 10px;
  color: var(--soft);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.legal-sidebar a {
  border-left: 2px solid transparent;
  color: var(--muted);
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.legal-sidebar a:hover {
  border-left-color: var(--navy);
  color: var(--ink);
  background: var(--subtle);
}

.legal-document {
  min-width: 0;
}

.legal-eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
}

.legal-document h1 {
  margin: 0;
  color: var(--ink);
  font-size: 36px;
  line-height: 1.15;
}

.legal-updated {
  margin: 12px 0 0;
  color: var(--soft);
  font-size: 12px;
}

.legal-intro {
  max-width: 720px;
  margin: 26px 0 44px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.legal-section {
  border-top: 1px solid var(--line);
  padding: 28px 0;
}

.legal-section h2 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 17px;
}

.legal-section h3 {
  margin: 20px 0 8px;
  color: var(--ink);
  font-size: 12px;
}

.legal-section p,
.legal-section li {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
}

.legal-section p {
  margin: 0 0 10px;
}

.legal-section ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.legal-section a {
  color: var(--blue);
}

.legal-callout {
  border-left: 3px solid var(--navy);
  background: var(--subtle);
  padding: 14px 16px;
}

.legal-callout p {
  margin: 0;
  color: var(--ink);
}

.legal-site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  padding: 22px 0 32px;
  color: var(--soft);
  font-size: 12px;
}

.legal-site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.legal-site-footer a {
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
}

.legal-site-footer a:hover {
  color: var(--ink);
}

@media (max-width: 760px) {
  .legal-header-inner,
  .legal-main,
  .legal-site-footer {
    width: min(100% - 28px, 1080px);
  }

  .legal-main {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 36px 0 56px;
  }

  .legal-sidebar {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-bottom: 1px solid var(--line);
    padding-bottom: 20px;
  }

  .legal-sidebar p {
    grid-column: 1 / -1;
  }

  .legal-document h1 {
    font-size: 30px;
  }

  .legal-site-footer {
    flex-direction: column;
  }
}

.drawer-layer {
  position: fixed;
  inset: 0;
  z-index: 100;
}

.drawer-backdrop {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  border: 0;
  border-radius: 0;
  background: rgba(17, 30, 51, 0.46);
}

.drawer-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 16px 18px;
}

.detail-kv {
  min-width: 0;
  border-radius: 7px;
  background: var(--subtle);
  padding: 9px 10px;
}

.detail-kv span {
  display: block;
  color: var(--soft);
  font-size: 13px;
}

.detail-kv strong {
  display: block;
  margin-top: 3px;
  overflow-wrap: anywhere;
  font-size: 12px;
  font-weight: 600;
}

.detail-drawer {
  width: min(92vw, 460px);
  height: 100%;
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  background: var(--canvas);
  box-shadow: -18px 0 54px rgba(0, 0, 0, 0.42);
}

.collection-card span:last-child {
  white-space: normal;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}

.pnl-share-layer {
  position: fixed;
  inset: 0;
  z-index: 120;
}

.pnl-profile-layer {
  position: fixed;
  inset: 0;
  z-index: 124;
}

.pnl-profile-dialog {
  width: min(calc(100vw - 32px), 720px);
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--canvas);
  box-shadow: 0 26px 72px rgba(0, 0, 0, 0.48);
  transform: translate(-50%, -50%);
}

.pnl-profile-content {
  min-height: 0;
  display: grid;
  gap: 16px;
  overflow-y: auto;
  padding: 18px;
}

.pnl-profile-identity,
.pnl-profile-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.pnl-profile-identity {
  justify-content: flex-start;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}

.pnl-profile-identity img,
.pnl-profile-avatar-fallback {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--subtle);
  color: var(--blue);
  object-fit: cover;
}

.pnl-profile-identity span,
.pnl-profile-heading > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.pnl-profile-identity strong,
.pnl-profile-heading strong {
  color: var(--ink);
  font-size: 14px;
}

.pnl-profile-identity small,
.pnl-profile-heading span,
.pnl-profile-status {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.pnl-profile-heading b {
  color: var(--blue);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.pnl-profile-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.pnl-profile-empty {
  display: grid;
  gap: 5px;
  border-bottom: 1px solid var(--line);
  padding: 24px 4px;
  text-align: center;
}

.pnl-profile-empty strong {
  color: var(--ink);
  font-size: 13px;
}

.pnl-profile-empty span {
  color: var(--muted);
  font-size: 12px;
}

.pnl-profile-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}

.pnl-profile-row-main {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pnl-profile-row-main > b {
  width: 24px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.pnl-profile-row-main > span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.pnl-profile-row-main strong {
  display: flex;
  align-items: center;
  gap: 7px;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pnl-profile-network-badge {
  flex: 0 0 auto;
  border: 1px solid var(--blue-line);
  border-radius: 999px;
  color: var(--blue);
  padding: 2px 6px;
  font-size: 12px;
  font-style: normal;
  font-weight: 750;
  line-height: 1;
}

.pnl-profile-row-main small {
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.pnl-profile-primary {
  color: var(--blue);
}

.pnl-profile-row-actions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.pnl-profile-row-actions button {
  min-height: 32px;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  padding: 0 7px;
  font-size: 12px;
  font-weight: 700;
}

.pnl-profile-row-actions button:hover:not(:disabled) {
  color: var(--ink);
}

.pnl-profile-row-actions button:focus-visible {
  outline: 0;
  border-bottom-color: var(--blue);
}

.pnl-profile-row-actions button:disabled {
  color: var(--blue);
  cursor: default;
}

.pnl-profile-form {
  display: grid;
  grid-template-columns: minmax(105px, 0.48fr) minmax(0, 1.45fr) minmax(120px, 0.75fr) auto;
  align-items: end;
  gap: 10px;
}

.pnl-profile-form label {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.pnl-profile-form label > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.pnl-profile-form input,
.pnl-profile-form select {
  width: 100%;
  height: 40px;
  border: 1px solid var(--control-border);
  border-radius: 5px;
  background: var(--subtle);
  color: var(--ink);
  padding: 0 11px;
  font-size: 12px;
}

.pnl-profile-form select {
  appearance: none;
  padding-right: 30px;
}

.pnl-profile-select-shell {
  position: relative;
  display: block;
}

.pnl-profile-select-shell > svg {
  position: absolute;
  top: 50%;
  right: 10px;
  width: 15px;
  height: 15px;
  pointer-events: none;
  color: var(--muted);
  transform: translateY(-50%);
}

.pnl-profile-form .primary-button {
  min-height: 40px;
}

.pnl-profile-status {
  min-height: 18px;
  margin: -6px 0 0;
  color: var(--danger);
}

.pnl-profile-safety {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding-top: 14px;
  font-size: 12px;
  line-height: 1.55;
}

.pnl-profile-safety svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  color: var(--blue);
}

@media (max-width: 680px) {
  .pnl-profile-dialog {
    right: max(10px, env(safe-area-inset-right, 0px));
    left: max(10px, env(safe-area-inset-left, 0px));
    width: auto;
    max-height: calc(100vh - 20px);
    max-height: calc(100dvh - 20px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    transform: translateY(-50%);
  }

  .pnl-profile-content {
    padding: 14px;
  }

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

  .pnl-profile-row {
    grid-template-columns: 1fr;
  }

  .pnl-profile-row-actions {
    justify-content: flex-end;
  }
}

.pnl-share-dialog {
  width: min(calc(100vw - 32px), 920px);
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--canvas);
  box-shadow: 0 26px 72px rgba(0, 0, 0, 0.48);
  transform: translate(-50%, -50%);
}

.pnl-share-content {
  min-height: 0;
  overflow-y: auto;
  padding: 18px;
}

.pnl-share-preview {
  width: 100%;
  position: relative;
  aspect-ratio: 1280 / 853;
  overflow: hidden;
  border: 1px solid #223b5e;
  border-radius: 8px;
  background: #0c1d33;
}

.pnl-share-preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.pnl-share-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #d8e2f1;
  font-size: 13px;
  font-weight: 650;
}

.pnl-share-loading svg {
  width: 17px;
  height: 17px;
  animation: spin 0.9s linear infinite;
}

.pnl-share-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}

.pnl-share-control {
  display: grid;
  gap: 6px;
}

.pnl-share-control > span,
.pnl-share-toggle > span:last-child {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.pnl-share-control .segmented-control {
  width: min(100%, 220px);
}

.pnl-share-toggle {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.pnl-share-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.toggle-track {
  width: 34px;
  height: 20px;
  position: relative;
  flex: 0 0 auto;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--subtle-strong);
  transition: background 150ms ease, border-color 150ms ease;
}

.toggle-track > span {
  width: 14px;
  height: 14px;
  position: absolute;
  top: 2px;
  left: 2px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(18, 38, 66, 0.22);
  transition: transform 150ms ease;
}

.pnl-share-toggle input:checked + .toggle-track {
  border-color: var(--action);
  background: var(--action);
}

.pnl-share-toggle:hover .toggle-track {
  border-color: var(--control-border);
}

.pnl-share-toggle input:disabled + .toggle-track {
  border-color: var(--disabled-line);
  background: var(--disabled-bg);
  cursor: not-allowed;
}

.pnl-share-toggle input:checked + .toggle-track > span {
  transform: translateX(14px);
}

.pnl-share-toggle input:focus-visible + .toggle-track {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.pnl-share-meta {
  min-height: 34px;
  display: flex;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}

.pnl-share-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.pnl-share-actions button {
  min-width: 0;
}

@media (max-height: 760px) and (min-width: 761px) {
  .pnl-share-dialog {
    width: min(calc(100vw - 32px), 820px);
  }

  .pnl-share-content {
    padding: 12px;
  }

  .pnl-share-controls {
    padding: 10px 0;
  }

  .pnl-share-meta {
    min-height: 28px;
  }
}

.detail-content {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  padding: 16px 18px 30px;
}

.detail-hero {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
}

.detail-hero > img,
.detail-hero > video {
  width: 128px;
  height: 128px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--subtle);
  object-fit: cover;
}

.detail-hero > video {
  display: block;
}

.detail-hero h3 {
  margin: 2px 0 7px;
  overflow-wrap: anywhere;
  font-size: 16px;
  line-height: 1.3;
}

.detail-hero span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.warning-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.warning-badge {
  white-space: normal;
}

.detail-value {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: 16px;
  padding: 14px 0;
}

.detail-value > div > span,
.detail-value > div > small {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.detail-value > div > small {
  margin-top: 3px;
  color: var(--soft);
}

.detail-value strong {
  display: block;
  margin-top: 2px;
  font-size: 18px;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.mint-detail-score {
  min-width: 104px;
  flex: 0 0 auto;
  border: 1px solid currentColor;
  border-radius: 6px;
  padding: 7px 9px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.mint-timeline-section {
  border-top: 1px solid var(--line);
  margin-top: 16px;
  padding-top: 14px;
}

.mint-timeline-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.mint-timeline-heading span,
.mint-timeline-axis {
  color: var(--soft);
  font-size: 12px;
}

.mint-timeline-heading h4 {
  margin: 2px 0 0;
  font-size: 13px;
}

.mint-timeline-heading > strong {
  color: var(--ink);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.mint-timeline-chart {
  position: relative;
  height: 112px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: end;
  gap: 4px;
  border-bottom: 1px solid var(--line-strong);
  margin-top: 12px;
}

.mint-timeline-chart::before {
  position: absolute;
  z-index: 0;
  top: 50%;
  right: 0;
  left: 0;
  height: 1px;
  background: var(--line);
  content: "";
  pointer-events: none;
}

.mint-timeline-chart > div {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  align-items: flex-end;
}

.mint-timeline-chart i {
  width: 100%;
  height: var(--mint-bar-height);
  border-radius: 2px 2px 0 0;
  background: var(--subtle-strong);
}

.mint-timeline-chart i.active {
  background: var(--navy);
}

.mint-timeline-axis {
  display: flex;
  justify-content: space-between;
  margin-top: 5px;
}

.detail-section {
  border-top: 1px solid var(--line);
  margin-top: 16px;
  padding-top: 14px;
}

.detail-section h4 {
  margin: 0 0 9px;
  font-size: 13px;
  font-weight: 650;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.marketplace-link {
  display: inline-flex;
  align-items: center;
  color: var(--blue);
  margin-top: 9px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.marketplace-link.disabled {
  color: var(--disabled-fg);
  pointer-events: none;
  opacity: 1;
}

.toast {
  position: fixed;
  z-index: 200;
  right: 20px;
  bottom: 20px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: var(--navy);
  color: #ffffff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  padding: 9px 12px;
  font-size: 12px;
  pointer-events: none;
  animation: toast-in 240ms cubic-bezier(0.22, 0.61, 0.36, 1);
  transition: opacity 220ms ease, transform 220ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

.toast.is-leaving {
  opacity: 0;
  transform: translateY(12px);
}

.detail-share-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.status-badge.safety {
  color: var(--red);
}

.search-button,
.wallet-button,
.secondary-button,
.refresh-button,
.plain-button,
.back-button,
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.search-button svg,
.wallet-button svg,
.secondary-button svg,
.primary-button svg,
.back-button svg {
  flex: 0 0 auto;
}

.icon-button {
  width: 30px;
  min-width: 30px;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--control-border);
  border-radius: 6px;
  background: var(--subtle);
  color: var(--muted);
  padding: 0;
  text-decoration: none;
}

.icon-button:hover:not(:disabled) {
  border-color: var(--blue-line);
  background: var(--subtle-strong);
  color: var(--blue);
}

.primary-button {
  min-height: 36px;
  border: 1px solid var(--action);
  border-radius: 7px;
  background: var(--action);
  color: #ffffff;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
}

.primary-button:hover {
  border-color: var(--action-hover);
  background: var(--action-hover);
}

.primary-button:disabled {
  cursor: not-allowed;
  opacity: 1;
}

.mint-security {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.mint-security svg {
  color: var(--green);
}

.security-strip {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 7px 0;
  font-size: 13px;
}

.security-strip svg {
  color: var(--green);
}

.security-strip a {
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
}

.security-strip b {
  margin-left: auto;
  color: var(--muted);
  font-weight: 500;
}

.settlement-view {
  min-width: 0;
  padding-top: 22px;
}

.settlement-overview {
  min-height: 124px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  align-items: center;
  gap: 34px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--subtle);
  padding: 20px 22px;
}

.settlement-overview-copy p,
.settlement-section-heading p,
.security-center-copy p {
  margin: 0 0 3px;
  color: var(--soft);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.settlement-overview-copy h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
}

.settlement-overview-copy > span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.settlement-balance {
  min-width: 220px;
  text-align: right;
}

.settlement-balance span,
.settlement-balance small {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.settlement-balance strong {
  display: block;
  margin: 3px 0;
  font-size: 24px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

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

.settlement-actions button {
  white-space: nowrap;
}

.settlement-notice {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 9px;
  border-bottom: 1px solid var(--amber-line);
  background: var(--amber-soft);
  color: var(--amber);
  padding: 10px 13px;
  font-size: 13px;
}

.settlement-notice div {
  display: grid;
  gap: 3px;
}

.settlement-section {
  padding-top: 18px;
}

.settlement-section-heading {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}

.settlement-section-heading h3,
.security-center-copy h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 650;
}

.settlement-section-heading > span,
.settlement-section-heading > a {
  color: var(--soft);
  font-size: 13px;
  text-decoration: none;
}

.asset-balance-list,
.liquidity-list,
.settlement-job-list,
.settlement-transfer-list {
  min-width: 0;
}

.asset-balance-row {
  min-height: 68px;
  display: grid;
  grid-template-columns: 38px minmax(180px, 1fr) minmax(140px, auto) 30px;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 8px 10px;
}

.token-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--blue-line);
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.token-mark.eurc {
  border-color: var(--violet-line);
  background: var(--violet-soft);
  color: var(--violet);
}

.asset-balance-name strong,
.asset-balance-name span,
.asset-balance-value strong,
.asset-balance-value span,
.liquidity-row strong,
.liquidity-row span,
.job-summary strong,
.job-summary span,
.job-amount strong,
.job-amount span,
.settlement-transfer-row strong,
.settlement-transfer-row span {
  display: block;
}

.asset-balance-name strong,
.liquidity-row strong,
.job-summary strong,
.job-amount strong,
.settlement-transfer-row strong {
  font-size: 13px;
  font-weight: 650;
}

.asset-balance-name span,
.asset-balance-value span,
.liquidity-row span,
.job-summary span,
.job-amount span,
.settlement-transfer-row span {
  margin-top: 3px;
  color: var(--soft);
  font-size: 13px;
}

.asset-balance-value,
.job-amount,
.settlement-transfer-row > div:nth-child(3) {
  text-align: right;
}

.asset-balance-row > a,
.settlement-transfer-row > svg,
.execution-step > a {
  color: var(--soft);
}

.liquidity-row {
  min-height: 58px;
  display: grid;
  grid-template-columns: 16px minmax(180px, 1fr) minmax(150px, auto);
  align-items: center;
  gap: 11px;
  border-bottom: 1px solid var(--line);
  padding: 8px 10px;
}

.liquidity-row > div:last-child {
  text-align: right;
}

.chain-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px var(--green-soft);
}

.chain-dot.base-sepolia {
  background: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-soft);
}

.chain-dot.ethereum-sepolia {
  background: var(--violet);
  box-shadow: 0 0 0 3px var(--violet-soft);
}

.settlement-job-row {
  min-height: 64px;
  display: grid;
  grid-template-columns: 34px minmax(170px, 1fr) minmax(120px, auto) auto;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 8px 10px;
}

.job-state,
.transfer-direction {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.job-state.success,
.transfer-direction.received {
  background: var(--green-soft);
  color: var(--green);
}

.job-state.error {
  background: var(--red-soft);
  color: var(--red);
}

.job-state.pending {
  background: var(--blue-soft);
  color: var(--blue);
}

.job-state.muted,
.transfer-direction.self {
  background: var(--subtle-strong);
  color: var(--muted);
}

.transfer-direction.sent {
  background: var(--accent-soft);
  color: var(--accent);
}

.job-actions {
  display: flex;
  gap: 4px;
}

.job-actions button {
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
}

.job-actions button:hover {
  border-color: var(--line-strong);
  background: var(--subtle);
}

.settlement-transfer-row {
  min-height: 60px;
  display: grid;
  grid-template-columns: 34px minmax(170px, 1fr) minmax(150px, auto) 18px;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  padding: 8px 10px;
  text-decoration: none;
}

.settlement-transfer-row:hover {
  background: var(--subtle);
}

.security-center {
  min-height: 96px;
  display: grid;
  grid-template-columns: minmax(210px, 0.55fr) minmax(0, 1fr);
  align-items: center;
  gap: 36px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--subtle);
  margin-top: 24px;
  padding: 16px 20px;
}

.security-center-copy {
  display: flex;
  align-items: center;
  gap: 11px;
}

.security-center-copy > svg {
  width: 26px;
  height: 26px;
  color: var(--green);
}

.security-checks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px 18px;
}

.security-checks span {
  position: relative;
  color: var(--muted);
  padding-left: 12px;
  font-size: 13px;
}

.security-checks span::before {
  content: "";
  width: 5px;
  height: 5px;
  position: absolute;
  top: 4px;
  left: 0;
  border-radius: 50%;
  background: var(--green);
}

.settlement-empty {
  min-height: 112px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  color: var(--soft);
  padding: 20px;
  text-align: center;
}

.settlement-empty strong {
  color: var(--muted);
  font-size: 13px;
}

.settlement-empty span {
  max-width: 420px;
  font-size: 13px;
}

.settlement-skeleton {
  min-height: 60px;
  display: grid;
  grid-template-columns: 34px 1fr 130px;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 8px 10px;
}

.settlement-skeleton > span,
.settlement-skeleton b,
.settlement-skeleton i,
.settlement-skeleton > strong {
  display: block;
  border-radius: 5px;
  background: var(--subtle-strong);
}

.settlement-skeleton > span {
  width: 30px;
  height: 30px;
  border-radius: 50%;
}

.settlement-skeleton div {
  display: grid;
  gap: 6px;
}

.settlement-skeleton b {
  width: 120px;
  height: 10px;
}

.settlement-skeleton i {
  width: 84px;
  height: 8px;
}

.settlement-skeleton > strong {
  width: 110px;
  height: 12px;
}

.settlement-drawer {
  width: min(96vw, 500px);
}

.settlement-drawer-content {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  padding: 18px 20px 32px;
}

.settlement-form-intro {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}

.form-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}

.settlement-form-intro strong {
  font-size: 13px;
}

.settlement-form-intro p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.settlement-field {
  display: grid;
  gap: 7px;
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}

.settlement-field > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.settlement-field input,
.settlement-field select {
  width: 100%;
  height: 42px;
  border: 1px solid var(--control-border);
  border-radius: 7px;
  outline: 0;
  background: var(--subtle);
  color: var(--ink);
  padding: 0 12px;
  font-size: 12px;
}

.settlement-field input:focus,
.settlement-field select:focus {
  border-color: var(--blue);
  outline: 0;
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.settlement-field small {
  color: var(--soft);
  font-size: 13px;
}

.amount-input {
  position: relative;
}

.amount-input input {
  padding-right: 62px;
  font-size: 18px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.amount-input b {
  position: absolute;
  top: 50%;
  right: 12px;
  color: var(--muted);
  font-size: 12px;
  transform: translateY(-50%);
}

.address-input {
  font-family: var(--mono);
  font-size: 12px !important;
}

.route-lock,
.review-status {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  margin-top: 16px;
  border: 1px solid var(--green-line);
  border-radius: 7px;
  background: var(--green-soft);
  color: var(--green);
  padding: 10px 11px;
}

.route-lock strong,
.route-lock span,
.review-status strong,
.review-status span {
  display: block;
}

.route-lock strong,
.review-status strong {
  font-size: 12px;
}

.route-lock span,
.review-status span {
  margin-top: 2px;
  font-size: 13px;
}

.drawer-primary {
  width: 100%;
  min-height: 42px;
  margin-top: 18px;
}

.review-section {
  border-top: 1px solid var(--line);
  margin-top: 16px;
  padding-top: 12px;
}

.review-section h3 {
  margin: 0 0 7px;
  font-size: 13px;
  font-weight: 650;
}

.review-row {
  min-height: 34px;
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(0, 1.35fr);
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 6px 0;
}

.review-row > span {
  color: var(--muted);
  font-size: 13px;
}

.review-row > strong,
.review-row > a {
  justify-self: end;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  text-align: right;
  text-decoration: none;
}

.review-row.fee-row strong {
  color: var(--muted);
}

.review-row.total-row strong {
  color: var(--green);
  font-size: 13px;
}

.address-review > strong,
.address-review > a {
  font-family: var(--mono);
  font-size: 13px;
}

.contract-review a {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
}

.review-confirm {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
}

.review-confirm input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.drawer-actions {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 8px;
  margin-top: 18px;
}

.drawer-actions button {
  min-height: 40px;
}

.settlement-progress-view {
  min-height: 440px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  padding: 32px 16px;
  text-align: center;
}

.progress-spinner {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
}

.progress-spinner svg,
.job-state.pending svg,
.execution-step.pending svg {
  animation: settlement-spin 1.1s linear infinite;
}

.settlement-progress-view > strong {
  margin-top: 8px;
  font-size: 15px;
}

.settlement-progress-view > p {
  max-width: 350px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.progress-checks {
  display: grid;
  gap: 3px;
  margin-top: 12px;
  color: var(--soft);
  font-size: 13px;
}

.settlement-result {
  display: grid;
  justify-items: center;
  gap: 6px;
  border-bottom: 1px solid var(--line);
  padding: 24px 12px 20px;
  text-align: center;
}

.settlement-result > span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.settlement-result.success > span {
  background: var(--green-soft);
  color: var(--green);
}

.settlement-result.error > span {
  background: var(--red-soft);
  color: var(--red);
}

.settlement-result > strong {
  margin-top: 5px;
  font-size: 15px;
}

.settlement-result > p {
  max-width: 360px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.execution-step {
  min-height: 40px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding: 5px 0;
}

.execution-step > span {
  color: var(--blue);
}

.execution-step.success > span {
  color: var(--green);
}

.execution-step.error > span {
  color: var(--red);
}

.execution-step strong,
.execution-step small {
  display: block;
}

.execution-step strong {
  font-size: 12px;
}

.execution-step small {
  margin-top: 2px;
  color: var(--soft);
  font-size: 12px;
}

.result-actions {
  grid-template-columns: 1fr 1fr;
}

.nft-settlement-path p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

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

body.modal-open {
  overflow: hidden;
}

@media (max-width: 1040px) {
  .global-header {
    height: auto;
  }

  .header-inner {
    height: auto;
    min-height: 108px;
    grid-template-columns: auto minmax(280px, 1fr) auto;
    grid-template-rows: 64px 44px;
    gap: 0 20px;
  }

  .global-nav {
    width: 100%;
    grid-column: 1 / -1;
    grid-row: 2;
    align-self: stretch;
    gap: 24px;
    overflow-x: auto;
    border-top: 1px solid var(--line);
  }

  .global-nav a {
    min-height: 44px;
    padding: 9px 0 7px;
  }

  .page {
    min-height: calc(100vh - 108px);
  }

  .collection-overview {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .collections-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .mint-alerts-form {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .mint-alerts-delivery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .mint-alerts-delivery > button {
    width: 100%;
  }

  .mint-alerts-form-heading,
  .mint-alerts-scope {
    grid-column: 1 / -1;
  }

  .mint-alerts-form .primary-button {
    grid-column: 3;
  }

  .mint-alerts-data-grid {
    grid-template-columns: 1fr;
  }

  .mint-alerts-watchlist {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .mint-signal-table-header {
    display: none;
  }

  .mint-signals-state {
    overflow-x: visible;
  }

  .mint-signal-row {
    min-width: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 11px 16px;
    padding: 13px 12px;
  }

  .mint-signal-collection {
    grid-column: 1 / -1;
  }

  .mint-signal-value {
    min-height: 48px;
    border-top: 1px solid var(--line);
    padding-top: 9px;
  }

  .mint-signal-value::before {
    display: block;
    margin-bottom: 3px;
    color: var(--soft);
    font-size: 12px;
    font-weight: 600;
  }

  .mint-signal-value:nth-child(2)::before {
    content: "Detected at";
  }

  .mint-signal-value:nth-child(3)::before {
    content: "Observed";
  }

  .mint-signal-value:nth-child(4)::before {
    content: "Signal score";
  }

  .mint-signal-value:nth-child(5)::before {
    content: "Minting wallets";
  }

  .mint-signal-value:nth-child(6)::before {
    content: "Mint price";
  }

  .mint-signal-value:nth-child(7)::before {
    content: "Last mint";
  }

  .mint-signal-links {
    align-self: end;
    justify-content: flex-end;
    border-top: 1px solid var(--line);
    padding-top: 9px;
  }

  .mint-signal-loading-row {
    min-width: 0;
    grid-template-columns: 44px minmax(0, 1fr) repeat(2, 62px);
  }

  .mint-signal-loading-row > strong:nth-of-type(n + 3) {
    display: none;
  }
}

@media (max-width: 760px) {
  .global-header {
    height: auto;
  }

  .header-inner {
    min-height: 156px;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: 34px 38px 44px;
    gap: 10px;
    padding: 10px 14px;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
  }

  .wallet-control {
    grid-column: 3;
    grid-row: 1;
  }

  .global-search {
    width: 100%;
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .global-nav {
    grid-column: 1 / -1;
    grid-row: 3;
    gap: 22px;
    margin: 0 -14px -10px;
    padding: 0 14px;
  }

  .mint-alerts-telegram {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .mint-alerts-telegram > div:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
  }

  .mint-alerts-telegram > button {
    grid-column: 2;
    grid-row: 1 / 3;
  }

  .mint-alerts-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mint-alerts-delivery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mint-alerts-form .primary-button {
    grid-column: 1 / -1;
  }

  .wallet-button {
    min-width: 110px;
    padding: 7px 9px;
  }

  .wallet-menu {
    width: min(380px, calc(100vw - 28px));
  }

  .page {
    min-height: calc(100vh - 156px);
    padding: 0 14px 24px;
  }

  .empty-profile {
    height: 350px;
  }

  .empty-profile-copy {
    right: 24px;
    left: 24px;
  }

  .empty-profile-copy h2 {
    font-size: 25px;
  }

  .mint-layout {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 28px 0 42px;
  }

  .sbt-preview {
    width: min(100%, 480px);
    justify-self: center;
  }

  .mint-panel {
    width: min(100%, 560px);
    justify-self: center;
  }

  .profile-overview {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 22px 0 16px;
  }

  .profile-value {
    justify-self: start;
    text-align: left;
  }

  .profile-navigation {
    min-height: 98px;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
  }

  .profile-tabs {
    min-height: 48px;
  }

  .profile-controls {
    min-height: 48px;
    justify-content: space-between;
    border-top: 1px solid var(--line);
  }

  .portfolio-summary-bar {
    grid-template-columns: 1fr;
  }

  .mint-signals-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mint-signals-summary-metric:nth-child(2) {
    border-right: 0;
  }

  .mint-signals-summary-metric:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .portfolio-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portfolio-metric:nth-child(2) {
    border-right: 0;
  }

  .portfolio-metric:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .pnl-basis-control {
    min-width: 0;
    grid-template-columns: auto minmax(0, 220px);
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--line);
    padding: 10px 0;
  }

  .collection-overview {
    grid-template-columns: repeat(3, minmax(150px, 1fr));
    overflow-x: auto;
  }

  .collections-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .brand small {
    display: none;
  }

  .brand b {
    font-size: 13px;
  }

  .brand img,
  .brand .theme-brand-mark {
    width: 42px;
    height: 28px;
  }

  .wallet-button {
    min-width: 102px;
    font-size: 12px;
  }

  .global-search input {
    font-size: 12px;
  }

  .search-button {
    min-width: 64px;
  }

  .empty-profile {
    min-height: 310px;
    margin-top: 14px;
  }

  .empty-profile-copy {
    display: grid;
  }

  .empty-profile-copy h2 {
    font-size: 22px;
  }

  .empty-connect-button {
    width: 100%;
    margin-top: 18px;
  }

  .mint-toolbar {
    min-height: 46px;
  }

  .mint-layout {
    gap: 24px;
    padding-top: 20px;
  }

  .mint-panel h2 {
    font-size: 24px;
  }

  .mint-status > div {
    grid-template-columns: 94px minmax(0, 1fr);
  }

  .mint-actions {
    grid-template-columns: 1fr;
  }

  .profile-avatar {
    width: 72px;
    height: 72px;
    flex-basis: 72px;
  }

  .profile-copy h2 {
    font-size: 17px;
  }

  .profile-value > strong {
    font-size: 22px;
  }

  .profile-stat {
    min-width: 50%;
    border-right: 0;
    border-top: 1px solid var(--line);
    padding: 9px 12px 9px 0;
  }

  .profile-tabs {
    gap: 20px;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .profile-tabs::-webkit-scrollbar {
    display: block;
    height: 3px;
  }

  .profile-tabs button {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .mint-signals-heading {
    align-items: center;
  }

  .mint-alerts-bar {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .mint-alerts-status {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
  }

  .mint-alerts-bar .secondary-button {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
  }

  .mint-alerts-delivery-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .mint-alerts-delivery-heading .segmented-control {
    width: 100%;
  }

  .mint-alerts-scope {
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .mint-alerts-scope .segmented-control {
    width: 100%;
  }

  .mint-alerts-watchlist-form {
    grid-template-columns: minmax(0, 1fr) 32px;
  }

  .mint-alerts-watchlist-form > label:first-child {
    grid-column: 1 / -1;
  }

  .mint-alerts-contract-field {
    grid-column: 1;
  }

  .mint-alerts-watchlist-form > .icon-button {
    grid-column: 2;
  }

  .mint-alert-history-row {
    grid-template-columns: minmax(0, 1fr) 84px;
  }

  .mint-alert-history-row > div:nth-child(3) {
    grid-column: 1 / -1;
    border-top: 1px solid var(--line);
    padding-top: 7px;
  }

  .mint-signals-toolbar {
    align-items: stretch;
    flex-direction: column;
    padding: 10px 0;
  }

  .mint-signals-filters {
    grid-template-columns: minmax(0, 1fr) minmax(110px, 1fr) 34px;
  }

  .mint-filter-cost {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .mint-filter-time {
    grid-column: 1;
    grid-row: 1;
  }

  .mint-filter-sort {
    grid-column: 2 / -1;
    grid-row: 1;
  }

  .mint-filter-min {
    grid-column: 1;
    grid-row: 3;
  }

  .mint-filter-max {
    grid-column: 2 / -1;
    grid-row: 3;
  }

  .mint-filter-toggle {
    min-height: 34px;
    grid-column: 1 / 3;
    grid-row: 4;
  }

  .mint-signals-filters > .icon-button {
    grid-column: 3;
    grid-row: 4;
  }

  .mint-signal-filter-control {
    width: 100%;
  }

  .mint-signal-table-header {
    display: none;
  }

  .mint-signals-state {
    overflow-x: visible;
  }

  .mint-signal-row {
    min-width: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px 16px;
    padding: 13px 12px;
  }

  .mint-signal-collection {
    grid-column: 1 / -1;
  }

  .mint-signal-value {
    min-height: 48px;
    border-top: 1px solid var(--line);
    padding-top: 9px;
  }

  .mint-signal-value::before {
    display: block;
    margin-bottom: 3px;
    color: var(--soft);
    font-size: 12px;
    font-weight: 600;
  }

  .mint-signal-value:nth-child(2)::before {
    content: "Detected at";
  }

  .mint-signal-value:nth-child(3)::before {
    content: "Observed";
  }

  .mint-signal-value:nth-child(4)::before {
    content: "Signal score";
  }

  .mint-signal-value:nth-child(5)::before {
    content: "Minting wallets";
  }

  .mint-signal-value:nth-child(6)::before {
    content: "Mint price";
  }

  .mint-signal-value:nth-child(7)::before {
    content: "Last mint";
  }

  .mint-signal-links {
    align-self: end;
    justify-content: flex-end;
    border-top: 1px solid var(--line);
    padding-top: 9px;
  }

  .mint-signal-loading-row {
    min-width: 0;
    grid-template-columns: 44px minmax(0, 1fr) 62px;
  }

  .mint-signal-loading-row > strong:nth-of-type(n + 2) {
    display: none;
  }

  .profile-controls > span {
    display: none;
  }

  .chain-select-label select {
    min-width: 122px;
  }

  .collection-overview {
    grid-template-columns: repeat(2, minmax(145px, 1fr));
  }

  .section-heading {
    align-items: flex-start;
    padding: 12px 0;
  }

  .section-heading h2 {
    font-size: 16px;
  }

  .section-actions {
    align-items: center;
    flex-flow: row wrap;
    justify-content: flex-end;
  }

  .section-actions > span {
    flex-basis: 100%;
    text-align: right;
  }

  .nft-table-header {
    display: none;
  }

  .nft-list {
    background: var(--subtle);
  }

  .nft-row {
    min-width: 0;
    grid-template-columns: 1fr 1fr;
    gap: 10px 14px;
    padding: 12px;
  }

  .asset-cell {
    grid-column: 1 / -1;
  }

  .nft-row .table-cell:last-child {
    grid-column: 1 / -1;
  }

  .activity-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .activity-summary-metric:nth-child(2) {
    border-right: 0;
  }

  .activity-summary-metric:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .activity-table-header {
    display: none;
  }

  .activity-row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "type action"
      "asset asset"
      "detail amount"
      "pnl pnl";
    gap: 10px 14px;
    padding: 12px;
  }

  .activity-group-children {
    padding-left: 10px;
  }

  .activity-type-cell {
    grid-area: type;
  }

  .activity-asset-cell {
    grid-area: asset;
  }

  .activity-detail-cell {
    grid-area: detail;
  }

  .activity-value-cell:nth-of-type(4) {
    grid-area: amount;
    text-align: right;
  }

  .activity-value-cell:nth-of-type(5) {
    grid-area: pnl;
    border-top: 1px solid var(--line);
    padding-top: 10px;
  }

  .activity-share-button {
    grid-area: action;
  }

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

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

  .detail-drawer {
    width: 100%;
  }

  .pnl-share-dialog {
    right: max(10px, env(safe-area-inset-right, 0px));
    left: max(10px, env(safe-area-inset-left, 0px));
    width: auto;
    max-height: calc(100vh - 20px);
    max-height: calc(100dvh - 20px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    transform: translateY(-50%);
  }

  .pnl-share-content {
    padding: 12px;
  }

  .pnl-share-controls {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .pnl-share-control .segmented-control {
    width: 100%;
  }

  .pnl-share-actions {
    grid-template-columns: 1fr 1fr;
  }

  .pnl-share-actions .primary-button {
    grid-column: 1 / -1;
  }

.detail-hero {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .detail-hero > img,
  .detail-hero > video {
    width: 96px;
    height: 96px;
  }

  .toast {
    right: 12px;
    bottom: 12px;
    left: 12px;
    text-align: center;
  }
}

@media (max-width: 1040px) {
  .tracker-activity-header {
    display: none;
  }

  .tracker-activity-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-areas:
      "wallet kind links"
      "collection collection collection"
      "quantity payment time";
    gap: 10px 14px;
    padding: 12px;
  }

  .tracker-activity-row > div:nth-child(1) {
    grid-area: wallet;
  }

  .tracker-activity-row > div:nth-child(2) {
    grid-area: kind;
  }

  .tracker-activity-row > div:nth-child(3) {
    grid-area: collection;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 9px 0;
  }

  .tracker-activity-row > div:nth-child(4) {
    grid-area: quantity;
  }

  .tracker-activity-row > div:nth-child(5) {
    grid-area: payment;
  }

  .tracker-activity-row > div:nth-child(6) {
    grid-area: time;
  }

  .tracker-activity-row > div:nth-child(7) {
    grid-area: links;
  }

  .tracker-sweep-row {
    grid-template-columns: 44px minmax(180px, 1fr) repeat(2, minmax(90px, 0.55fr)) 80px;
  }

  .tracker-sweep-row > div:nth-child(5) {
    display: none;
  }
}

@media (max-width: 760px) {
  .tracker-add-form {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .tracker-add-form .primary-button {
    width: 100%;
  }

  .tracker-telegram-form {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .tracker-telegram-form label {
    grid-column: 1;
  }

  .tracker-telegram-form .secondary-button,
  .tracker-telegram-form > .icon-button {
    grid-column: 2;
  }

  .tracker-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tracker-summary-metric:nth-child(2) {
    border-right: 0;
  }

  .tracker-summary-metric:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .tracker-wallet-row {
    grid-template-columns: minmax(0, 1fr) 34px;
    gap: 8px 12px;
  }

  .tracker-wallet-identity {
    grid-column: 1;
    grid-row: 1;
  }

  .tracker-remove-button {
    grid-column: 2;
    grid-row: 1;
  }

  .tracker-wallet-network {
    grid-column: 1;
    grid-row: 2;
    padding-left: 46px;
  }

  .tracker-wallet-added {
    display: none;
  }

  .tracker-sweep-row {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 10px 12px;
  }

  .tracker-sweep-row > img {
    grid-column: 1;
    grid-row: 1;
  }

  .tracker-sweep-collection {
    grid-column: 2;
    grid-row: 1;
  }

  .tracker-sweep-row > div:nth-child(3),
  .tracker-sweep-row > div:nth-child(4),
  .tracker-sweep-row > div:nth-child(5) {
    display: block;
    border-top: 1px solid var(--line);
    padding-top: 8px;
  }

  .tracker-sweep-row > div:nth-child(3) {
    grid-column: 1;
  }

  .tracker-sweep-row > div:nth-child(4) {
    grid-column: 2;
  }

  .tracker-sweep-row > div:nth-child(5) {
    display: none;
  }

  .tracker-sweep-row > div:nth-child(6) {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }

  .tracker-activity-row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "wallet links"
      "collection collection"
      "kind quantity"
      "payment time";
  }

  .tracker-activity-row > div:nth-child(3) {
    border-bottom: 0;
  }

  .tracker-section-heading {
    align-items: flex-start;
  }

  .tracker-section-heading > span {
    max-width: 46%;
    padding-top: 3px;
    text-align: right;
    white-space: normal;
  }
}

@media (max-width: 520px) {
  .tracker-add-form {
    margin-right: -14px;
    margin-left: -14px;
    padding-right: 14px;
    padding-left: 14px;
  }

  .tracker-wallet-identity code {
    max-width: 210px;
  }
}

.safety-callout {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  border: 1px solid var(--red-line);
  border-radius: 7px;
  background: var(--red-soft);
  padding: 14px;
  color: var(--red);
}

.safety-callout > svg {
  width: 22px;
  height: 22px;
  margin: 2px auto 0;
}

.safety-callout strong {
  display: block;
  font-size: 13px;
}

.safety-callout p {
  margin: 5px 0 0;
  color: var(--red);
  font-size: 12px;
  line-height: 1.55;
}

@media (max-width: 1040px) {
  .settlement-overview {
    grid-template-columns: minmax(220px, 1fr) auto;
  }

  .settlement-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }
}

@media (max-width: 760px) {
  .security-strip {
    flex-wrap: wrap;
  }

  .security-strip b {
    width: 100%;
    margin-left: 26px;
  }

  .settlement-overview {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .settlement-balance {
    min-width: 0;
    text-align: left;
  }

  .settlement-actions {
    grid-column: auto;
    justify-content: flex-start;
  }

  .security-center {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 520px) {
  .settlement-view {
    padding-top: 14px;
  }

  .settlement-overview {
    margin-right: -14px;
    margin-left: -14px;
    padding: 18px 14px;
  }

  .settlement-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .settlement-actions button {
    width: 100%;
  }

  .asset-balance-row {
    grid-template-columns: 38px minmax(0, 1fr) 28px;
  }

  .asset-balance-value {
    grid-column: 2;
    text-align: left;
  }

  .asset-balance-row > a {
    grid-column: 3;
    grid-row: 1 / span 2;
  }

  .liquidity-row {
    grid-template-columns: 16px minmax(0, 1fr);
  }

  .liquidity-row > div:last-child {
    grid-column: 2;
    text-align: left;
  }

  .settlement-job-row {
    grid-template-columns: 34px minmax(0, 1fr) auto;
  }

  .job-amount {
    grid-column: 2;
    text-align: left;
  }

  .job-actions {
    grid-column: 3;
    grid-row: 1 / span 2;
  }

  .settlement-transfer-row {
    grid-template-columns: 34px minmax(0, 1fr) 18px;
  }

  .settlement-transfer-row > div:nth-child(3) {
    grid-column: 2;
    text-align: left;
  }

  .settlement-transfer-row > svg {
    grid-column: 3;
    grid-row: 1 / span 2;
  }

  .security-center {
    margin-right: -14px;
    margin-left: -14px;
    padding: 16px 14px;
  }

  .security-checks {
    grid-template-columns: 1fr;
  }

  .settlement-drawer {
    width: 100%;
  }

  .settlement-drawer-content {
    padding: 16px 14px 26px;
  }

  .review-row {
    grid-template-columns: minmax(95px, 0.7fr) minmax(0, 1.3fr);
  }

  .review-row.address-review {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .review-row.address-review > strong,
  .review-row.address-review > a {
    width: 100%;
    justify-self: start;
    justify-content: flex-start;
    text-align: left;
    word-break: break-all;
  }

  .drawer-actions,
  .result-actions {
    grid-template-columns: 1fr;
  }
}

/* AlphaDuo dark application theme */
html[data-theme="dark"] body:not(.legal-page),
html[data-theme="dark"] .app-shell {
  --ink: #f4f7fb;
  --muted: #a6adba;
  --soft: #8793a8;
  --line: #1b2433;
  --line-strong: #263244;
  --blue-line: #2e6fa8;
  --green-line: #278361;
  --red-line: #ad405e;
  --amber-line: #876425;
  --violet-line: #6c58b4;
  --canvas: #020916;
  --subtle: #050c18;
  --subtle-strong: #091321;
  --panel: #050d1a;
  --navy: #071528;
  --accent: #1e90ff;
  --accent-hover: #45a7ff;
  --accent-soft: #081a32;
  --action: #0070e8;
  --action-hover: #0075df;
  --control-border: #506078;
  --disabled-bg: #0b3159;
  --disabled-fg: #a6adba;
  --disabled-line: #496b8c;
  --blue: #2ea5ff;
  --blue-soft: #071a30;
  --green: #00d66b;
  --green-soft: #062117;
  --red: #ff4669;
  --red-soft: #28101a;
  --amber: #e7ad50;
  --amber-soft: #2a1e0e;
  --violet: #b8a7ff;
  --violet-soft: #17122b;
  --focus-ring: rgba(46, 165, 255, 0.24);
  --brand-cyan: #38b3ff;
  --brand-indigo: #4f5aff;
  --brand-gradient: linear-gradient(115deg, var(--brand-cyan), var(--brand-indigo));
  --glow: 0 0 20px rgba(56, 140, 255, 0.35);
  --pnl-glow: rgba(0, 214, 107, 0.32);
  color-scheme: dark;
}

body:not(.legal-page) {
  background: var(--canvas);
  color: var(--ink);
}

:where(body:not(.legal-page)) :where(
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="hidden"]),
  select,
  textarea
) {
  border-color: var(--control-border);
  background-color: var(--subtle);
  color: var(--ink);
}

:where(body:not(.legal-page)) :where(input, textarea)::placeholder {
  color: var(--soft);
  opacity: 1;
}

/* Chrome paints the select popup from each option's own colors; without
   them Windows mixes its light popup into the dark theme and rows wash
   out (the wallet picker made this visible). */
:where(body:not(.legal-page)) select option {
  background-color: var(--panel);
  color: var(--ink);
}

:where(body:not(.legal-page)) select option:disabled {
  color: var(--soft);
}

:where(body:not(.legal-page)) :where(
  input:-webkit-autofill,
  input:-webkit-autofill:hover,
  input:-webkit-autofill:focus
) {
  -webkit-text-fill-color: var(--ink);
  caret-color: var(--ink);
  box-shadow: 0 0 0 1000px var(--subtle) inset !important;
}

:where(body:not(.legal-page)) :where(input:-webkit-autofill:focus) {
  box-shadow: 0 0 0 1000px var(--subtle) inset, 0 0 0 3px var(--focus-ring) !important;
}

body.legal-page {
  background: var(--canvas);
  color: var(--ink);
  color-scheme: light;
}

.app-shell {
  --sidebar-width: clamp(72px, calc(200vw - 2470px), 250px);
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  width: min(calc(100% - 48px), 1520px);
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  margin: 0 auto;
  border-right: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: var(--canvas);
}

.global-header {
  position: sticky;
  top: 0;
  z-index: 70;
  width: var(--sidebar-width);
  height: 100vh;
  border-right: 1px solid #1b2433;
  border-bottom: 0;
  background: #030918;
  backdrop-filter: none;
}

.header-inner {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  margin: 0;
  padding: 36px 19px 26px;
}

.brand {
  width: 100%;
  display: grid;
  justify-items: center;
  gap: 14px;
  color: #f4f7fb;
  padding: 0;
  text-align: center;
}

.brand img,
.brand .theme-brand-mark {
  width: 85px;
  height: 40px;
  border-radius: 0;
  background-color: transparent;
  object-fit: contain;
  padding: 0;
}

.brand > span {
  display: grid;
  gap: 5px;
}

.brand b {
  color: #f4f7fb;
  font-size: 20px;
  line-height: 1.15;
}

.brand small {
  color: var(--soft);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.global-nav {
  width: 100%;
  display: grid;
  gap: 7px;
  margin-top: 46px;
}

.global-nav a {
  position: relative;
  min-height: 46px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) max-content;
  align-items: center;
  gap: 13px;
  border: 0;
  border-radius: 0;
  color: #a6adba;
  padding: 0 15px;
  font-size: 15px;
  font-weight: 500;
  transition: color 140ms ease;
}

.global-nav a > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.global-nav-badge {
  min-width: 34px;
  justify-self: end;
  color: var(--blue);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-align: right;
  white-space: nowrap;
}

.global-nav a svg {
  width: 18px;
  height: 18px;
  color: #8390a3;
}

.global-nav a:hover {
  border-bottom-color: transparent;
  background: transparent;
  color: #d9e5f4;
}

.global-nav a:hover svg {
  color: #b0bfd3;
}

.global-nav a.active {
  border-bottom-color: transparent;
  background: transparent;
  color: #f4f7fb;
  font-weight: 600;
}

.active-filter button:hover {
  color: var(--ink);
}

.global-nav a.active svg {
  color: #149cff;
}

.global-nav a:focus-visible {
  outline: 0;
  box-shadow: inset 0 -2px 0 #149cff;
  color: #f4f7fb;
}

.sidebar-wallet-search {
  display: none;
}

.hub-sidebar-tools {
  width: 100%;
  display: grid;
  gap: 12px;
  margin-top: auto;
  min-width: 0;
  padding-top: 20px;
}

.theme-switcher {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  margin-top: 12px;
  overflow: hidden;
}

.theme-switcher button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  border-right: 1px solid var(--line-strong);
  background: transparent;
  color: var(--soft);
  font-size: 12px;
  font-weight: 650;
}

.theme-switcher button svg {
  width: 14px;
  height: 14px;
}

.theme-switcher button:last-child {
  border-right: 0;
}

.theme-switcher button:hover {
  color: var(--ink);
}

.theme-switcher button.active {
  background: var(--accent-soft);
  color: var(--blue);
}

.hub-sidebar-tools:not(.hidden) ~ .sidebar-meta {
  display: none;
}

.sidebar-wallet-control {
  width: 100%;
  margin-top: 11px;
}

.sidebar-wallet-control .wallet-button {
  width: 100%;
  min-height: 40px;
  border-color: #26364d;
  border-radius: 6px;
  background: #07111f;
  color: #dce6f2;
}

.sidebar-wallet-control .wallet-menu {
  top: auto;
  right: auto;
  bottom: 0;
  left: calc(100% + 12px);
  border-color: #2a3749;
  background: #050c18;
  color: #eef4fb;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.44);
}

.sidebar-meta {
  display: grid;
  gap: 3px;
  margin-top: 15px;
  color: var(--soft);
  font-size: 12px;
}

.sidebar-meta small {
  font-size: 13px;
}

.page {
  width: 100%;
  max-width: none;
  min-height: 100vh;
  grid-column: 2;
  margin: 0;
  padding: 0 28px 34px;
}

.profile-page.workspace-view {
  padding-top: 0;
}

.footer {
  border-top-color: #1b2433;
}

.footer-links {
  justify-content: flex-end;
}

.footer-links a {
  color: var(--soft);
}

.app-shell .secondary-button,
.app-shell .refresh-button,
.app-shell .back-button {
  border-color: var(--line-strong);
  background: var(--subtle);
  color: var(--ink);
}

.app-shell .plain-button {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}

.app-shell :is(.secondary-button, .refresh-button, .back-button, .wallet-button):hover:not(:disabled) {
  border-color: var(--control-border);
  background: var(--subtle-strong);
  color: var(--ink);
}

.app-shell .plain-button:hover:not(:disabled) {
  border-color: transparent;
  background: transparent;
  color: var(--ink);
}

.app-shell .primary-button {
  border-color: var(--action);
  background: var(--action);
  color: #ffffff;
}

.wallet-portfolio-form button:hover:not(:disabled) {
  border-color: var(--action-hover);
  background: var(--action-hover);
}

.app-shell .primary-button:hover:not(:disabled) {
  border-color: var(--action-hover);
  background: var(--action-hover);
}

.pnl-workspace {
  width: 100%;
  max-width: 1100px;
  margin: 0;
  color: #f4f7fb;
}

.pnl-workspace-heading {
  gap: 28px;
}

.pnl-beta-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  margin-left: 9px;
  border: 1px solid var(--blue-line);
  border-radius: 4px;
  color: var(--blue);
  padding: 0 7px;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.06em;
  vertical-align: middle;
}

.pnl-workspace-heading .page-heading-note {
  line-height: 1.55;
}

.portfolio-pnl-form {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(180px, 0.38fr) minmax(238px, auto);
  align-items: start;
  gap: 20px;
  margin-top: 16px;
}

.portfolio-pnl-account {
  min-width: 0;
  min-height: 68px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  align-items: center;
  gap: 18px;
  margin-top: 27px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--subtle);
  padding: 12px 14px;
}

.portfolio-pnl-account-identity {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
}

.portfolio-pnl-account-identity > img,
.portfolio-pnl-account-identity > .portfolio-pnl-profile-placeholder {
  width: 36px;
  height: 36px;
  flex-basis: 36px;
}

.portfolio-pnl-account-identity > span:last-child {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.portfolio-pnl-account-identity small {
  color: var(--blue);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.portfolio-pnl-account-identity strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portfolio-pnl-account-wallets {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.portfolio-pnl-account-wallets > strong {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.portfolio-pnl-account-network {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-left: 1px solid var(--line-strong);
  padding-left: 9px;
}

.portfolio-pnl-account-network b {
  color: var(--muted);
  font-size: 12px;
}

.portfolio-pnl-account-network em {
  color: var(--blue);
  font-style: normal;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.portfolio-pnl-account-error {
  max-width: 240px;
  overflow: hidden;
  color: var(--danger);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portfolio-pnl-wallet-manage {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--control-border);
  border-radius: 5px;
  background: transparent;
  color: var(--blue);
  padding: 0 11px;
  font-size: 12px;
  font-weight: 700;
}

.portfolio-pnl-wallet-manage:hover:not(:disabled) {
  border-color: var(--blue);
  color: var(--ink);
}

.portfolio-pnl-wallet-manage:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.portfolio-pnl-wallet-manage svg {
  width: 15px;
  height: 15px;
}

.portfolio-pnl-form > label,
.portfolio-pnl-wallet-field {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.portfolio-pnl-form > label > span:first-child,
.portfolio-pnl-field-heading label {
  color: #8f99a9;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portfolio-pnl-field-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.portfolio-pnl-field-heading > span {
  color: var(--soft);
  font-family: var(--mono);
  font-size: 12px;
}

.portfolio-pnl-address-list {
  display: grid;
  gap: 7px;
}

.portfolio-pnl-address-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}

.portfolio-pnl-address-row input {
  width: 100%;
  height: 44px;
  border: 1px solid var(--control-border);
  border-radius: 6px;
  outline: 0;
  background: var(--subtle);
  color: var(--ink);
  padding: 0 14px;
  font-family: var(--mono);
  font-size: 12px;
}

.portfolio-pnl-address-row:has(.portfolio-pnl-remove-wallet) input {
  border-radius: 6px 0 0 6px;
}

.portfolio-pnl-address-row input:focus {
  position: relative;
  z-index: 1;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.portfolio-pnl-remove-wallet {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--control-border);
  border-left: 0;
  border-radius: 0 6px 6px 0;
  background: var(--subtle);
  color: var(--soft);
}

.portfolio-pnl-remove-wallet:hover:not(:disabled),
.portfolio-pnl-add-wallet:hover:not(:disabled) {
  color: var(--blue);
}

.portfolio-pnl-add-wallet {
  min-height: 44px;
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0 2px;
  font-size: 12px;
  font-weight: 650;
}

.portfolio-pnl-add-wallet svg,
.portfolio-pnl-remove-wallet svg {
  width: 15px;
  height: 15px;
}

.portfolio-pnl-input-shell {
  height: 44px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  overflow: hidden;
  border: 1px solid var(--control-border);
  border-radius: 6px;
  background: var(--subtle);
}

.portfolio-pnl-input-shell:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.portfolio-pnl-input-shell input,
.portfolio-pnl-form > label > input,
.portfolio-pnl-form select {
  width: 100%;
  height: 42px;
  border: 0;
  outline: 0;
  background: var(--subtle);
  color: var(--ink);
  padding: 0 14px;
  font-family: var(--mono);
  font-size: 12px;
}

.portfolio-pnl-input-shell input::placeholder {
  color: var(--soft);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

.portfolio-pnl-input-shell button {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-left: 1px solid #202b3c;
  background: transparent;
  color: #8793a5;
}

.portfolio-pnl-input-shell button:hover:not(:disabled) {
  background: var(--subtle-strong);
  color: var(--blue);
}

.portfolio-pnl-form select {
  height: 44px;
  border: 1px solid var(--control-border);
  border-radius: 6px;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  appearance: none;
  padding-right: 44px;
}

.portfolio-pnl-select-shell {
  position: relative;
  height: 44px;
}

.portfolio-pnl-select-shell > svg {
  position: absolute;
  top: 50%;
  right: 15px;
  width: 16px;
  height: 16px;
  pointer-events: none;
  color: var(--muted);
  transform: translateY(-50%);
}

.portfolio-pnl-form-actions {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding-top: 23px;
}

.portfolio-pnl-submit {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--action);
  border-radius: 6px;
  background: var(--action);
  color: #ffffff;
  padding: 0 18px;
  font-size: 13px;
  font-weight: 650;
}

.portfolio-pnl-submit:hover:not(:disabled) {
  border-color: var(--action-hover);
  background: var(--action-hover);
}

.portfolio-pnl-submit:disabled {
  cursor: wait;
  opacity: 1;
}

.portfolio-pnl-reset {
  min-width: 88px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--control-border);
  border-radius: 6px;
  background: var(--subtle);
  color: var(--muted);
  padding: 0 13px;
  font-size: 12px;
  font-weight: 650;
}

.portfolio-pnl-reset:hover:not(:disabled) {
  border-color: var(--blue-line);
  color: var(--ink);
}

.portfolio-pnl-reset svg {
  width: 15px;
  height: 15px;
}

.portfolio-pnl-form > label > input {
  height: 44px;
  border: 1px solid var(--control-border);
  border-radius: 6px;
}

.portfolio-pnl-form > label > input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.portfolio-pnl-member-gate {
  min-height: 118px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 27px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--subtle);
  padding: 18px;
}

.portfolio-pnl-member-gate > i {
  width: 36px;
  height: 36px;
  display: grid;
  flex: 0 0 36px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--blue);
}

.portfolio-pnl-member-gate > div:first-of-type {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.portfolio-pnl-member-gate p {
  margin: 0;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.portfolio-pnl-member-gate h2 {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
}

.portfolio-pnl-member-gate > div:first-of-type > span {
  color: var(--muted);
  font-size: 13px;
}

.portfolio-pnl-member-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1 1 auto;
  flex-wrap: wrap;
  gap: 9px;
}

.portfolio-pnl-member-actions > a,
.portfolio-pnl-member-actions > button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: transparent;
  color: var(--ink);
  padding: 0 10px;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  text-decoration: none;
}

.portfolio-pnl-member-actions > a:hover,
.portfolio-pnl-member-actions > button:hover:not(:disabled) {
  border-color: var(--blue);
  color: var(--blue);
}

.portfolio-pnl-member-actions > button:disabled {
  color: var(--soft);
  cursor: wait;
}

.portfolio-pnl-wallet-target {
  min-height: 62px;
  display: grid;
  grid-template-columns: minmax(250px, 360px) minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--subtle);
  padding: 10px 12px;
}

.portfolio-pnl-wallet-target label {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.portfolio-pnl-wallet-target label > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.portfolio-pnl-wallet-target select {
  min-width: 0;
  height: 38px;
  border: 1px solid var(--control-border);
  border-radius: 5px;
  background: var(--canvas);
  color: var(--ink);
  padding: 0 34px 0 11px;
  font-size: 12px;
}

.portfolio-pnl-wallet-target p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.portfolio-pnl-wallet-target button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: var(--blue);
  padding: 0 7px;
  font-size: 12px;
  font-weight: 700;
}

.portfolio-pnl-wallet-target button:hover {
  color: var(--ink);
}

.portfolio-pnl-wallet-target button:focus-visible {
  outline: 0;
  border-bottom-color: var(--blue);
}

.portfolio-pnl-wallet-target button svg {
  width: 15px;
  height: 15px;
}

.portfolio-pnl-context {
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #8994a5;
  font-size: 12px;
}

.portfolio-pnl-context > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.portfolio-pnl-context svg {
  color: #7d899b;
}

.portfolio-pnl-context strong {
  color: #aeb7c5;
  font-weight: 500;
  white-space: nowrap;
}

.portfolio-pnl-assets {
  overflow: hidden;
  margin: 0 0 24px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--canvas);
}

.portfolio-pnl-assets > header {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding: 13px 18px;
}

.portfolio-pnl-assets > header > div:first-child {
  display: grid;
  gap: 4px;
}

.portfolio-pnl-assets > header > div:first-child > span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.09em;
}

.portfolio-pnl-assets > header h2 {
  margin: 0;
  color: var(--ink);
  font-size: 19px;
  line-height: 1.2;
}

.portfolio-pnl-assets-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}

.portfolio-pnl-assets-meta > strong {
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.portfolio-pnl-selection {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  border: 0;
  padding: 0;
  color: var(--muted);
  font-size: 13px;
}

.portfolio-pnl-selection label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  cursor: pointer;
  font-weight: 650;
}

.portfolio-pnl-selection input,
.portfolio-pnl-collection-option > input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--blue);
  cursor: pointer;
}

.portfolio-pnl-selection > span {
  min-width: 72px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.portfolio-pnl-asset-list {
  display: grid;
}

.portfolio-pnl-asset {
  min-height: 82px;
  display: grid;
  grid-template-columns: 54px minmax(190px, 1.5fr) minmax(110px, 0.65fr) minmax(190px, 0.85fr) max-content;
  align-items: center;
  gap: 14px;
  padding: 13px 18px;
}

.portfolio-pnl-asset + .portfolio-pnl-asset {
  border-top: 1px solid var(--line);
}

.portfolio-pnl-collection-option {
  min-height: 82px;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) 32px;
  align-items: center;
  gap: 14px;
  padding: 13px 18px;
}

.portfolio-pnl-collection-option + .portfolio-pnl-collection-option {
  border-top: 1px solid var(--line);
}

.portfolio-pnl-collection-option > input:focus-visible {
  outline: 1px solid var(--blue);
  outline-offset: 3px;
}

.portfolio-pnl-collection-option > input:disabled {
  cursor: not-allowed;
}

.portfolio-pnl-collection-option-label {
  min-width: 0;
  display: grid;
  grid-template-columns: 54px minmax(190px, 1.5fr) minmax(110px, 0.65fr) minmax(190px, 0.85fr);
  align-items: center;
  gap: 14px;
  cursor: pointer;
}

.portfolio-pnl-collection-option-label > img {
  width: 54px;
  height: 54px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--subtle);
  object-fit: cover;
}

.portfolio-pnl-collection-option.unavailable .portfolio-pnl-collection-option-label {
  cursor: not-allowed;
  opacity: 0.58;
}

.portfolio-pnl-collection-option > a {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid transparent;
  color: var(--muted);
}

.portfolio-pnl-collection-option > a:hover,
.portfolio-pnl-collection-option > a:focus-visible {
  border-bottom-color: var(--blue);
  color: var(--blue);
  outline: 0;
}

.portfolio-pnl-collection-option > a svg {
  width: 16px;
  height: 16px;
}

.portfolio-pnl-asset > img {
  width: 54px;
  height: 54px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--subtle);
  object-fit: cover;
}

.portfolio-pnl-asset-copy,
.portfolio-pnl-asset-chain,
.portfolio-pnl-asset-floor {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.portfolio-pnl-asset-copy strong,
.portfolio-pnl-asset-chain strong,
.portfolio-pnl-asset-floor strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portfolio-pnl-asset-copy span,
.portfolio-pnl-asset-chain span,
.portfolio-pnl-asset-floor span {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portfolio-pnl-asset-chain span,
.portfolio-pnl-asset-floor span {
  color: var(--soft);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.portfolio-pnl-asset-floor span {
  text-transform: none;
}

.portfolio-pnl-asset-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.portfolio-pnl-asset-actions a {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid transparent;
  color: var(--muted);
}

.portfolio-pnl-asset-actions a:hover,
.portfolio-pnl-asset-actions a:focus-visible {
  border-bottom-color: var(--blue);
  color: var(--blue);
  outline: 0;
}

.portfolio-pnl-asset-actions a svg {
  width: 16px;
  height: 16px;
}

.portfolio-pnl-asset-card {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  padding: 0 10px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.portfolio-pnl-asset-card:hover,
.portfolio-pnl-asset-card:focus-visible {
  border-color: #167dc5;
  color: var(--blue);
}

.portfolio-pnl-asset-card svg {
  width: 14px;
  height: 14px;
}

.portfolio-pnl-assets-state {
  min-height: 150px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  color: var(--muted);
  padding: 24px;
  text-align: center;
}

.portfolio-pnl-assets-state svg {
  width: 22px;
  height: 22px;
  color: var(--blue);
}

.portfolio-pnl-assets-state .lucide-loader-circle {
  animation: settlement-spin 0.9s linear infinite;
}

body.hub-active .sidebar-wallet-control {
  display: none;
}

.portfolio-pnl-disclosure {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: -7px 0 13px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.portfolio-pnl-disclosure svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  color: var(--soft);
}

.portfolio-pnl-summary {
  min-height: 120px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid #263244;
  border-radius: 6px;
  background: #030a16;
}

.portfolio-pnl-summary > div {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 18px 27px;
}

.portfolio-pnl-summary > div + div {
  border-left: 1px solid #263244;
}

.portfolio-pnl-summary span {
  color: #9aa4b3;
  font-size: 13px;
}

.portfolio-pnl-summary strong {
  overflow: hidden;
  color: #f4f7fb;
  font-size: clamp(18px, 1.7vw, 24px);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portfolio-pnl-summary strong.positive {
  color: #00d66b;
}

.portfolio-pnl-summary strong.negative {
  color: #ff4669;
}

.portfolio-pnl-summary small {
  overflow: hidden;
  color: #758093;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portfolio-pnl-personalization {
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--subtle);
  padding: 10px 14px;
}

.portfolio-pnl-profile-identity {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 11px;
}

.portfolio-pnl-profile-identity > img,
.portfolio-pnl-profile-placeholder {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border: 1px solid var(--control-border);
  border-radius: 50%;
  object-fit: cover;
}

/* The login widget only appears for signed-out visitors; it must not reserve
   vertical space next to the card header when nobody is signed in. */
.portfolio-pnl-telegram-login:empty {
  display: none;
}

.portfolio-pnl-telegram-login {
  display: flex;
  justify-content: flex-end;
  padding-bottom: 6px;
}

.portfolio-pnl-profile-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
}

.portfolio-pnl-profile-placeholder svg {
  width: 16px;
  height: 16px;
}

.portfolio-pnl-profile-identity > span:last-child {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.portfolio-pnl-profile-identity small {
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.portfolio-pnl-profile-identity strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  font-weight: 550;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portfolio-pnl-profile-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.portfolio-pnl-profile-toggle input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--action);
}

.portfolio-pnl-profile-toggle:has(input:disabled) {
  color: var(--soft);
  cursor: not-allowed;
}

.portfolio-pnl-telegram-login {
  min-width: 0;
  min-height: 28px;
  display: flex;
  align-items: center;
}

.portfolio-pnl-telegram-login:empty {
  display: none;
}

.portfolio-pnl-telegram-login iframe {
  max-width: 100%;
}

.portfolio-pnl-telegram-login-state {
  color: var(--soft);
  font-size: 12px;
  line-height: 1.4;
}

.portfolio-pnl-telegram-login-retry {
  min-height: 30px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: transparent;
  color: var(--ink);
  padding: 5px 10px;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.portfolio-pnl-telegram-login-retry:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.portfolio-pnl-telegram-login-retry:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 2px;
}

.portfolio-pnl-preview {
  position: relative;
  min-width: 0;
  /* The generated card is square, so sizing it off the container width made it
     as tall as the workspace is wide and pushed the download and share actions
     below the fold. Deriving the size from the viewport height instead keeps
     the whole card, and the actions under it, on one screen. */
  width: min(100%, max(280px, calc(100vh - 380px)), 620px);
  width: min(100%, max(280px, calc(100dvh - 380px)), 620px);
  min-height: 0;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  margin-inline: auto;
  border: 1px solid #2a3547;
  border-radius: 6px;
  background: #020813;
}

body.pnl-active .footer {
  display: none;
}

.portfolio-pnl-card-instant,
.portfolio-pnl-card-image {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  display: block;
}

.portfolio-pnl-card-image {
  object-fit: contain;
}

.portfolio-pnl-card-instant {
  overflow: hidden;
  background: #f1f4f7;
}

.portfolio-pnl-card-instant > svg {
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

.portfolio-pnl-card-display {
  font-family: "Arial Narrow", "Roboto Condensed", "Noto Sans KR", Arial, sans-serif;
  font-stretch: condensed;
}

.portfolio-pnl-card-result {
  font-family: "Arial Rounded MT Bold", "Trebuchet MS", "Noto Sans KR", sans-serif;
  letter-spacing: 0.01em;
}

.portfolio-pnl-empty,
.portfolio-pnl-loading {
  max-width: 470px;
  display: grid;
  justify-items: center;
  gap: 11px;
  color: #8590a1;
  padding: 28px;
  text-align: center;
}

.portfolio-pnl-empty img,
.portfolio-pnl-empty .theme-brand-mark {
  width: 128px;
  height: 60px;
  object-fit: contain;
  opacity: 0.2;
}

.portfolio-pnl-empty strong {
  color: #c7d0dc;
  font-size: 13px;
}

.portfolio-pnl-empty span,
.portfolio-pnl-loading span {
  font-size: 13px;
  line-height: 1.55;
}

.portfolio-pnl-loading svg {
  width: 24px;
  height: 24px;
  color: #149cff;
  animation: settlement-spin 0.9s linear infinite;
}

.portfolio-pnl-status {
  min-height: 22px;
  display: flex;
  align-items: center;
  color: #758093;
  font-size: 12px;
}

.portfolio-pnl-status:not(.error):not(.warning):not(.ready) {
  font-size: 0;
}

.portfolio-pnl-status.ready {
  font-size: 12px;
}

.portfolio-pnl-status.error,
.portfolio-pnl-status.warning {
  min-height: 36px;
}

.portfolio-pnl-status.error {
  color: #ff6a82;
}

.portfolio-pnl-status.warning {
  color: #e7ad50;
}

.portfolio-pnl-actions {
  display: flex;
  justify-content: flex-end;
  gap: 24px;
}

.portfolio-pnl-actions button {
  min-width: 194px;
  min-height: 44px;
  border-radius: 6px;
  font-size: 12px;
}

.portfolio-pnl-actions .primary-button {
  min-width: 226px;
}

.locale-short {
  display: none;
}

.theme-switcher:not(.locale-switcher) button span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (min-width: 1360px) {
  .sidebar-toggle {
    position: absolute;
    top: 79px;
    right: -22px;
    z-index: 5;
    display: inline-flex;
  }

  .global-header {
    overflow: visible;
  }

  .header-inner {
    position: relative;
    height: auto;
    min-height: 100%;
    padding-bottom: 22px;
  }

  /* Opening and closing the rail glides instead of jumping. The class is
     added a frame after boot so the restored state never animates. */
  .app-shell.sidebar-animated {
    transition: grid-template-columns 300ms cubic-bezier(0.22, 0.61, 0.36, 1);
  }

  .app-shell.sidebar-animated .global-header {
    transition: width 300ms cubic-bezier(0.22, 0.61, 0.36, 1);
  }

  .app-shell.sidebar-animated .header-inner {
    transition: padding 300ms cubic-bezier(0.22, 0.61, 0.36, 1);
  }

  .app-shell.sidebar-animated .brand img,
  .app-shell.sidebar-animated .brand .theme-brand-mark,
  .app-shell.sidebar-animated .hub-sidebar-profile-link > img,
  .app-shell.sidebar-animated .hub-sidebar-profile-link > svg {
    transition: width 300ms cubic-bezier(0.22, 0.61, 0.36, 1), height 300ms cubic-bezier(0.22, 0.61, 0.36, 1);
  }

  .app-shell.sidebar-animated .global-nav {
    transition: gap 300ms ease, margin-top 300ms ease;
  }

  .app-shell.sidebar-animated .global-nav a {
    transition: color 140ms ease, grid-template-columns 300ms cubic-bezier(0.22, 0.61, 0.36, 1), padding 300ms cubic-bezier(0.22, 0.61, 0.36, 1);
  }

  .app-shell.sidebar-animated .sidebar-toggle {
    transition: top 300ms cubic-bezier(0.22, 0.61, 0.36, 1), border-color 140ms ease, background-color 140ms ease, color 140ms ease;
  }

  /* Labels fade rather than blink away: the discrete display change waits for
     the fade to finish. Browsers without allow-discrete simply keep today's
     instant swap. */
  .app-shell.sidebar-animated .brand-row b,
  .app-shell.sidebar-animated .global-nav a span,
  .app-shell.sidebar-animated .global-nav-badge,
  .app-shell.sidebar-animated .theme-switcher,
  .app-shell.sidebar-animated .sidebar-meta,
  .app-shell.sidebar-animated .sidebar-wallet-control .wallet-button span,
  .app-shell.sidebar-animated .sidebar-wallet-control .wallet-chevron,
  .app-shell.sidebar-animated .hub-sidebar-account-heading,
  .app-shell.sidebar-animated .hub-sidebar-profile-link > span,
  .app-shell.sidebar-animated .hub-sidebar-profile > button {
    transition: opacity 170ms ease, display 260ms allow-discrete;
  }

  .app-shell.sidebar-collapsed {
    --sidebar-width: 72px;
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .app-shell.sidebar-collapsed .global-header {
    width: 72px;
  }

  .app-shell.sidebar-collapsed .header-inner {
    padding: 24px 10px 18px;
  }

  .app-shell.sidebar-collapsed .brand {
    width: 100%;
    justify-content: center;
    padding: 0;
  }

  .app-shell.sidebar-collapsed .brand img,
  .app-shell.sidebar-collapsed .brand .theme-brand-mark {
    width: 48px;
    height: 28px;
  }

  .app-shell.sidebar-collapsed .brand-row b,
  .app-shell.sidebar-collapsed .global-nav a span,
  .app-shell.sidebar-collapsed .global-nav-badge,
  .app-shell.sidebar-collapsed .theme-switcher,
  .app-shell.sidebar-collapsed .sidebar-meta {
    display: none;
    opacity: 0;
  }

  /* Collapsed rail keeps the member reachable: just the round avatar. */
  .app-shell.sidebar-collapsed .hub-sidebar-tools { padding: 8px 0; }
  .app-shell.sidebar-collapsed .hub-sidebar-account-heading,
  .app-shell.sidebar-collapsed .hub-sidebar-profile-link > span,
  .app-shell.sidebar-collapsed .hub-sidebar-profile > button,
  .app-shell.sidebar-collapsed .hub-sidebar-account-loading,
  .app-shell.sidebar-collapsed .hub-sidebar-mobile-login,
  .app-shell.sidebar-collapsed .hub-sidebar-login-retry {
    display: none;
    opacity: 0;
  }
  .app-shell.sidebar-collapsed .hub-sidebar-account,
  .app-shell.sidebar-collapsed .hub-sidebar-profile {
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
  }
  .app-shell.sidebar-collapsed .hub-sidebar-profile-link {
    justify-content: center;
    padding: 4px;
    margin: 0;
  }
  .app-shell.sidebar-collapsed .hub-sidebar-profile-link > img,
  .app-shell.sidebar-collapsed .hub-sidebar-profile-link > svg {
    width: 34px;
    height: 34px;
  }

  .app-shell.sidebar-collapsed .sidebar-toggle {
    top: 56px;
    right: -22px;
  }

  .app-shell.sidebar-collapsed .sidebar-toggle-collapse {
    display: none;
  }

  .app-shell.sidebar-collapsed .sidebar-toggle-expand {
    display: block;
  }

  .app-shell.sidebar-collapsed .global-nav {
    gap: 8px;
    margin-top: 42px;
  }

  .app-shell.sidebar-collapsed .global-nav a {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 0;
  }

  .app-shell.sidebar-collapsed .sidebar-wallet-control {
    width: 100%;
    margin-top: auto;
  }

  .app-shell.sidebar-collapsed .sidebar-wallet-control .wallet-button {
    min-width: 0;
    padding: 0;
  }

  .app-shell.sidebar-collapsed .sidebar-wallet-control .wallet-button span,
  .app-shell.sidebar-collapsed .sidebar-wallet-control .wallet-chevron {
    display: none;
    opacity: 0;
  }

  .app-shell.sidebar-collapsed .sidebar-wallet-control .wallet-menu {
    left: calc(100% + 10px);
  }
}

@media (max-width: 1359px) {
  .header-inner {
    padding: 24px 10px 18px;
  }

  .brand {
    width: 100%;
    justify-content: center;
    padding: 0;
  }

  .brand img,
  .brand .theme-brand-mark {
    width: 48px;
    height: 28px;
  }

  .global-nav {
    gap: 8px;
    margin-top: 42px;
  }

  .global-nav a {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 0;
  }

  .global-nav-badge {
    display: none;
  }

  .global-nav a span,
  .brand > small,
  .brand-row b,
  .sidebar-meta {
    display: none;
  }

  .theme-switcher,
  .sidebar-wallet-control,
  .hub-sidebar-tools {
    width: 52px;
    align-self: center;
  }

  .sidebar-wallet-control .wallet-button {
    min-width: 0;
    padding: 0;
  }

  .sidebar-wallet-control .wallet-button span,
  .sidebar-wallet-control .wallet-chevron {
    display: none;
  }

  .sidebar-wallet-control .wallet-menu {
    left: calc(100% + 10px);
  }

  .locale-switcher .locale-long {
    display: none;
  }

  .locale-switcher .locale-short {
    display: inline;
  }

  .page {
    grid-column: 2;
    padding-right: 28px;
    padding-left: 28px;
  }

  .portfolio-pnl-form {
    grid-template-columns: minmax(300px, 1.6fr) minmax(190px, 0.8fr);
    gap: 18px;
  }

  .portfolio-pnl-form-actions {
    grid-column: 1 / -1;
    width: 100%;
    padding-top: 0;
  }

  .portfolio-pnl-account {
    grid-template-columns: minmax(220px, 1fr) auto;
  }

  .portfolio-pnl-account-wallets {
    grid-column: 1 / -1;
    grid-row: 2;
    border-top: 1px solid var(--line);
    padding-top: 10px;
  }

  .portfolio-pnl-wallet-target {
    grid-template-columns: minmax(250px, 1fr) auto;
  }

  .portfolio-pnl-wallet-target p {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .portfolio-pnl-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portfolio-pnl-asset {
    grid-template-columns: 54px minmax(180px, 1fr) minmax(105px, 0.55fr) minmax(150px, 0.8fr) max-content;
  }

  .portfolio-pnl-collection-option-label {
    grid-template-columns: 54px minmax(180px, 1fr) minmax(105px, 0.55fr) minmax(150px, 0.8fr);
  }

  .portfolio-pnl-summary > div:nth-child(3) {
    border-left: 0;
  }

  .portfolio-pnl-summary > div:nth-child(-n + 2) {
    border-bottom: 1px solid #263244;
  }
}

@media (min-width: 761px) and (max-width: 1040px) {
  .global-nav {
    flex: 0 0 auto;
    overflow: visible;
    border-top: 0;
  }
}

/* Keep the PnL query controls inside the content column before the sidebar
   collapses at 1359px. */
@media (min-width: 1360px) and (max-width: 1404px) {
  .portfolio-pnl-form {
    grid-template-columns: minmax(300px, 1.6fr) minmax(190px, 0.8fr);
    gap: 18px;
  }

  .portfolio-pnl-form-actions {
    grid-column: 1 / -1;
    width: 100%;
    padding-top: 0;
  }
}

@media (max-width: 760px) {
  .app-shell {
    width: 100%;
    display: block;
    border-right: 0;
    border-left: 0;
    padding-bottom: calc(74px + env(safe-area-inset-bottom, 0px));
  }

  .app-shell::before {
    content: "";
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 69;
    height: calc(64px + env(safe-area-inset-top, 0px));
    border-bottom: 1px solid #1b2433;
    background: rgba(3, 9, 24, 0.98);
  }

  .global-header {
    position: fixed;
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: calc(70px + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    padding-right: env(safe-area-inset-right, 0px);
    padding-left: env(safe-area-inset-left, 0px);
    border-top: 1px solid #253143;
    border-right: 0;
    background: rgba(3, 9, 24, 0.98);
  }

  .header-inner {
    height: 70px;
    min-height: 0;
    display: block;
    padding: 0;
  }

  .hub-sidebar-tools {
    display: none;
  }

  .brand {
    position: fixed;
    top: env(safe-area-inset-top, 0px);
    left: env(safe-area-inset-left, 0px);
    z-index: 75;
    width: 100px;
    height: 64px;
    justify-items: start;
    padding: 18px 14px;
    background: rgba(3, 9, 24, 0.98);
  }

  .brand img,
  .brand .theme-brand-mark {
    width: 55px;
    height: 28px;
  }

  .global-nav {
    height: 70px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin: 0;
    overflow: visible;
    border-top: 0;
  }

  .global-nav a {
    min-height: 70px;
    grid-template-columns: 1fr;
    grid-template-rows: 24px 18px;
    justify-items: center;
    align-content: center;
    gap: 2px;
    border-top: 2px solid transparent;
    border-left: 0;
    border-radius: 0;
    padding: 8px 3px 7px;
    font-size: 12px;
  }

  .global-nav a > svg {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    justify-self: center;
  }

  .global-nav a span {
    grid-column: 1;
    grid-row: 2;
    display: block;
    max-width: 100%;
    text-align: center;
  }

  .global-nav-badge {
    display: block;
    position: absolute;
    top: 8px;
    right: calc(50% - 25px);
    width: 7px;
    min-width: 0;
    height: 7px;
    overflow: hidden;
    border-radius: 50%;
    background: var(--blue);
    font-size: 0;
  }

  .theme-switcher {
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + 10px);
    right: calc(110px + env(safe-area-inset-right, 0px));
    z-index: 76;
    width: 88px;
    margin: 0;
    background: var(--canvas);
  }

  .locale-switcher {
    top: calc(env(safe-area-inset-top, 0px) + 10px);
    right: max(14px, env(safe-area-inset-right, 0px));
    width: 88px;
    margin-top: 0;
  }

  .theme-switcher button {
    min-height: 44px;
    padding: 0 5px;
    font-size: 12px;
  }

  .global-nav a:hover,
  .global-nav a.active {
    border-top-color: transparent;
    border-left-color: transparent;
    background: transparent;
  }

  .sidebar-wallet-control {
    position: fixed;
    top: 12px;
    right: 14px;
    z-index: 76;
    width: 40px;
    margin: 0;
  }

  .sidebar-wallet-control .wallet-button {
    width: 40px;
    min-width: 40px;
    padding: 0;
  }

  .sidebar-wallet-control .wallet-button span {
    display: none;
  }

  .sidebar-wallet-control .wallet-menu {
    position: fixed;
    top: 58px;
    right: 14px;
    bottom: auto;
    left: auto;
    width: min(380px, calc(100vw - 28px));
    max-height: calc(100vh - 144px);
  }

  .page {
    width: 100%;
    min-height: calc(100dvh - 74px - env(safe-area-inset-bottom, 0px));
    padding: 0 max(14px, env(safe-area-inset-right, 0px)) 24px max(14px, env(safe-area-inset-left, 0px));
  }

  .pnl-workspace {
    padding-top: calc(74px + env(safe-area-inset-top, 0px));
  }

  .pnl-workspace-heading {
    display: block;
  }

  .pnl-workspace-heading h2 {
    font-size: 28px;
  }

  .portfolio-pnl-form {
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 22px;
  }

  .portfolio-pnl-address-row input,
  .portfolio-pnl-input-shell input,
  .portfolio-pnl-form > label > input,
  .portfolio-pnl-form select {
    font-size: 16px;
  }

  .portfolio-pnl-select-shell > svg {
    right: 18px;
  }

  .portfolio-pnl-member-gate {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 16px;
  }

  .portfolio-pnl-member-gate > i {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .portfolio-pnl-member-actions {
    grid-column: 1 / -1;
    width: 100%;
    justify-content: flex-start;
  }

  .portfolio-pnl-member-actions > a,
  .portfolio-pnl-member-actions > button {
    min-height: 44px;
  }

  .portfolio-pnl-asset-actions a,
  .portfolio-pnl-asset-card {
    width: 44px;
    min-height: 44px;
    height: 44px;
  }

  .portfolio-pnl-form-actions {
    grid-column: auto;
    padding-top: 0;
  }

  .pnl-profile-form input,
  .pnl-profile-form select {
    height: 44px;
    font-size: 16px;
  }

  .pnl-profile-form .primary-button,
  .pnl-profile-row-actions button,
  .portfolio-pnl-wallet-manage,
  .pnl-share-actions button,
  .pnl-share-control .segmented-control button,
  .pnl-share-toggle,
  .pnl-profile-dialog .icon-button,
  .pnl-share-dialog .icon-button {
    min-height: 44px;
  }

  .portfolio-pnl-account {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px;
  }

  .portfolio-pnl-account-wallets {
    grid-column: auto;
    grid-row: auto;
    width: 100%;
    overflow-x: auto;
    border-top: 1px solid var(--line);
    padding-top: 11px;
    scrollbar-width: none;
  }

  .portfolio-pnl-wallet-manage {
    width: 100%;
  }

  .pnl-profile-dialog .icon-button,
  .pnl-share-dialog .icon-button {
    min-width: 44px;
  }

  .portfolio-pnl-wallet-target {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .portfolio-pnl-wallet-target label {
    grid-template-columns: 1fr;
  }

  .portfolio-pnl-wallet-target p {
    grid-column: auto;
    grid-row: auto;
  }

  .portfolio-pnl-wallet-target button {
    justify-self: start;
  }

  .portfolio-pnl-context {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 10px 0;
  }

  .portfolio-pnl-assets {
    margin-bottom: 18px;
  }

  .portfolio-pnl-assets > header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .portfolio-pnl-assets-meta {
    width: 100%;
    justify-content: space-between;
  }

  .portfolio-pnl-selection {
    gap: 9px;
  }

  .portfolio-pnl-collection-option {
    grid-template-columns: 20px minmax(0, 1fr) 32px;
    gap: 10px;
    padding: 12px 14px;
  }

  .portfolio-pnl-collection-option-label {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 11px;
  }

  .portfolio-pnl-collection-option-label > img {
    width: 48px;
    height: 48px;
  }

  .portfolio-pnl-collection-option-label .portfolio-pnl-asset-chain {
    display: none;
  }

  .portfolio-pnl-collection-option-label .portfolio-pnl-asset-floor {
    grid-column: 2;
    margin-top: -3px;
  }

  .portfolio-pnl-collection-option-label .portfolio-pnl-asset-floor span {
    display: none;
  }

  .portfolio-pnl-asset {
    grid-template-columns: 54px minmax(0, 1fr) max-content;
    gap: 11px;
    padding: 12px 14px;
  }

  .portfolio-pnl-asset-chain,
  .portfolio-pnl-asset-floor {
    grid-column: 2;
  }

  .portfolio-pnl-asset-chain {
    display: none;
  }

  .portfolio-pnl-asset-floor {
    margin-top: -3px;
  }

  .portfolio-pnl-asset-floor span {
    display: none;
  }

  .portfolio-pnl-asset-actions {
    grid-column: 3;
    grid-row: 1 / span 2;
    flex-direction: column;
    align-items: flex-end;
  }

  .portfolio-pnl-asset-card span {
    display: none;
  }

  .portfolio-pnl-asset-card {
    width: 44px;
    justify-content: center;
    padding: 0;
  }

  .portfolio-pnl-summary > div {
    padding: 16px;
  }

  .portfolio-pnl-personalization {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .portfolio-pnl-profile-identity {
    flex-basis: 100%;
  }

  .portfolio-pnl-profile-identity strong {
    white-space: normal;
  }

  .portfolio-pnl-telegram-login {
    margin-left: auto;
  }

  .portfolio-pnl-preview {
    min-height: 0;
  }

  .portfolio-pnl-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .portfolio-pnl-actions button,
  .portfolio-pnl-actions .primary-button {
    min-width: 0;
    width: 100%;
  }

  .footer {
    display: none;
  }
}

@media (max-width: 350px) {
  .brand {
    width: 80px;
    padding-right: 12px;
    padding-left: 12px;
  }

  .brand img,
  .brand .theme-brand-mark {
    width: 48px;
  }

  .theme-switcher {
    right: 104px;
  }

  .locale-switcher {
    right: 8px;
  }

  .global-nav a {
    padding-right: 1px;
    padding-left: 1px;
    font-size: 12px;
  }

  .portfolio-pnl-form-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) and (max-height: 450px) and (orientation: landscape) {
  .app-shell {
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  }

  .app-shell::before {
    height: calc(56px + env(safe-area-inset-top, 0px));
  }

  .global-header {
    height: calc(60px + env(safe-area-inset-bottom, 0px));
  }

  .header-inner,
  .global-nav {
    height: 60px;
  }

  .global-nav a {
    min-height: 60px;
    padding-top: 4px;
    padding-bottom: 3px;
  }

  .brand {
    height: 56px;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .theme-switcher,
  .locale-switcher {
    top: calc(env(safe-area-inset-top, 0px) + 6px);
  }

  .page {
    min-height: calc(100dvh - 64px - env(safe-area-inset-bottom, 0px));
  }

  .pnl-workspace {
    padding-top: calc(62px + env(safe-area-inset-top, 0px));
  }
}

@media (max-width: 350px) {
  .portfolio-pnl-summary {
    grid-template-columns: 1fr;
  }

  .portfolio-pnl-summary > div + div,
  .portfolio-pnl-summary > div:nth-child(3) {
    border-top: 1px solid #263244;
    border-left: 0;
  }

  .portfolio-pnl-summary > div:nth-child(-n + 2) {
    border-bottom: 0;
  }

  .portfolio-pnl-actions {
    grid-template-columns: 1fr;
  }
}

.sbt-reduced-poster {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .sbt-preview > video {
    display: none;
  }

  .sbt-reduced-poster {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
  }
}

@media (max-width: 720px) {
  .portfolio-pnl-member-gate {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .portfolio-pnl-member-gate > div:first-of-type {
    flex: 1 1 calc(100% - 52px);
  }

  .portfolio-pnl-member-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

:where(body:not(.legal-page)) :where(input, select, textarea):disabled:not(.active) {
  border-color: var(--disabled-line);
  background: var(--disabled-bg);
  color: var(--disabled-fg);
  cursor: not-allowed;
  opacity: 1;
}

:where(body:not(.legal-page)) :where(button, a):is(:disabled, [aria-disabled="true"]):not(.active) {
  border-color: var(--disabled-line);
  background: var(--disabled-bg);
  color: var(--disabled-fg);
  cursor: not-allowed;
  opacity: 1;
}

:where(body:not(.legal-page)) :where(button, a)[aria-disabled="true"] {
  pointer-events: none;
}

:where(body:not(.legal-page)) :where(button, a):is(:disabled, [aria-disabled="true"]):not(.portfolio-pnl-submit) {
  cursor: not-allowed;
}

:where(body:not(.legal-page)) .portfolio-pnl-submit:disabled {
  cursor: wait;
}

/* Arc Mainnet USDC bridge */
.arc-usdc-page {
  width: min(1180px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 30px 0 72px;
}

.arc-usdc-toolbar,
.arc-usdc-heading,
.arc-usdc-card-heading,
.arc-usdc-quote-row,
.arc-usdc-recovery-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.arc-usdc-toolbar {
  min-height: 44px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 34px;
  padding-bottom: 14px;
}

.arc-usdc-beta-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  color: var(--soft);
  font-size: 12px;
  font-weight: 500;
}

.arc-usdc-beta-badge small {
  color: var(--soft);
  font-size: 13px;
}

.arc-usdc-beta-badge strong {
  color: var(--blue);
  font-size: 12px;
  font-weight: 650;
}

.arc-usdc-heading {
  align-items: flex-start;
  gap: 24px;
}

.arc-usdc-heading h2 {
  margin: 5px 0 8px;
  color: var(--ink);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.arc-usdc-heading > div > span {
  display: block;
  max-width: 700px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.arc-usdc-safety-mark {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--green-line);
  padding: 9px 12px;
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
}

.arc-usdc-danger {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 18px;
  border: 1px solid rgba(255, 61, 82, 0.72);
  margin: 28px 0 0;
  padding: 18px 20px;
  background: rgba(125, 13, 30, 0.18);
  box-shadow: inset 0 0 38px rgba(255, 32, 65, 0.055);
}

.arc-usdc-danger-label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: #ff5265;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.arc-usdc-danger-label svg {
  width: 18px;
  height: 18px;
}

.arc-usdc-danger strong,
.arc-usdc-danger p,
.arc-usdc-danger > div > span {
  display: block;
}

.arc-usdc-danger strong {
  color: #ff8491;
  font-size: 15px;
}

.arc-usdc-danger p {
  margin: 7px 0 4px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.55;
}

.arc-usdc-danger > div > span {
  color: #d99ca4;
  font-size: 13px;
  line-height: 1.55;
}

.arc-usdc-danger + .arc-usdc-not-faucet {
  margin-top: 14px;
}

.arc-usdc-not-faucet {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 12px;
  border-top: 1px solid var(--warning-line, #755728);
  border-bottom: 1px solid var(--warning-line, #755728);
  margin: 28px 0 0;
  padding: 15px 2px;
  color: var(--warning, #f6b84a);
}

.arc-usdc-not-faucet svg {
  margin-top: 2px;
}

.arc-usdc-not-faucet strong,
.arc-usdc-not-faucet span {
  display: block;
}

.arc-usdc-not-faucet strong {
  margin-bottom: 3px;
  color: var(--ink);
  font-size: 12px;
}

.arc-usdc-not-faucet span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.arc-usdc-route {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) minmax(150px, 0.9fr) minmax(170px, 1fr);
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
}

.arc-usdc-route > div:not(.arc-usdc-route-line) {
  display: grid;
  gap: 3px;
}

.arc-usdc-route > div:last-child {
  text-align: right;
}

.arc-usdc-route span,
.arc-usdc-route small {
  color: var(--soft);
  font-size: 12px;
}

.arc-usdc-route strong {
  color: var(--ink);
  font-size: 17px;
}

.arc-usdc-route-line {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
}

.arc-usdc-route-line i {
  height: 1px;
  background: linear-gradient(90deg, var(--line), var(--blue));
}

.arc-usdc-route-line i:last-child {
  background: linear-gradient(90deg, var(--blue), var(--line));
}

.arc-usdc-route-line span {
  color: var(--blue);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.arc-usdc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(310px, 0.75fr);
  gap: 20px;
  margin-top: 26px;
}

.arc-usdc-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--canvas);
}

.arc-usdc-form {
  padding: 24px;
}

.arc-usdc-card-heading {
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 17px;
}

.arc-usdc-card-heading span {
  color: var(--soft);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.arc-usdc-card-heading h2 {
  margin: 3px 0 0;
  color: var(--ink);
  font-size: 17px;
  letter-spacing: -0.02em;
}

.arc-usdc-amount-field {
  display: grid;
  gap: 9px;
  margin-top: 23px;
}

.arc-usdc-amount-field > span,
.arc-usdc-recipient > span {
  color: var(--soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.arc-usdc-amount-field > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  border: 1px solid var(--control-border);
  background: var(--subtle);
}

.arc-usdc-amount-field input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 15px 16px;
  color: var(--ink);
  font: inherit;
  font-size: 22px;
  font-weight: 700;
}

.arc-usdc-amount-field input:focus-visible {
  box-shadow: inset 0 -1px 0 var(--blue);
}

.arc-usdc-amount-field b {
  padding: 0 16px;
  color: var(--blue);
  font-size: 12px;
}

.arc-usdc-amount-field small,
.arc-usdc-recipient small,
.arc-usdc-signature-note,
.arc-usdc-legal {
  color: var(--soft);
  font-size: 12px;
  line-height: 1.55;
}

.arc-usdc-recipient {
  display: grid;
  gap: 6px;
  border-bottom: 1px solid var(--line);
  margin-top: 19px;
  padding-bottom: 18px;
}

.arc-usdc-recipient strong {
  overflow: hidden;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.arc-usdc-fees {
  display: grid;
  gap: 0;
  margin-top: 12px;
}

.arc-usdc-fees > div,
.arc-usdc-balances > div:not(.arc-usdc-card-heading) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 11px 0;
}

.arc-usdc-fees span,
.arc-usdc-balances > div > span {
  color: var(--muted);
  font-size: 13px;
}

.arc-usdc-fees strong,
.arc-usdc-balances > div > strong {
  color: var(--ink);
  font-size: 13px;
  text-align: right;
}

.arc-usdc-fees .arc-usdc-received {
  border-bottom: 0;
  padding-top: 14px;
}

.arc-usdc-fees .arc-usdc-received strong {
  color: var(--green);
  font-size: 15px;
}

.arc-usdc-quote-row {
  min-height: 38px;
  gap: 12px;
  border-top: 1px solid var(--line);
  margin-top: 4px;
  color: var(--soft);
  font-size: 12px;
}

.arc-usdc-quote-row button,
.arc-usdc-card-heading button,
.arc-usdc-recovery-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.arc-usdc-quote-row button:hover,
.arc-usdc-card-heading button:hover,
.arc-usdc-recovery-actions button:hover {
  color: var(--blue);
}

.arc-usdc-primary {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--action);
  border-radius: 4px;
  margin-top: 12px;
  background: var(--action);
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.arc-usdc-primary:hover:not(:disabled) {
  border-color: var(--blue);
  background: var(--blue);
}

.arc-usdc-primary.bridge-paused:disabled {
  border: 1px solid rgba(255, 61, 82, 0.6);
  background: rgba(125, 13, 30, 0.24);
  color: #ff8491;
}

.arc-usdc-signature-note {
  margin: 11px 0 0;
  text-align: center;
}

.arc-usdc-side {
  display: grid;
  align-content: start;
  gap: 14px;
}

.arc-usdc-balances,
.arc-usdc-progress-card {
  padding: 20px;
}

.arc-usdc-balances .arc-usdc-card-heading,
.arc-usdc-progress-card .arc-usdc-card-heading {
  margin-bottom: 8px;
}

.arc-usdc-status {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 11px;
  padding: 15px 0 8px;
}

.arc-usdc-status-icon {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  color: var(--blue);
}

.arc-usdc-status.pending .arc-usdc-status-icon svg,
.arc-usdc-status .lucide-loader-circle {
  animation: settlement-spin 1s linear infinite;
}

.arc-usdc-status.success .arc-usdc-status-icon {
  border-color: var(--green-line);
  color: var(--green);
}

.arc-usdc-status.warning .arc-usdc-status-icon {
  border-color: var(--red-line);
  color: var(--red);
}

.arc-usdc-status strong,
.arc-usdc-status p,
.arc-usdc-status a,
.arc-usdc-status > div > span {
  display: block;
}

.arc-usdc-status strong {
  color: var(--ink);
  font-size: 12px;
}

.arc-usdc-status p {
  margin: 5px 0 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.arc-usdc-status a,
.arc-usdc-status > div > span {
  margin-top: 5px;
  color: var(--blue);
  font-size: 13px;
  text-decoration: none;
}

.arc-usdc-status code {
  color: inherit;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.arc-usdc-recovery-actions {
  gap: 10px;
  border-top: 1px solid var(--line);
  margin-top: 8px;
  padding-top: 13px;
}

.arc-usdc-recovery-actions button:last-child {
  color: var(--warning, #f6b84a);
}

.arc-usdc-guardrails {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.arc-usdc-guardrails > div {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  background: var(--subtle);
  padding: 10px;
  color: var(--muted);
  font-size: 13px;
}

.arc-usdc-guardrails svg {
  flex: 0 0 auto;
  color: var(--green);
}

.arc-usdc-legal {
  max-width: 800px;
  margin: 24px auto 0;
  text-align: center;
}

.arc-usdc-legal a {
  color: var(--blue);
}

@media (max-width: 980px) {
  .arc-usdc-layout {
    grid-template-columns: 1fr;
  }

  .arc-usdc-side {
    grid-template-columns: 1fr 1fr;
  }

  .arc-usdc-guardrails {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .global-nav {
    grid-template-columns: repeat(auto-fit, minmax(46px, 1fr));
  }

  .global-nav a span[data-mobile-label] {
    font-size: 0;
  }

  .global-nav a span[data-mobile-label]::after {
    content: attr(data-mobile-label);
    font-size: 13px;
  }

  .arc-usdc-page {
    min-height: calc(100vh - 74px);
    padding: 74px 0 30px;
  }

  .arc-usdc-toolbar {
    margin-bottom: 24px;
  }

  .arc-usdc-heading {
    display: block;
  }

  .arc-usdc-danger {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 16px;
  }

  .arc-usdc-safety-mark {
    margin-top: 16px;
  }

  .arc-usdc-route {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .arc-usdc-route > div:last-child {
    text-align: left;
  }

  .arc-usdc-route-line {
    width: 70%;
  }

  .arc-usdc-side {
    grid-template-columns: 1fr;
  }

  .arc-usdc-guardrails {
    grid-column: auto;
  }

  .arc-usdc-form,
  .arc-usdc-balances,
  .arc-usdc-progress-card {
    padding: 17px;
  }
}

@media (max-width: 390px) {
  .arc-usdc-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .arc-usdc-guardrails {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .arc-usdc-status.pending .arc-usdc-status-icon svg,
  .arc-usdc-status .lucide-loader-circle {
    animation: none;
  }
}

.hub-sidebar-tools.hidden + .theme-switcher {
  margin-top: auto;
}

html[data-theme="light"] .global-header {
  border-color: var(--line-strong);
  background: #f8fafc;
}

html[data-theme="light"] {
  --theme-brand-mark-image: url("/assets/arcdu-duo-mark-light.png");
}

html[data-theme="light"] .sidebar-toggle {
  border-color: #c3cfde;
  background: #ffffff;
  color: #52627a;
  box-shadow: 0 5px 14px rgba(35, 49, 70, 0.16);
}

html[data-theme="light"] .sidebar-toggle:hover {
  border-color: #8ea4bf;
  background: #f1f5f9;
  color: #122642;
}

html[data-theme="light"] .sidebar-toggle:focus-visible {
  border-color: #3268d6;
  color: #122642;
}

html[data-theme="light"] .brand,
html[data-theme="light"] .brand b {
  color: var(--ink);
}

html[data-theme="light"] .global-nav a {
  color: #5e6b7e;
}

html[data-theme="light"] .global-nav a svg {
  color: #738096;
}

html[data-theme="light"] .global-nav a:hover {
  color: #24344a;
}

html[data-theme="light"] .global-nav a:hover svg {
  color: #3268d6;
}

html[data-theme="light"] .global-nav a.active,
html[data-theme="light"] .global-nav a:focus-visible {
  color: #122642;
}

html[data-theme="light"] .global-nav a.active svg {
  color: #3268d6;
}

html[data-theme="light"] .sidebar-wallet-control .wallet-button,
html[data-theme="light"] .sidebar-wallet-control .wallet-menu {
  border-color: var(--line-strong);
  background: #ffffff;
  color: var(--ink);
}

html[data-theme="light"] .sidebar-wallet-control .wallet-menu {
  box-shadow: 0 20px 50px rgba(35, 49, 70, 0.16);
}

@media (max-width: 760px) {
  html[data-theme="light"] .global-header {
    border-top-color: var(--line-strong);
    background: rgba(248, 250, 252, 0.98);
  }

  html[data-theme="light"] .brand {
    background: rgba(248, 250, 252, 0.98);
  }

  html[data-theme="light"] .app-shell::before {
    border-bottom-color: var(--line-strong);
    background: rgba(248, 250, 252, 0.98);
  }
}

/* AlphaDuo degen layer — docs/design-language.md */
@media (min-width: 761px) {
  .locale-switcher {
    margin-top: 8px;
  }
}

.brand {
  gap: 6px;
}

.brand .brand-row {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
}

.brand > small {
  text-transform: none;
  letter-spacing: 0.04em;
  padding-left: 2px;
}

.header-inner {
  overflow-y: auto;
  scrollbar-width: none;
}

.header-inner::-webkit-scrollbar {
  display: none;
}

.brand img,
.brand .theme-brand-mark {
  filter: drop-shadow(0 0 10px rgba(56, 140, 255, 0.4));
}

@media (min-width: 1360px) {
  .header-inner {
    overflow: visible;
  }
}

.empty-profile-copy h2,
.mint-panel h2,
.arc-usdc-heading h2,
.pnl-workspace-heading h2 {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  width: fit-content;
}

.empty-connect-button,
.mint-primary-button,
.arc-usdc-primary,
.primary-button,
.portfolio-pnl-submit,
.search-button {
  background: linear-gradient(120deg, var(--action), var(--brand-indigo));
  transition: box-shadow 0.18s ease, transform 0.18s ease, filter 0.18s ease;
}

.empty-connect-button:hover:not(:disabled),
.mint-primary-button:hover:not(:disabled),
.arc-usdc-primary:hover:not(:disabled),
.primary-button:hover:not(:disabled),
.portfolio-pnl-submit:hover:not(:disabled),
.search-button:hover:not(:disabled) {
  background: linear-gradient(120deg, var(--action-hover), var(--brand-indigo));
  box-shadow: var(--glow);
  transform: translateY(-1px);
}

.positive,
.portfolio-pnl-summary strong.positive,
.activity-summary-metric strong.positive,
.activity-value-cell strong.positive {
  text-shadow: 0 0 14px var(--pnl-glow);
}

.nft-row,
.collection-card,
.mint-signal-row {
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.nft-row:hover,
.collection-card:hover,
.mint-signal-row:hover {
  transform: translateY(-1px);
  border-color: var(--blue-line);
}

.degen-ticker {
  display: flex;
  align-items: center;
  min-height: 34px;
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--subtle);
  overflow: hidden;
}

.degen-ticker.hidden {
  display: none;
}

.degen-ticker-label {
  flex: 0 0 auto;
  padding: 0 12px;
  border-right: 1px solid var(--line);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.degen-ticker-viewport {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}

.degen-ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding: 0 28px 0 14px;
  white-space: nowrap;
  width: max-content;
  animation: degen-marquee 45s linear infinite;
  will-change: transform;
}

.degen-ticker:hover .degen-ticker-track {
  animation-play-state: paused;
}

.degen-ticker-item {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

.degen-ticker-item b {
  color: var(--ink);
  font-weight: 600;
}

.degen-ticker-item .up {
  color: var(--green);
}

@keyframes degen-marquee {
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .degen-ticker-track {
    animation: none;
  }

  .degen-ticker-viewport {
    overflow-x: auto;
  }

  .nft-row:hover,
  .collection-card:hover,
  .mint-signal-row:hover,
  .empty-connect-button:hover:not(:disabled),
  .mint-primary-button:hover:not(:disabled),
  .arc-usdc-primary:hover:not(:disabled),
  .primary-button:hover:not(:disabled),
  .portfolio-pnl-submit:hover:not(:disabled),
  .search-button:hover:not(:disabled) {
    transform: none;
  }
}

/* Touch targets: pointer-coarse devices get at least 44px interactive height. */
@media (pointer: coarse) {
  .theme-switcher button {
    min-height: 44px;
  }

  .portfolio-pnl-member-actions > a,
  .portfolio-pnl-member-actions > button,
  .portfolio-pnl-asset-actions a,
  .portfolio-pnl-asset-card,
  .pnl-share-control .segmented-control button,
  .pnl-share-toggle {
    min-height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .toast,
  .app-shell.sidebar-animated,
  .app-shell.sidebar-animated .global-header,
  .app-shell.sidebar-animated .header-inner,
  .app-shell.sidebar-animated .brand img,
  .app-shell.sidebar-animated .brand .theme-brand-mark,
  .app-shell.sidebar-animated .global-nav,
  .app-shell.sidebar-animated .global-nav a,
  .app-shell.sidebar-animated .sidebar-toggle,
  .app-shell.sidebar-animated .global-nav a span,
  .app-shell.sidebar-animated .sidebar-meta {
    transition: none;
  }
}

/* The title area every page shares: kicker, title, optional badge, optional
   one-line note, optional actions on the right. */
.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 22px;
  padding: 28px 0 18px;
  border-bottom: 1px solid var(--line);
}

.page-heading > div:first-child {
  min-width: 0;
}

.page-heading-kicker {
  margin: 0 0 7px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.page-heading h1,
.page-heading h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(26px, 2.4vw, 34px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.page-heading-badge {
  border: 1px solid var(--blue-line);
  border-radius: 999px;
  color: var(--blue);
  padding: 3px 9px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.page-heading-note {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.page-heading-actions {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-heading-actions a,
.page-heading-actions button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.page-heading-actions a:hover,
.page-heading-actions button:hover {
  border-color: var(--control-border);
  color: var(--ink);
}

.page-heading-actions svg {
  width: 14px;
  height: 14px;
}

@media (max-width: 760px) {
  .page-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}

/* The profile entry lives in the sidebar account block on wide layouts; once
   the sidebar goes away the nav carries it instead — and only for members,
   since logged-out visitors have nothing to see on /profile. The generic
   `.global-nav a` layout rules outrank a lone class, so the hidden states
   need !important; a member's entry inherits the sibling layout untouched. */
.global-nav-profile:not(.has-session) {
  display: none !important;
}

@media (min-width: 1041px) {
  .global-nav-profile {
    display: none !important;
  }
}

.global-nav-profile-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
}

.global-nav-profile.has-avatar > i,
.global-nav-profile.has-avatar > svg {
  display: none;
}
