:root {
  --bg: #0e1210;
  --card: #191f1b;
  --field: #202722;
  --line: #354038;
  --fg: #f2f5f0;
  --muted: #b4bdb6;
  --lime: #c3fa82;
}
body {
  background: radial-gradient(ellipse 760px 440px at 76% 110px, #1c2a2080, transparent 82%), var(--bg);
  -webkit-font-smoothing: antialiased;
}
body::selection, body *::selection { background: #bbec8c; color: #132211; }
.promo { background: linear-gradient(100deg, #aee476, #c8fa94 49%, #aee476); }
.top { background: #111713e8; border-color: #2b352e; }
.navwrap { gap: clamp(24px, 4vw, 58px); }
.navwrap .brand, .foot-logo { letter-spacing: -.065em; }
.navwrap nav {
  align-items: center;
  height: auto;
  gap: 3px;
  border: 1px solid #303a32;
  border-radius: 14px;
  padding: 4px;
  background: #141b16;
}
.navwrap .nav-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 13px;
  border: 0;
  border-radius: 9px;
  color: #b6c1b7;
  line-height: 1.35;
  font-size: .84rem;
}
.nav-item > .ico { width: 16px; height: 16px; }
.navwrap .nav-item.active { background: #303e30; color: #d9f5c3; box-shadow: inset 0 0 0 1px #405140; }
.navwrap .nav-item:not(.active):hover { background: #212c23; color: #f2f7f0; }
.header-wallet, .legal-page .legal-back, .community-home {
  background: #222c23;
  border: 1px solid #4b5e49;
  border-radius: 11px;
}
.page-title { position: relative; isolation: isolate; }
.page-title h1 {
  font-size: clamp(2.65rem, 4vw, 3.75rem);
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -.063em;
}
.page-title p { color: #b3beb5; }
.quote-status { background: #131a15; border-color: #38473a; padding: 7px 12px; }
.quote-status.live i { box-shadow: 0 0 0 3px #91d96914, 0 0 8px #bafa7855; }
.workspace { gap: clamp(15px, 1.65vw, 25px); }
.card, #markets .analytics-card {
  background: linear-gradient(155deg, #1e2620, #191f1b 42%, #171e19);
  border-color: #364139;
  border-radius: 20px;
  box-shadow: 0 7px 20px -15px #000b, inset 0 1px 0 #ffffff05;
}
.trade-card { padding: clamp(16px, 1.7vw, 25px); }
.mode-rail { border-color: #354037; border-radius: 13px; background: #111813; }
.mode { border-radius: 9px; min-height: 36px; }
.mode.active { color: #e1f5d0; background: #354334; box-shadow: inset 0 1px 0 #ffffff0e, 0 1px 4px #0003; }
.icon-button { border: 1px solid #364239; color: #c4d0c4; background: #222b24; border-radius: 10px; }
.icon-button:hover { background: #2c392e; }
.amount-box {
  border: 1px solid #39453c;
  border-radius: 15px;
  background: linear-gradient(115deg, #232b25, #202720);
  transition: border-color .18s;
}
.amount-box:last-child { background: linear-gradient(115deg, #232e24, #1f2821); border-color: #3a483a; }
.amount-box:focus-within { border-color: #91b47a; }
.amount-top { color: #c4cec5; }
.amount-main input, .amount-main output { font-weight: 570; letter-spacing: -.06em; }
.amount-foot, .exchange-rate { color: #b0beb2; }
.chain-button { border-radius: 7px; padding: 3px 5px; color: #d0d8d0; }
.chain-button:hover { background: #ffffff0c; }
.token-button {
  min-height: 43px;
  border-color: #4c594e;
  color: #f4f7f1;
  background: #343f36;
  box-shadow: 0 1px 5px #0002, inset 0 1px 0 #ffffff08;
}
.token-button:hover { background: #404e42; }
.reverse { background: #344237; border-color: #536151; border-radius: 12px; z-index: 1; }
.reverse:hover .ico { transform: rotate(180deg); }
.reverse .ico { transition: transform .2s; }
.trade-card > .primary {
  min-height: 50px;
  border-radius: 12px;
  border: 1px solid #d5ffa440;
  background: linear-gradient(104deg, #cef99a, #b7f47a);
  box-shadow: inset 0 1px 0 #ffffff30, 0 3px 12px -8px #b8f87a90;
}
.trade-card > .primary:disabled { border-color: #435042; background: #30392e; box-shadow: none; }
.route-head { padding-block: 15px; }
.route-head h2 { gap: 9px; }
.route-head .icon-button { width: 32px; height: 32px; }
.route-symbol, .activity-emblem {
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid #43533f;
  color: var(--lime);
  background: #253323;
}
.route-symbol { width: 33px; height: 33px; }
.route-head h2 .ico { width: 18px; height: 18px; }
.route-art { height: 182px; min-height: 182px; border-color: #354537; }
.art-token {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 7px 3px 4px;
  border-radius: 20px;
  background: #142117ec;
  border-color: #526b4c;
  box-shadow: 0 2px 9px #070b07a0;
  font-size: .65rem;
  line-height: 1;
  letter-spacing: .01em;
}
.art-token .coin { width: 16px; height: 16px; }
.art-token > span:last-child { overflow: hidden; text-overflow: ellipsis; }
.art-b { transform: translate(-50%, -35px); }
.route-data { padding-block: 9px 8px; }
.route-data > div + div { border-top: 1px solid #3e4d402e; }
#provider, .provider-mark { display: inline-flex; align-items: center; }
#provider { gap: 7px; }
.provider-mark {
  justify-content: center;
  flex: none;
  width: 21px;
  height: 21px;
  overflow: hidden;
  border-radius: 6px;
  background: #344135;
}
.provider-mark img { display: block; width: 100%; height: 100%; object-fit: contain; }
.provider-mark .ico { color: #cde8bb; width: 65%; height: 65%; }
.routes-btn { min-height: 40px; background: #252f27; border-color: #414f41; border-radius: 10px; }
.routes-btn:hover:not(:disabled) { background: #303d30; }
.networks { border-color: #324035; }
.network { color: #d4ddd4; }
.market-section, #markets { margin-block: clamp(36px, 4.3vw, 64px); }
.section-title h2, #markets .section-title h2 { font-size: clamp(1.75rem, 2.7vw, 2.55rem); font-weight: 660; letter-spacing: -.054em; }
#markets .analytics-head, .feed-head { background: #20292166; border-color: #334036; }
#markets .market-network-hero { background: radial-gradient(ellipse at 95% 0%, #344e35, #233426 55%, #1b281d); }
#markets .market-network-hero > strong { letter-spacing: -.054em; }
.feed-filter button, .market-refresh, #markets .market-refresh,
#markets #asset-network { border-radius: 9px; }
#transactions .data-source { flex-wrap: wrap; }
#alert-method { margin-left: auto; }
#dialog { border: 1px solid #465548; border-radius: 20px; background: #1a211c; box-shadow: 0 30px 100px #000a; }
#dialog::backdrop { background: #070d0ac2; backdrop-filter: blur(4px); }
#dialog[data-kind='routes'] .choice { column-gap: 10px; }
#dialog[data-kind='routes'] .provider-mark { width: 32px; height: 32px; border-radius: 9px; }
#dialog .choice.chosen { background: #293a29; border-color: #50664b; }
.activity-emblem { width: 52px; height: 52px; border-radius: 16px; margin-bottom: 3px; }
.activity-emblem .ico { width: 24px; height: 24px; }
.site-footer { background: linear-gradient(175deg, #161e17, #101612 68%); border-top-color: #334035; }
.site-footer .foot-col a:hover, .site-footer .foot-col button:hover { color: #d4f4b8; }
.legal-page .legal-toc, .legal-page .legal-article, .community-panel {
  border-color: #354438;
  background: linear-gradient(155deg, #1d271f, #171e19 65%);
}
.legal-page .legal-toc h2 { color: #d6eacb; }
#admin-view .admin-card { border-color: #39473c; }
#admin-view .admin-card-head h2 { letter-spacing: -.034em; }
@media (max-width: 870px) {
  .navwrap { gap: 16px; }
  .navwrap .nav-item { padding-inline: 9px; }
}
@media (min-width: 561px) and (max-width: 760px) {
  .route-art { height: 160px; min-height: 160px; }
  .route-data { padding-top: 1px; }
  .route-head { padding-block: 10px; }
  .navwrap .nav-item > .ico { display: none; }
}
@media (max-width: 560px) {
  .navwrap { padding-block: 10px; row-gap: 10px; }
  .navwrap nav { flex: 1 0 100%; width: 100%; gap: 3px; padding: 3px; border-radius: 12px; }
  .navwrap .nav-item { flex: 1; min-height: 35px; gap: 6px; padding: 5px 3px; }
  .nav-item > .ico { width: 14px; height: 14px; }
  .page-title h1 { font-size: clamp(1.94rem, 8.6vw, 2.7rem); }
  .page-title p { font-size: .85rem; }
  .card, #markets .analytics-card { border-radius: 16px; }
  .trade-card { padding: 13px; }
  .token-button { min-height: 37px; }
  .route-head { min-height: 54px; padding-block: 9px; }
  .route-art { height: 160px; min-height: 160px; }
  .route-data > div { min-height: 32px; }
  #dialog[data-kind='routes'] .provider-mark { width: 25px; height: 25px; }
  #dialog[data-kind='routes'] .choice { column-gap: 7px; padding-inline: 7px; }
  .legal-page .legal-nav, .community-page .community-header { padding-block: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .reverse:hover .ico { transform: none; }
}
