:root {
  color-scheme: dark;
  --bg: #151515;
  --panel: #232323;
  --panel-hover: #292929;
  --line: #333333;
  --text: #f2f2f2;
  --muted: #939393;
  --accent: #83dff1;
  --accent-hover: #a4eafa;
  --mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  font-family:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
  min-width: 320px;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
button,
input,
select {
  font: inherit;
}
button,
select {
  cursor: pointer;
}
button {
  border: 1px solid transparent;
  color: inherit;
  transition:
    background 0.15s,
    border-color 0.15s;
}
button:disabled {
  cursor: default;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
a {
  color: inherit;
  text-decoration: none;
}
input {
  color: inherit;
  min-width: 0;
}
input:focus {
  outline: none;
}
input[type='number'] {
  appearance: textfield;
}
input::-webkit-inner-spin-button,
input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input::placeholder {
  color: #797979;
  opacity: 1;
}
select {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 30px 10px 12px;
  color: var(--text);
  background: var(--panel);
}
header {
  min-height: 80px;
  display: flex;
  align-items: center;
  gap: 46px;
  padding: 18px 32px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 27px;
  font-weight: 750;
  letter-spacing: -0.9px;
  white-space: nowrap;
}
.logo {
  display: grid;
  grid-template-columns: repeat(2, 13px);
  gap: 3px;
  transform: rotate(-9deg);
}
.logo i {
  width: 13px;
  height: 13px;
  background: #eeeeee;
  border-radius: 3px;
}
.logo i:last-child {
  background: var(--accent);
}
nav {
  display: flex;
  gap: 5px;
}
nav button {
  background: none;
  color: var(--muted);
  font-size: 16px;
  padding: 10px 15px;
  border-radius: 12px;
}
nav button:hover,
nav button.active {
  color: var(--text);
  background: #242424;
}
.more-nav {
  position: relative;
  z-index: 50;
}
#more-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
}
#more-toggle > svg {
  width: 16px;
  height: 16px;
  transition: transform 0.15s;
}
#more-toggle[aria-expanded='true'] {
  color: var(--text);
  background: #242424;
}
#more-toggle[aria-expanded='true'] > svg {
  transform: rotate(180deg);
}
.more-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  width: 292px;
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 160px);
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid #363636;
  border-radius: 20px;
  padding: 6px 0;
  background: #1d1d1d;
  box-shadow: 0 16px 40px #0007;
}
.more-group {
  padding: 6px;
}
.more-group + .more-group {
  border-top: 1px solid #323232;
}
.more-menu [role='menuitem'] {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 0;
  background: transparent;
  color: #e5e5e5;
  font-size: 17px;
  font-weight: 500;
  text-align: left;
}
.more-menu [role='menuitem']:hover:not(:disabled),
.more-menu [role='menuitem']:focus-visible {
  color: #fff;
  background: #2b2b2b;
  outline: 1px solid #46595d;
  outline-offset: -1px;
}
.more-menu [role='menuitem'] > svg {
  width: 21px;
  height: 21px;
  flex-shrink: 0;
  color: #929292;
}
.more-menu [role='menuitem'] > .more-external {
  width: 16px;
  height: 16px;
  margin-left: auto;
  color: #777;
}
.more-menu [role='menuitem']:disabled {
  color: #888;
}
.more-menu [role='menuitem'] > small {
  margin-left: auto;
  font-size: 12px;
  color: #888;
  white-space: nowrap;
}
.more-info h2 {
  font-size: 30px;
}
#more-info-content {
  max-height: 55dvh;
  overflow-y: auto;
}
#more-info-content p {
  color: #b9b9b9;
  font-size: 16px;
  line-height: 1.8;
}
.header-tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: #a8c2c7;
  letter-spacing: 0.8px;
  white-space: nowrap;
}
.status::before,
.demo-dot {
  content: '';
  background: var(--accent);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  flex: 0 0 auto;
}
.languages {
  display: flex;
  gap: 2px;
}
.languages button {
  color: #8f8f8f;
  background: transparent;
  padding: 6px 8px;
  font-size: 14px;
  border-radius: 8px;
}
.languages button[aria-pressed='true'] {
  color: #eeeeee;
  background: #2b2b2b;
}
.wallet-button {
  background: #24373c;
  color: var(--accent);
  border-radius: 16px;
  padding: 12px 20px;
  font-size: 16px;
  font-weight: 600;
  max-width: 250px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.wallet-button:hover {
  background: #304a51;
}
.quiet,
.text-button {
  background: transparent;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 10px;
}
.quiet:hover,
.text-button:hover {
  color: var(--text);
  background: #292929;
}
.text-button {
  color: var(--accent);
}
.demo-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid #202020;
  border-bottom: 1px solid #242424;
  background: #191919;
}
.demo-bar select {
  font-size: 13px;
  padding: 4px 22px 4px 9px;
  border-radius: 7px;
  background: #252525;
}
.demo-bar .text-button {
  padding: 5px 10px;
  font-size: 13px;
}
.demo-bar .demo-dot {
  background: #d2ae63;
  width: 5px;
  height: 5px;
}
main {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  flex: 1;
  padding: 0 28px;
}
.notice {
  max-width: 750px;
  text-align: center;
  margin: 17px auto 0;
  color: #8f8f8f;
  font-size: 13px;
  line-height: 1.8;
}
.exchange-card {
  width: min(600px, 100%);
  margin: 20px auto 52px;
}
.swap-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 12px 16px;
  gap: 15px;
}
.tabs {
  display: flex;
  gap: 4px;
}
.tabs button {
  background: none;
  color: #8e8e8e;
  padding: 8px 13px;
  border-radius: 10px;
  font-size: 17px;
}
.tabs button.active {
  color: #f0f0f0;
}
.tabs button:hover {
  background: #252525;
}
.icon-button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: none;
  color: #a1a1a1;
  padding: 8px;
  border-radius: 12px;
}
.icon-button:hover,
.icon-button[aria-expanded='true'] {
  background: #2b2b2b;
  color: var(--text);
}
.icon-button svg {
  width: 25px;
  height: 25px;
}
#trade-fields {
  position: relative;
  display: grid;
  gap: 8px;
}
.amount-box {
  border-radius: 28px;
  padding: 24px 28px 22px;
  border: 1px solid transparent;
  background: var(--panel);
  min-width: 0;
}
.amount-box label {
  display: block;
  color: #929292;
  font-size: 14px;
  letter-spacing: 1.1px;
  font-weight: 600;
}
.amount-box:focus-within {
  border-color: #4f4f4f;
}
.amount-line {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 20px 0;
  min-width: 0;
}
.amount-line input {
  width: 100%;
  flex: 1 1 0;
  min-width: 0;
  border: 0;
  padding: 0;
  background: transparent;
  font-size: 46px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -1.5px;
  text-overflow: ellipsis;
}
.amount-line input:disabled {
  opacity: 1;
  -webkit-text-fill-color: #797979;
}
.amount-box.buy-box {
  background: transparent;
  border-color: #303030;
}
.amount-box.buy-box:focus-within {
  border-color: #555;
}
.amount-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: #8f8f8f;
  font-size: 14px;
  min-height: 24px;
}
.amount-meta > span:last-child {
  text-align: right;
}
.try-amount {
  border: 0;
  padding: 0;
  background: none;
  color: #999;
  text-align: left;
  white-space: nowrap;
}
.try-amount:hover {
  color: var(--accent);
}
.token-selector {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #242424;
  border: 1px solid #515151;
  border-radius: 40px;
  padding: 6px 13px 6px 7px;
  color: #f5f5f5;
  font-size: 21px;
  font-weight: 600;
  max-width: 60%;
  min-height: 48px;
}
.token-selector > span:not(.token-icon) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.token-selector:hover {
  background: #323232;
  border-color: #6e6e6e;
}
.token-selector svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}
.token-selector.unselected {
  background: var(--accent);
  color: #152328;
  border-color: transparent;
  padding: 11px 17px;
  border-radius: 18px;
  font-size: 19px;
}
.token-selector.unselected:hover {
  background: var(--accent-hover);
}
.token-icon {
  display: grid;
  place-items: center;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  font-size: 18px;
  color: hsl(var(--token-hue) 80% 85%);
  background: hsl(var(--token-hue) 40% 32%);
  font-weight: 700;
  flex: 0 0 auto;
}
.ckb-icon,
.swap-icon {
  background: transparent;
}
.ckb-icon img,
.swap-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: inherit;
}
.flip {
  position: absolute;
  top: calc(50% - 20px);
  left: calc(50% - 23px);
  width: 46px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 5px solid var(--bg);
  border-radius: 14px;
  background: #202020;
  color: #eee;
  z-index: 1;
  padding: 4px;
}
.flip:hover {
  background: #343434;
}
.flip svg {
  width: 22px;
  height: 22px;
}
.primary {
  color: #15282d;
  background: var(--accent);
  border-radius: 17px;
  padding: 16px 22px;
  font-weight: 600;
  font-size: 17px;
}
.primary:hover:not(:disabled) {
  background: var(--accent-hover);
}
.primary:disabled {
  color: #838383;
  background: #242424;
}
.wide {
  width: 100%;
}
#preview {
  margin-top: 18px;
  min-height: 66px;
  border-radius: 25px;
  font-size: 20px;
}
.fee-caption {
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  letter-spacing: 1.5px;
  color: #6db9c8;
  margin: 17px 0 13px;
}
.signing-note {
  color: #929292;
  font-size: 13px;
  line-height: 1.8;
  margin: 12px 0;
}
#signing-note,
#chain-note .signing-note {
  text-align: center;
}
.quote-details {
  margin: 18px 8px;
  font-size: 14px;
}
.quote-details summary {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: #bbb;
  cursor: pointer;
  list-style: none;
}
.quote-details summary::after {
  content: '\2304';
  color: var(--muted);
}
.quote-details summary::-webkit-details-marker {
  display: none;
}
#slippage-summary {
  color: #8b8b8b;
  margin-left: auto;
}
.trade-info {
  margin-top: 14px;
  padding: 14px 0 0;
  border-top: 1px solid #303030;
}
.info-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin: 12px 0;
  font-size: 14px;
}
.info-row > span {
  color: #999;
}
.info-row strong {
  font-weight: 500;
  text-align: right;
}
.info-copy {
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
}
.settings {
  background: #202020;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 15px;
}
.settings .section-heading {
  font-size: 14px;
  gap: 10px;
}
.slippage-controls {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}
.slippage-controls button,
.percentages button {
  background: #2c2c2c;
  border-radius: 10px;
  padding: 10px 16px;
  color: #aaa;
  font-size: 14px;
}
.slippage-controls button.active {
  color: var(--accent);
  border-color: #4d7c86;
  background: #26383c;
}
.slippage-controls label {
  display: flex;
  align-items: center;
  gap: 5px;
  border: 1px solid #414141;
  border-radius: 10px;
  padding: 8px 12px;
  flex: 1;
  min-width: 0;
}
.slippage-controls input {
  width: 100%;
  border: 0;
  background: none;
  text-align: right;
  font-size: 15px;
}
.warning,
.quote-error {
  color: #e6b677;
}
.quote-error {
  font-size: 14px;
  line-height: 1.6;
  margin: 14px 12px 0;
}
.empty-pool-add {
  margin-top: 14px;
  color: var(--accent);
  font-size: 17px;
  padding: 16px;
}
.liquidity-amount p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}
.liquidity-amount .asset-symbol {
  font-size: 21px;
  font-weight: 600;
}
.percentages {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.percentages button {
  flex: 1;
}
.percentages button:hover {
  color: var(--accent);
}
.muted {
  color: var(--muted);
}
.eyebrow {
  font: 12px var(--mono);
  letter-spacing: 1.8px;
  color: var(--accent);
}
h1,
h2 {
  font-weight: 600;
  letter-spacing: -0.6px;
}
h1 {
  font-size: 32px;
  margin: 10px 0;
}
h2 {
  font-size: 23px;
}
.section-heading,
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.page-heading {
  margin: 40px 0 30px;
}
.page-heading p {
  font-size: 15px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: 20px;
  margin-bottom: 22px;
  background: #1b1b1b;
}
.stat {
  padding: 24px;
  border-right: 1px solid var(--line);
}
.stat:last-child {
  border-right: 0;
}
.stat > span {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}
.stat strong {
  font-size: 25px;
  font-weight: 500;
}
.stat small {
  font-size: 12px;
  color: #858585;
  margin-left: 8px;
}
.pool-list {
  display: grid;
  gap: 12px;
}
.pool-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 23px 25px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #1c1c1c;
  width: 100%;
  text-align: left;
}
.pool-item:hover {
  background: #252525;
  border-color: #4e4e4e;
}
.pool-item.active {
  border-color: #41565b;
}
.pair-icons {
  display: flex;
  padding-right: 8px;
}
.pair-icons .token-icon {
  width: 38px;
  height: 38px;
  border: 2px solid #1c1c1c;
}
.pair-icons .token-icon + .token-icon {
  margin-left: -8px;
}
.pool-title {
  display: grid;
  gap: 7px;
}
.pool-title strong {
  font-size: 18px;
  font-weight: 600;
}
.pool-title small {
  color: #969696;
  font-size: 13px;
}
.reserve-label {
  margin-left: auto;
  text-align: right;
  color: #bbb;
  font-size: 14px;
  line-height: 1.9;
}
.pool-open {
  color: var(--accent);
  font-size: 23px;
  margin-left: 8px;
}
.holdings {
  background: #1c1c1c;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  margin: 28px 0;
}
.holdings h2 {
  margin: 0;
  font-size: 19px;
}
.balances {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 30px;
  margin-top: 20px;
}
.balance-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 0;
  font-size: 14px;
  border-top: 1px solid var(--line);
}
.balance-row > span {
  color: #a6a6a6;
}
.balance-row strong {
  font-weight: 500;
}
.balance-row.lp {
  color: var(--accent);
}
.cell-details {
  margin-bottom: 45px;
}
.cell-details > summary {
  font-size: 14px;
  color: #999;
  cursor: pointer;
}
.cell-map {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.cell-block {
  background: #202020;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  flex: 1;
  min-width: 180px;
}
.cell-block span,
.cell-block small {
  display: block;
  color: #999;
  font: 12px var(--mono);
}
.cell-block strong {
  display: block;
  font: 16px var(--mono);
  padding: 12px 0;
}
.activity-section {
  margin-bottom: 50px;
}
.history-filter {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 25px 0;
  font-size: 16px;
  color: #aaa;
}
.history-pool-picker {
  position: relative;
  width: 280px;
  max-width: 100%;
  color: var(--text);
}
.history-pool-trigger {
  width: 100%;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 16px;
  background: #202020;
  border: 1px solid #383838;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 600;
}
.history-pool-trigger:hover:not(:disabled),
.history-pool-trigger[aria-expanded='true'] {
  background: #262626;
  border-color: #64787c;
}
.history-pool-trigger:disabled {
  opacity: 0.55;
}
.pool-picker-value {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.history-pair-name,
.history-pool-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.history-pool-trigger > svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: #aaa;
  transition: transform 0.15s;
}
.history-pool-trigger[aria-expanded='true'] > svg {
  transform: rotate(180deg);
  color: var(--accent);
}
.history-pool-picker .pair-icons {
  padding: 0;
  flex-shrink: 0;
}
.history-pool-picker .token-icon {
  width: 30px;
  height: 30px;
  border-color: #202020;
}
.history-pool-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  max-height: min(320px, 50vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 6px;
  background: #202020;
  border: 1px solid #3b3b3b;
  border-radius: 18px;
  box-shadow: 0 16px 40px #0008;
}
.history-pool-option {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 12px;
  padding: 12px 10px;
  border-radius: 12px;
  text-align: left;
  background: transparent;
}
.history-pool-option:hover,
.history-pool-option:focus-visible {
  background: #303030;
  outline: none;
  box-shadow: inset 0 0 0 1px #64787c;
}
.history-pool-option[aria-selected='true'] {
  background: #83dff110;
}
.history-pool-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}
.history-pool-copy strong {
  font-size: 16px;
  font-weight: 600;
}
.history-pool-copy small {
  font-size: 13px;
  color: #aaa;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.history-pool-check {
  margin-left: auto;
  color: var(--accent);
  font-size: 18px;
}
.pair-picker {
  width: 100%;
  margin-bottom: 12px;
}
.pair-picker .history-pool-trigger {
  min-height: 62px;
  padding: 12px 18px;
  border-radius: 20px;
}
.pair-picker .history-pair-name {
  font-size: 18px;
}
.pool-fee {
  flex-shrink: 0;
  padding: 4px 8px;
  border: 1px solid #3a4548;
  border-radius: 8px;
  color: #a8c9d0;
  font-size: 13px;
  font-weight: 500;
}
.table-scroll {
  overflow: auto;
}
#history a {
  color: var(--accent);
  font-family: var(--mono);
}
table {
  border-collapse: collapse;
  width: 100%;
}
th {
  font-weight: 400;
  color: #929292;
  font-size: 13px;
  text-align: left;
  padding: 15px 12px;
  border-bottom: 1px solid var(--line);
}
td {
  color: #ccc;
  font-size: 14px;
  padding: 20px 12px;
  border-bottom: 1px solid #292929;
  white-space: nowrap;
}
td:last-child,
th:last-child {
  text-align: right;
}
.empty {
  text-align: center;
  color: #999;
  padding: 30px 15px;
  font-size: 15px;
  line-height: 1.8;
}
.transaction-status {
  width: min(600px, 100%);
  margin: 24px auto;
  background: #203035;
  border: 1px solid #37525a;
  border-radius: 16px;
  padding: 18px 20px;
  font-size: 14px;
}
.transaction-status > div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}
.transaction-status > div > span {
  color: #8cacb2;
  font-size: 12px;
}
.transaction-status a,
.transaction-status code {
  display: block;
  overflow-wrap: anywhere;
  color: var(--accent);
  font: 12px/1.7 var(--mono);
  margin-top: 10px;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 20px 32px;
  color: #777;
  font-size: 12px;
}
.network-mark {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #a2a2a2;
}
dialog {
  width: min(480px, calc(100vw - 28px));
  max-height: calc(100dvh - 28px);
  border: 1px solid #3d3d3d;
  border-radius: 26px;
  padding: 28px;
  background: #1c1c1c;
  color: var(--text);
  box-shadow: 0 25px 90px #0007;
}
dialog::backdrop {
  background: #000a;
  backdrop-filter: blur(5px);
}
dialog h2 {
  margin: 10px 0 26px;
  padding-right: 25px;
}
.close {
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 28px;
  font-weight: 300;
  background: none;
  padding: 0 9px;
  color: #aaa;
  border-radius: 10px;
}
.close:hover {
  background: #333;
  color: white;
}
dialog label {
  display: block;
  color: #aaa;
  font-size: 14px;
  margin: 20px 0 10px;
}
dialog select {
  width: 100%;
}
dialog .primary {
  margin-top: 20px;
}
.create-amount {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #242424;
  border: 1px solid #383838;
  border-radius: 16px;
  padding: 14px 16px;
}
.create-amount:focus-within {
  border-color: var(--accent);
}
.create-amount input {
  width: 0;
  flex: 1;
  min-width: 0;
  font-size: 28px;
  padding: 0;
  background: transparent;
  border: 0;
  outline: 0;
}
.create-amount span {
  font-size: 18px;
  overflow-wrap: anywhere;
}
.create-balance {
  font-size: 14px;
  color: #aaa;
  margin: 8px 2px 14px;
}
.create-summary {
  margin-top: 22px;
  font-size: 14px;
}
.create-summary .info-row {
  gap: 16px;
  align-items: flex-start;
}
.create-summary strong {
  text-align: right;
  overflow-wrap: anywhere;
}
.creation-status p {
  line-height: 1.6;
}
.creation-status button {
  margin: 12px 8px 0 0;
}
#token-search {
  width: 100%;
  padding: 16px;
  background: #292929;
  border: 1px solid #414141;
  border-radius: 14px;
  font-size: 15px;
}
#token-search:focus {
  border-color: #7ac6d5;
}
.token-list {
  max-height: min(380px, 50dvh);
  overflow: auto;
  margin: 17px -12px 0;
  padding: 0 4px;
}
.token-option {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  background: none;
  border-radius: 14px;
  padding: 15px 10px;
  text-align: left;
}
.token-option:hover {
  background: #292929;
}
.token-option > span:nth-child(2) {
  display: grid;
  gap: 5px;
  min-width: 0;
}
.token-option strong {
  font-size: 17px;
  font-weight: 600;
}
.token-option small {
  color: #929292;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.token-option .token-icon {
  width: 38px;
  height: 38px;
}
.token-balance {
  margin-left: auto;
  color: #bbb;
  font-size: 14px;
  white-space: nowrap;
}
.selected-check {
  color: var(--accent);
}
.review-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid #303030;
  padding: 13px 0;
  font-size: 14px;
}
.review-row > span {
  color: #a1a1a1;
  flex: 0 0 auto;
}
.review-row strong {
  font-weight: 500;
  text-align: right;
  min-width: 0;
  overflow-wrap: anywhere;
}
#download-transaction {
  margin-top: 10px;
  font-size: 14px;
}
#toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1100;
  max-width: min(560px, 90vw);
  padding: 16px 22px;
  border: 1px solid #446d75;
  border-radius: 16px;
  background: #24373c;
  color: #d3f2f9;
  box-shadow: 0 10px 45px #0005;
  font-size: 15px;
  line-height: 1.7;
}
#toast.error {
  background: #392a23;
  color: #f2d2b7;
  border-color: #6e4a33;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
ccc-connector {
  position: fixed;
  z-index: 1000;
  color: #eee;
  --background: #1d1d1d;
  --divider: #3a3a3a;
  --btn-primary: #292929;
  --btn-primary-hover: #343434;
  --btn-secondary: #303030;
  --btn-secondary-hover: #414141;
  --btn-color: #eeeeee;
  --btn-color-hover: #83dff1;
  --icon-primary: #83dff1;
  --icon-secondary: #aaa;
  --tip-color: #aaa;
  --tip-color-hover: #eee;
  font-size: 15px;
}
@media (max-width: 1000px) {
  header {
    flex-wrap: wrap;
    padding: 18px 24px;
    gap: 22px;
  }
  .header-tools {
    gap: 10px;
    flex-shrink: 0;
  }
  .header-tools .status {
    display: none;
  }
  nav button {
    padding: 9px 12px;
  }
}
@media (max-width: 700px) {
  header {
    flex-wrap: wrap;
    padding: 16px;
    gap: 18px 10px;
    min-height: 0;
  }
  .brand {
    font-size: 22px;
    gap: 10px;
  }
  .logo {
    grid-template-columns: repeat(2, 11px);
    gap: 3px;
  }
  .logo i {
    width: 11px;
    height: 11px;
  }
  nav {
    order: 3;
    width: 100%;
    justify-content: center;
  }
  nav button {
    font-size: 15px;
    padding: 8px 12px;
  }
  .more-menu {
    left: auto;
    right: 0;
  }
  .header-tools {
    gap: 6px;
    max-width: 100%;
    flex-wrap: wrap;
  }
  .demo-bar {
    flex-wrap: wrap;
    padding: 6px 12px;
  }
  .wallet-button {
    font-size: 14px;
    padding: 11px 13px;
    border-radius: 13px;
    max-width: 155px;
  }
  .languages button {
    padding: 5px 6px;
    font-size: 13px;
  }
  #disconnect-wallet {
    font-size: 12px;
    padding: 5px;
  }
  main {
    padding: 0 16px;
  }
  .notice {
    font-size: 12px;
    margin-top: 12px;
  }
  .exchange-card {
    margin: 20px auto 38px;
  }
  .swap-toolbar {
    margin: 0 2px 12px;
  }
  .tabs button {
    font-size: 16px;
    padding: 8px 12px;
  }
  .amount-box {
    border-radius: 24px;
    padding: 23px 20px 22px;
  }
  .amount-line {
    gap: 10px;
    margin: 25px 0 23px;
  }
  .amount-line input {
    font-size: 38px;
  }
  .amount-meta {
    font-size: 12px;
    gap: 7px;
    flex-wrap: wrap;
  }
  .token-selector {
    gap: 7px;
    padding: 5px 10px 5px 5px;
    font-size: 18px;
    min-height: 42px;
  }
  .token-selector .token-icon {
    width: 29px;
    height: 29px;
    font-size: 16px;
  }
  .token-selector.unselected {
    padding: 11px 13px;
    font-size: 16px;
    border-radius: 15px;
  }
  #preview {
    min-height: 60px;
    font-size: 18px;
    margin-top: 15px;
    border-radius: 21px;
  }
  .fee-caption {
    font-size: 12px;
    letter-spacing: 1px;
  }
  .signing-note {
    font-size: 12px;
  }
  footer {
    padding: 18px 16px;
    flex-wrap: wrap;
    justify-content: center;
    font-size: 11px;
  }
  .quote-details {
    font-size: 12px;
    margin: 17px 3px;
  }
  #slippage-summary {
    font-size: 12px;
  }
  .page-heading {
    margin-top: 30px;
    gap: 12px;
  }
  .page-heading h1 {
    font-size: 28px;
  }
  .page-heading .primary {
    font-size: 14px;
    padding: 13px 16px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat {
    padding: 20px;
  }
  .stat:nth-child(2) {
    border-right: 0;
  }
  .stat:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
  .pool-item {
    padding: 19px 16px;
    gap: 12px;
  }
  .pool-title strong {
    font-size: 16px;
  }
  .pool-title small {
    font-size: 12px;
  }
  .reserve-label {
    font-size: 12px;
  }
  .pool-open {
    display: none;
  }
  .pair-icons .token-icon {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }
  .holdings {
    padding: 20px;
  }
  .balances {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .slippage-controls {
    gap: 6px;
  }
  .slippage-controls button {
    padding: 10px 12px;
  }
  .settings {
    padding: 16px;
  }
  .settings .section-heading {
    font-size: 13px;
  }
  .history-filter {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .history-pool-picker {
    width: 100%;
  }
  .pair-picker .history-pool-trigger {
    padding: 12px 14px;
  }
  .pair-picker .history-pair-name {
    font-size: 16px;
  }
}
@media (max-width: 380px) {
  header {
    column-gap: 5px;
  }
  .brand {
    font-size: 20px;
  }
  .header-tools {
    gap: 2px;
  }
  .wallet-button {
    padding: 10px;
    font-size: 13px;
    max-width: 130px;
  }
  .languages button {
    font-size: 12px;
    padding: 4px;
  }
  .token-selector.unselected {
    font-size: 14px;
  }
  .token-selector {
    font-size: 16px;
  }
  .amount-meta {
    font-size: 11px;
  }
  .amount-box {
    padding-inline: 17px;
  }
  .amount-line input {
    font-size: 34px;
  }
}
@media (prefers-reduced-motion: reduce) {
  button {
    transition: none;
  }
}
