@import url('boss-v2.css');
:root {
  color-scheme: dark;
  --bg: #101b19;
  --panel: #182723;
  --panel-2: #1d2e29;
  --input: #11201c;
  --line: #33443a;
  --text: #f0f0dc;
  --muted: #aab5a4;
  --gold: #ebcb67;
  --green: #c4d5b6;
  --radius: 24px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background:
    radial-gradient(ellipse at 8% 0, rgba(99, 130, 102, 0.13), transparent 48%), var(--bg);
  color: var(--text);
  font-family: Inter, 'Microsoft YaHei', system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  min-width: 280px;
}
body::before,
body::after {
  display: none;
}
[hidden] {
  display: none !important;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 18px;
  background: transparent;
  color: var(--text);
  line-height: 1.4;
}
button:disabled {
  cursor: default;
  opacity: 0.45;
}
button:not(:disabled):hover {
  border-color: var(--gold);
  background-color: rgba(235, 203, 103, 0.06);
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}
.shell {
  width: min(1120px, calc(100% - 64px));
  margin-inline: auto;
}
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  gap: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
}
.brand img {
  width: 32px;
  height: 32px;
}
.brand strong {
  font-size: 25px;
  letter-spacing: -1px;
}
.brand > span {
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--muted);
  border-left: 1px solid var(--line);
  padding-left: 13px;
  margin-left: 5px;
}
.wallet-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.gold,
.primary-button {
  background: var(--gold);
  color: #19211a;
  border: none;
  font-weight: 650;
}
.gold {
  border-radius: 30px;
  padding: 12px 22px;
}
.link-button {
  border: none;
  padding: 8px;
  color: var(--muted);
  font-size: 12px;
}
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  padding: 34px 0 29px;
}
.eyebrow {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 2.5px;
  color: var(--gold);
  margin: 0 0 8px;
}
.page-head h1 {
  font-size: 36px;
  line-height: 1.25;
  margin: 0;
  letter-spacing: -1px;
}
.page-head h1 > span {
  color: var(--gold);
}
.page-subtitle {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.head-tools {
  display: flex;
  align-items: center;
  gap: 15px;
}
.status {
  font-size: 11px;
  color: var(--muted);
}
.refresh-button {
  border-radius: 50%;
  font-size: 21px;
  line-height: 1;
  width: 39px;
  height: 39px;
  padding: 0;
}
.inline-notice {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 12px 16px;
  border-radius: 12px;
  color: var(--gold);
  font-size: 12px;
}
.trading-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.13fr);
  gap: 32px;
  align-items: start;
}
.market-aside {
  display: grid;
  gap: 20px;
}
.market-card,
.wallet-card,
.workspace-card,
.invite-card,
.data-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.market-card {
  padding: 29px 30px;
  background:
    radial-gradient(ellipse at 0 100%, rgba(184, 205, 143, 0.1), transparent 75%), var(--panel);
}
.market-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
}
.market-label > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.market-label > div > span {
  font-size: 19px;
  font-weight: 650;
}
.market-label small {
  font-size: 8px;
  letter-spacing: 1.8px;
  color: var(--muted);
}
.chain-badge {
  margin-left: auto;
  font-size: 10px;
  color: var(--green);
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 20px;
  white-space: nowrap;
}
.metric-label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 7px;
}
.market-price {
  display: block;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.35;
  letter-spacing: -1px;
  font-weight: 550;
  margin: 10px 0 16px;
  overflow-wrap: anywhere;
}
.tax-pill {
  display: inline-flex;
  border: 1px solid #536046;
  background: rgba(189, 202, 136, 0.06);
  padding: 5px 10px;
  border-radius: 20px;
  color: var(--green);
  font-size: 11px;
  margin: 0;
}
.market-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 27px;
  margin-top: 30px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #b5c98f;
  box-shadow: 0 0 12px rgba(181, 201, 143, 0.25);
}
.wallet-card {
  padding: 25px 30px;
}
.section-heading,
.card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.section-heading h2,
.card-heading h2 {
  font-size: 20px;
  font-weight: 550;
  letter-spacing: -0.5px;
  margin: 0;
}
.address-pill,
.subtle-tag {
  font-size: 10px;
  color: var(--green);
  border: 1px solid var(--line);
  border-radius: 25px;
  padding: 5px 10px;
  white-space: nowrap;
}
.asset-stat {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 21px;
}
.asset-stat > span {
  font-size: 12px;
  color: var(--muted);
}
.asset-stat strong {
  font-size: 19px;
  font-weight: 500;
  overflow-wrap: anywhere;
  text-align: right;
}
.fine,
.aside-note,
.secure-note {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
}
.wallet-card > .fine {
  border-top: 1px solid var(--line);
  margin: 20px 0 0;
  padding-top: 15px;
}
.aside-note {
  padding: 0 12px;
  max-width: 380px;
  margin: 0;
}
.workspace-card {
  overflow: hidden;
  box-shadow: 0 15px 60px rgba(0, 0, 0, 0.1);
}
.workspace-tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  padding: 9px;
  gap: 5px;
  background: #14231e;
}
.workspace-tabs button {
  flex: 1;
  border: none;
  font-size: 12px;
  padding: 13px 5px;
  border-radius: 11px;
  color: var(--muted);
  white-space: nowrap;
}
.workspace-tabs [aria-selected='true'] {
  color: var(--text);
  background: #2c3b2c;
}
.workspace-card [role='tabpanel'] {
  padding: 27px 30px 25px;
}
.card-heading {
  margin-bottom: 24px;
}
.card-heading .eyebrow {
  margin-bottom: 4px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 19px;
}
label,
.field-label {
  font-size: 12px;
  color: var(--muted);
}
input,
select {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--input);
  color: var(--text);
  border-radius: 11px;
  padding: 12px 14px;
  outline: none;
}
input::placeholder {
  color: #778775;
  opacity: 1;
}
select {
  margin-top: 6px;
  padding-right: 24px;
}
.token-input {
  position: relative;
  background: var(--input);
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 15px 17px;
  transition: border-color 0.15s;
}
.token-input:focus-within {
  border-color: #7d8862;
}
.token-input-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 10px;
  color: var(--muted);
}
.token-input-body {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  margin: 6px 0;
}
.token-input-body input {
  border: 0;
  background: transparent;
  box-shadow: none !important;
  outline: 0;
  padding: 0;
  font-size: 29px;
  line-height: 1.4;
  font-weight: 450;
  letter-spacing: -0.6px;
}
.token-symbol {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  flex-shrink: 0;
}
.token-input .max-button {
  font-size: 9px;
  padding: 3px 8px;
  border-radius: 7px;
  color: var(--gold);
  margin-top: 2px;
  min-height: 25px;
}
.direction-divider {
  display: flex;
  justify-content: center;
  height: 20px;
  position: relative;
  z-index: 1;
}
.direction-divider button {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--panel);
  border: 4px solid var(--panel);
  padding: 0;
  line-height: 1;
  font-size: 24px;
  position: relative;
  top: -9px;
  color: var(--green);
}
.output-box {
  padding-top: 18px;
}
.output-box strong {
  font-size: 29px;
  font-weight: 450;
  letter-spacing: -0.8px;
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.output-box .fine {
  font-size: 10px;
}
.trade-settings {
  margin: 17px 0 0;
  border-bottom: 1px solid var(--line);
  padding: 0 0 13px;
}
.trade-settings summary {
  cursor: pointer;
  font-size: 11px;
  color: var(--green);
  display: flex;
  justify-content: space-between;
  gap: 15px;
}
.trade-settings summary::after {
  content: '⌄';
}
.trade-settings[open] summary::after {
  content: '⌃';
}
.trade-settings summary > span {
  color: var(--muted);
  margin-left: auto;
  font-size: 10px;
}
.inline-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 15px;
}
.inline-field > span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.inline-field input {
  width: 77px;
  padding: 8px 9px;
  text-align: right;
}
.preset-row {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
  margin-top: 9px;
}
.preset-row button {
  font-size: 10px;
  padding: 5px 11px;
}
.quote-details {
  margin: 15px 0 0;
}
.quote-details > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 11px 0;
  font-size: 12px;
}
.quote-details dt {
  color: var(--muted);
}
.quote-details dd {
  margin: 0;
  text-align: right;
  overflow-wrap: anywhere;
}
.form-hint {
  font-size: 11px;
  line-height: 1.8;
  color: var(--muted);
  margin: 15px 0;
  min-height: 19px;
}
.primary-button,
.secondary-button {
  width: 100%;
  padding: 15px 16px;
  border-radius: 13px;
  font-size: 13px;
  min-height: 49px;
}
.primary-button:not(:disabled):hover,
.gold:not(:disabled):hover {
  background: #f3d57d;
  color: #19211a;
}
.secondary-button {
  background: transparent;
  margin-bottom: 10px;
}
.quote-refresh {
  display: block;
  border: none;
  font-size: 10px;
  padding: 8px;
  margin: 3px auto -4px;
  color: var(--muted);
}
.form-intro {
  font-size: 12px;
  color: var(--muted);
  margin: -11px 0 23px;
}
.pair-divider {
  text-align: center;
  color: var(--green);
  padding: 7px;
  font-size: 20px;
}
.secure-note {
  text-align: center;
  margin: 13px 0 0;
  font-size: 10px;
}
.percentage-row {
  display: flex;
  gap: 9px;
  margin: 13px 0 21px;
}
.percentage-row button {
  flex: 1;
  font-size: 11px;
  padding: 9px 10px;
}
.exit-details {
  border: 1px solid var(--line);
  background: var(--input);
  border-radius: 13px;
  padding: 7px 16px;
}
.invite-card {
  padding: 30px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  background: linear-gradient(110deg, #23352a, #182723 62%);
}
.invite-copy h2 {
  font-size: 27px;
  font-weight: 500;
  margin: 7px 0;
}
.invite-copy > p:not(.eyebrow) {
  font-size: 12px;
  color: var(--muted);
}
.invite-meta {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-top: 27px;
  font-size: 11px;
  color: var(--muted);
}
.invite-meta strong {
  margin-left: 10px;
  color: var(--green);
  font-weight: 500;
}
.invite-action {
  min-width: 0;
}
.invite-link {
  overflow-wrap: anywhere;
  font-size: 12px;
  padding: 13px 15px;
  background: var(--input);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin: 8px 0 13px;
  min-height: 48px;
}
.invite-action > .gold {
  width: 100%;
  font-size: 12px;
}
.invite-action form input {
  margin: 8px 0 12px;
}
.invite-action .primary-button {
  margin-top: 0;
}
.invite-action .fine {
  margin-bottom: 0;
}
.community-section {
  margin-top: 30px;
}
.community-section > .section-heading {
  margin-bottom: 17px;
}
.team-total {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
}
.team-total span {
  font-size: 10px;
  color: var(--muted);
}
.team-total strong {
  font-size: 19px;
  color: var(--gold);
  font-weight: 500;
}
.data-card {
  padding: 25px 28px;
}
.data-card h3 {
  font-size: 15px;
  margin: 0;
  font-weight: 500;
}
.table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 17px;
}
.search-field {
  width: 220px;
}
.search-field input {
  font-size: 11px;
  padding: 10px 13px;
}
.table-scroll {
  width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  text-align: left;
}
thead {
  color: var(--muted);
  font-size: 10px;
}
th {
  font-weight: 400;
  white-space: nowrap;
}
th,
td {
  padding: 15px 9px;
  border-bottom: 1px solid var(--line);
}
td {
  white-space: nowrap;
}
th:first-child,
td:first-child {
  padding-left: 0;
}
th:last-child,
td:last-child {
  text-align: right;
  padding-right: 0;
}
.table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
}
.table-footer p {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
}
.pagination {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 11px;
}
.pagination button {
  padding: 5px 11px;
}
.ranking-card {
  margin-top: 23px;
}
.record-link {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #14211d;
}
.record-link > span:first-child {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.record-link strong {
  font-size: 13px;
  font-weight: 500;
}
.record-link small {
  font-size: 11px;
  color: var(--muted);
}
.record-link > span:last-child {
  color: var(--gold);
  font-size: 19px;
}
.rewards-hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 23px;
}
.rewards-hero .market-card,
.rewards-hero .wallet-card {
  height: 100%;
}
.text-link {
  font-size: 12px;
  color: var(--gold);
}
.reward-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 13px;
}
.reward-grid article {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  background: var(--panel);
}
.reward-grid article > span {
  display: block;
  font-size: 11px;
  color: var(--muted);
}
.reward-grid strong {
  display: block;
  font-size: 24px;
  font-weight: 500;
  margin-top: 13px;
  overflow-wrap: anywhere;
}
.breakdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 20px 0;
}
.breakdown article {
  display: flex;
  flex-direction: column;
  font-size: 11px;
  color: var(--muted);
  padding: 10px;
}
.breakdown strong {
  font-size: 16px;
  color: var(--text);
  margin-top: 6px;
}
.delivery-card {
  max-width: 620px;
  margin: 12px auto;
}
.delivery-card h2 {
  font-size: 23px;
  font-weight: 500;
  margin: 10px 0 25px;
}
.delivery-card .fine {
  margin: 25px 0;
}
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 0 130px;
  margin-top: 15px;
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--muted);
}
.footer a {
  letter-spacing: 0;
  color: var(--green);
}
.bottom-navigation {
  position: fixed;
  z-index: 20;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(18px + env(safe-area-inset-bottom));
  width: 340px;
  max-width: calc(100vw - 28px);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 23px;
  background: rgba(36, 51, 40, 0.95);
  border: 1px solid #536046;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(16px);
}
.bottom-navigation a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 47px;
  border-radius: 16px;
  font-size: 11px;
  color: var(--muted);
}
.bottom-navigation [aria-current='page'] {
  background: var(--gold);
  color: #1a261c;
}
.bottom-navigation svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.transaction-status {
  position: fixed !important;
  z-index: 100;
  inset: 94px 22px auto auto !important;
  left: auto !important;
  transform: none !important;
  width: min(420px, calc(100vw - 32px)) !important;
  max-width: calc(100vw - 32px) !important;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: wrap;
  background: #2a3b2e;
  color: var(--text);
  border: 1px solid #66724b;
  border-radius: 16px;
  padding: 17px 48px 17px 18px;
  box-shadow: 0 15px 50px #0005;
  overflow-wrap: anywhere;
  font-size: 12px;
}
.transaction-status a {
  color: var(--gold);
  font-size: 11px;
}
.toast-close {
  position: absolute;
  right: 9px;
  top: 9px;
  padding: 2px 6px;
  border: 0;
  font-size: 20px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (min-width: 1200px) {
  .market-card {
    min-height: 297px;
  }
  .workspace-card {
    max-width: 580px;
  }
}
@media (max-width: 760px) {
  .shell {
    width: calc(100% - 36px);
  }
  .site-header {
    padding: 20px 0;
  }
  .brand > span {
    display: none;
  }
  .brand strong {
    font-size: 23px;
  }
  .brand img {
    width: 29px;
    height: 29px;
  }
  .gold {
    padding: 10px 16px;
    font-size: 11px;
  }
  .page-head {
    padding: 25px 0 22px;
    align-items: flex-start;
    gap: 10px;
  }
  .page-head h1 {
    font-size: 27px;
  }
  .page-subtitle {
    font-size: 11px;
    margin-top: 8px;
  }
  .head-tools {
    gap: 8px;
    flex-shrink: 0;
    padding-top: 5px;
  }
  .status {
    font-size: 9px;
    max-width: 100px;
    text-align: right;
  }
  .refresh-button {
    width: 30px;
    height: 30px;
    font-size: 19px;
  }
  .trading-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .market-aside {
    gap: 12px;
  }
  .market-card {
    padding: 20px 22px;
  }
  .market-label {
    margin-bottom: 20px;
    gap: 10px;
  }
  .market-label img {
    width: 30px;
    height: 30px;
  }
  .market-label small {
    font-size: 7px;
  }
  .market-label > div > span {
    font-size: 17px;
  }
  .market-price {
    font-size: 28px;
    margin: 8px 0 12px;
  }
  .market-foot {
    display: none;
  }
  .market-aside > .wallet-card {
    padding: 17px 21px;
  }
  .wallet-card .section-heading h2 {
    font-size: 15px;
  }
  .asset-stat {
    margin-top: 13px;
  }
  .asset-stat strong {
    font-size: 17px;
  }
  .market-aside .wallet-card > .fine,
  .aside-note {
    display: none;
  }
  .workspace-card [role='tabpanel'] {
    padding: 23px 21px;
  }
  .workspace-tabs {
    padding: 7px;
    gap: 2px;
  }
  .workspace-tabs button {
    font-size: 11px;
  }
  .card-heading {
    margin-bottom: 20px;
  }
  .card-heading h2 {
    font-size: 20px;
  }
  .token-input-body input,
  .output-box strong {
    font-size: 27px;
  }
  .form-row {
    gap: 11px;
  }
  .token-input {
    padding: 14px 15px;
  }
  .token-input-head {
    font-size: 9px;
  }
  .token-symbol {
    font-size: 13px;
  }
  .invite-card {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 23px;
  }
  .invite-copy h2 {
    font-size: 23px;
  }
  .invite-meta {
    margin-top: 18px;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 15px;
  }
  .community-section {
    margin-top: 25px;
  }
  .team-total {
    padding: 8px 11px;
    gap: 10px;
  }
  .team-total strong {
    font-size: 16px;
  }
  .section-heading h2 {
    font-size: 19px;
  }
  .data-card {
    padding: 20px;
  }
  .table-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .search-field {
    width: 100%;
  }
  .table-footer {
    align-items: flex-start;
  }
  .table-footer p {
    max-width: 65%;
    font-size: 10px;
  }
  .record-link {
    padding: 18px 20px;
  }
  .rewards-hero {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .rewards-hero .wallet-card {
    padding: 22px;
  }
  .reward-grid {
    grid-template-columns: 1fr 1fr;
    gap: 11px;
  }
  .reward-grid article {
    padding: 17px;
  }
  .reward-grid strong {
    font-size: 21px;
  }
  .breakdown {
    grid-template-columns: 1fr 1fr;
  }
  .footer {
    padding-bottom: 125px;
    font-size: 8px;
    gap: 12px;
  }
  .transaction-status {
    inset: 82px 16px auto auto !important;
  }
  .delivery-card {
    margin-top: 0;
  }
}
@media (max-width: 350px) {
  .shell {
    width: calc(100% - 28px);
  }
  .page-head h1 {
    font-size: 23px;
  }
  .page-head {
    gap: 5px;
  }
  .status {
    max-width: 74px;
    font-size: 8px;
  }
  .workspace-card [role='tabpanel'] {
    padding: 20px 16px;
  }
  .market-card {
    padding: 19px;
  }
  .token-input-body input,
  .output-box strong {
    font-size: 24px;
  }
  .token-input-head {
    font-size: 8px;
  }
  .subtle-tag {
    font-size: 9px;
    padding: 4px 8px;
  }
  .bottom-navigation {
    bottom: calc(12px + env(safe-area-inset-bottom));
  }
  .bottom-navigation a {
    min-height: 43px;
  }
  .wallet-actions {
    gap: 2px;
  }
  .link-button {
    font-size: 9px;
  }
  .brand {
    gap: 7px;
  }
  .brand strong {
    font-size: 21px;
  }
  .brand img {
    width: 25px;
    height: 25px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* Keep the primary action close to the top on narrow screens. */
@media (max-width: 760px) {
  .market-aside > .market-card {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 4px 12px;
    padding: 16px 20px;
  }
  .market-aside .market-label {
    display: none;
  }
  .market-aside > .market-card > .metric-label {
    grid-column: 1;
    margin: 0;
    font-size: 10px;
  }
  .market-aside > .market-card > .market-price {
    grid-column: 1;
    margin: 0;
    font-size: 25px;
  }
  .market-aside > .market-card > .tax-pill {
    grid-column: 2;
    grid-row: 1 / span 2;
    font-size: 9px;
  }
  .market-aside > .wallet-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    padding: 13px 20px;
  }
  .market-aside > .wallet-card > .section-heading {
    display: none;
  }
  .market-aside > .wallet-card > .asset-stat {
    flex-direction: column;
    gap: 3px;
    margin: 0;
  }
  .market-aside .asset-stat strong {
    text-align: left;
  }
  .market-aside .asset-stat > span {
    font-size: 10px;
  }
  .market-aside {
    gap: 10px;
  }
}

/* Wallet balances are assets, not an internal cash or withdrawable-credit account. */
.wallet-assets-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}
.wallet-assets-grid article {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  min-width: 0;
}
.wallet-assets-grid article > span {
  font-size: 12px;
  color: var(--muted);
}
.wallet-assets-grid strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 29px;
  font-weight: 500;
  margin: 14px 0;
}
.asset-mini-action {
  font-size: 10px;
  padding: 5px 9px;
  color: var(--gold);
}
.asset-shortcuts {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 20px 0 0;
}
.asset-shortcuts > a {
  font-size: 12px;
  color: var(--green);
}
.primary-link {
  display: inline-flex;
  background: var(--gold);
  padding: 12px 22px;
  border-radius: 12px;
  color: #17251c !important;
  font-weight: 600;
}
.asset-shortcuts span {
  margin-left: 8px;
  color: var(--text);
}
#binding-dialog {
  border: 1px solid #596249;
  border-radius: 26px;
  background: #1c2c25;
  color: var(--text);
  width: min(440px, calc(100vw - 36px));
  padding: 30px;
  box-shadow: 0 30px 100px #0008;
}
#binding-dialog:not([open]) {
  display: none;
}
#binding-dialog::backdrop {
  background: #07100ddb;
  backdrop-filter: blur(7px);
}
#binding-dialog h2 {
  font-size: 26px;
  font-weight: 550;
  margin: 10px 0;
}
.binding-mark {
  margin-bottom: 20px;
}
.binding-description {
  font-size: 12px;
  color: var(--muted);
  margin: 8px 0 22px;
}
#binding-form input {
  margin-top: 8px;
}
#binding-form .fine {
  min-height: 19px;
}
.binding-tools {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}
.binding-tools button {
  font-size: 11px;
  border: none;
  padding: 6px;
  color: var(--muted);
}
.bottom-navigation {
  width: 400px;
}
.bottom-navigation a {
  gap: 6px;
}
.binding-needed {
  display: block;
  color: var(--gold);
  font-size: 11px;
  margin-top: 9px;
}
@media (max-width: 760px) {
  .wallet-assets-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .wallet-assets-grid article {
    padding: 20px;
  }
  .wallet-assets-grid strong {
    font-size: 23px;
  }
  .asset-shortcuts {
    gap: 15px;
    align-items: flex-start;
  }
  .asset-shortcuts > a {
    font-size: 11px;
  }
  .bottom-navigation a {
    gap: 5px;
  }
  .bottom-navigation svg {
    width: 18px;
    height: 18px;
  }
  .bottom-navigation {
    gap: 4px;
    padding: 7px;
  }
  #binding-dialog {
    padding: 25px;
  }
  .bottom-navigation a {
    font-size: 10px;
  }
}
@media (max-width: 350px) {
  .bottom-navigation a {
    flex-direction: column;
    gap: 3px;
    font-size: 9px;
    padding: 5px 0;
  }
  .wallet-assets-grid article {
    padding: 16px;
  }
  .wallet-assets-grid strong {
    font-size: 20px;
  }
  .asset-shortcuts {
    flex-direction: column;
    gap: 12px;
  }
}

#binding-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}
#binding-form input {
  width: 100%;
  min-width: 0;
  height: 48px;
  flex: none;
}
#binding-message {
  margin: 12px 0 16px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
#binding-dialog {
  max-height: calc(100dvh - 32px);
  overflow: auto;
}

.claim-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 24px 0;
}
.claim-summary article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #1b2b25;
}
.claim-summary span {
  font-size: 11px;
  color: var(--muted);
}
.claim-summary strong {
  display: block;
  font-size: 28px;
  margin-top: 18px;
}
.assets-overview #claim-rewards {
  width: 100%;
  max-width: 340px;
}
@media (max-width: 350px) {
  .claim-summary {
    gap: 10px;
  }
  .claim-summary article {
    padding: 15px;
  }
  .claim-summary strong {
    font-size: 23px;
  }
}
