:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #edf0ec;
  background: #0c0e0d;
  font-synthesis: none;
  --bg: #0c0e0d;
  --panel: #141715;
  --line: #282e29;
  --muted: #89928b;
  --lime: #c8f58a;
  --red: #ff9292;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
[hidden] {
  display: none !important;
}
.auth-page {
  min-height: 100svh;
  background:
    radial-gradient(ellipse at 50% 0, #20301a55, transparent 60%), var(--bg);
}
.auth-page .auth-shell {
  margin: 0 auto;
  width: min(100%, 484px);
  min-height: 100svh;
  padding: 48px 22px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
}
.auth-card {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
  padding: 32px;
}
.auth-symbol {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  color: var(--lime);
  background: #25311e;
  border: 1px solid #3c502c;
  border-radius: 15px;
  font-size: 26px;
  margin-bottom: 28px;
}
.auth-card .eyebrow {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 1.5px;
}
.auth-card h1 {
  font-size: 29px;
  letter-spacing: -0.9px;
  margin: 12px 0;
}
.auth-card > p {
  font-size: 14px;
  line-height: 1.65;
}
.auth-card label,
.passkey-name {
  display: block;
  font-size: 12px;
  margin: 24px 0 16px;
}
.auth-card input,
.passkey-name input {
  display: block;
  width: 100%;
  margin-top: 9px;
}
.auth-card > button {
  width: 100%;
  padding: 14px;
  margin-top: 16px;
  font-size: 14px;
}
.auth-card .auth-status {
  min-height: 22px;
  font-size: 12px;
}
.auth-detail {
  display: flex;
  gap: 12px;
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding-top: 18px;
  color: var(--muted);
}
.auth-detail p {
  margin: 0;
  font-size: 11px;
  line-height: 1.65;
}
.auth-footer {
  color: var(--muted);
  font-size: 11px;
  margin: 0;
}
.auth-status.error,
#passkey-note.error {
  color: var(--red);
}
.passkey-settings {
  width: 100%;
  margin: 0 0 18px;
}
.mobile-passkey-settings {
  display: none;
}
@media (max-width: 750px) {
  .mobile-passkey-settings {
    display: block;
    padding: 8px;
    font-size: 11px;
  }
  footer {
    flex-wrap: wrap;
    row-gap: 12px;
  }
}
.passkey-list {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.passkey-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
}
.passkey-row + .passkey-row {
  border-top: 1px solid var(--line);
}
.passkey-row b {
  font-size: 13px;
  overflow-wrap: anywhere;
}
.passkey-row p {
  margin: 6px 0 0;
}
@media (max-width: 520px) {
  .auth-page .auth-shell {
    padding: 28px 16px;
    gap: 28px;
  }
  .auth-card {
    padding: 26px 22px;
  }
  .auth-card h1 {
    font-size: 26px;
  }
  .passkey-row {
    align-items: flex-start;
  }
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  outline-offset: 4px;
}
button,
.actions-grid .button {
  cursor: pointer;
  border: 1px solid var(--line);
  background: #1b201c;
  color: inherit;
  border-radius: 9px;
  padding: 10px 15px;
  font-size: 13px;
  transition: background 0.15s;
}
button:hover,
.actions-grid .button:hover {
  background: #29312a;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  color: var(--lime);
}
.primary {
  background: var(--lime);
  color: #15210c;
  border-color: var(--lime);
  font-weight: 650;
}
.primary:hover {
  background: #dcffad;
}
.secondary {
  background: transparent;
}
.danger {
  color: var(--red);
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 236px;
  padding: 32px 22px;
  background: #101311;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  align-items: center;
  font-size: 24px;
  font-weight: 750;
  letter-spacing: -1px;
  gap: 10px;
}
.brand-mark {
  width: 31px;
  height: 31px;
  border: 1.5px solid var(--lime);
  border-radius: 9px;
  color: var(--lime);
  display: grid;
  place-items: center;
}
.beta {
  font-size: 8px;
  letter-spacing: 1px;
  color: var(--muted);
  margin-top: 3px;
  border: 1px solid var(--line);
  padding: 3px;
  border-radius: 4px;
}
.workspace-label {
  font-size: 9px;
  letter-spacing: 1.5px;
  color: #59645c;
  margin: 53px 12px 16px;
}
.nav {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 13px;
  margin: 3px 0;
  color: var(--muted);
  display: flex;
  gap: 13px;
  font-size: 13px;
}
.nav span {
  font-size: 18px;
  line-height: 15px;
}
.nav.active {
  background: #242e1f;
  color: var(--lime);
}
.sidebar-bottom {
  margin-top: auto;
  padding: 18px 10px 0;
  border-top: 1px solid var(--line);
}
.network {
  font-size: 12px;
  font-weight: 650;
  display: flex;
  align-items: center;
  gap: 8px;
}
.network i,
.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  background: var(--lime);
}
.sidebar-bottom p {
  font-size: 11px;
  color: var(--muted);
  margin: 10px 0 25px;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 11px;
  line-height: 1.8;
}
main {
  margin-left: 236px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
header {
  height: 91px;
  padding: 0 42px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.breadcrumb {
  font-size: 12px;
  color: var(--muted);
}
.breadcrumb span {
  margin: 0 14px;
  color: #475049;
}
.breadcrumb b {
  color: #d5dbd4;
  font-weight: 500;
}
.header-actions {
  display: flex;
  gap: 18px;
  align-items: center;
}
.header-actions button span {
  margin-left: 18px;
}
.pill {
  font-size: 10px;
  border: 1px solid var(--line);
  padding: 7px 10px;
  border-radius: 20px;
  white-space: nowrap;
  color: var(--muted);
}
.pill.good {
  color: var(--lime);
}
.pill.bad {
  color: var(--red);
}
.network-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.network-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}
.network-status.good .network-dot {
  animation: network-heartbeat 2s ease-in-out infinite;
}
.block-counter {
  display: inline-flex;
  gap: 1px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.network-separator[hidden],
.block-counter[hidden] {
  display: none;
}
.block-digit {
  --digit-height: 1.5em;
  position: relative;
  width: 0.68em;
  height: var(--digit-height);
  perspective: 65px;
}
.block-half,
.block-leaf {
  position: absolute;
  left: 0;
  width: 100%;
  height: 50%;
  overflow: hidden;
  background: #192016;
  backface-visibility: hidden;
}
.block-upper {
  top: 0;
  border-radius: 2px 2px 0 0;
  transform-origin: bottom;
}
.block-lower {
  bottom: 0;
  border-radius: 0 0 2px 2px;
  transform-origin: top;
}
.block-half > span,
.block-leaf > span {
  position: absolute;
  left: 0;
  width: 100%;
  height: var(--digit-height);
  line-height: var(--digit-height);
  text-align: center;
}
.block-upper > span {
  top: 0;
}
.block-lower > span {
  bottom: 0;
}
.block-digit::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #0c0e0d80;
  pointer-events: none;
}
.block-leaf {
  z-index: 1;
}
.flipping .block-leaf {
  animation-duration: 600ms;
  animation-delay: var(--flip-delay, 0ms);
  animation-timing-function: cubic-bezier(0.35, 0, 0.65, 1);
  animation-fill-mode: both;
}
.flipping .block-leaf.block-upper {
  animation-name: block-flip-upper;
}
.flipping .block-leaf.block-lower {
  animation-name: block-flip-lower;
}
@keyframes block-flip-upper {
  0% {
    transform: rotateX(0);
    filter: brightness(1);
  }
  50%,
  100% {
    transform: rotateX(-90deg);
    filter: brightness(0.6);
  }
}
@keyframes block-flip-lower {
  0%,
  50% {
    transform: rotateX(90deg);
    filter: brightness(0.6);
  }
  100% {
    transform: rotateX(0);
    filter: brightness(1);
  }
}
@keyframes network-heartbeat {
  0%,
  100% {
    box-shadow: 0 0 0 0 #c8f58a00;
  }
  50% {
    box-shadow: 0 0 0 3px #c8f58a22;
  }
}
.content {
  padding: 38px 42px;
  max-width: 1550px;
  width: 100%;
  margin: 0 auto;
  flex: 1;
}
h1 {
  font-size: 31px;
  letter-spacing: -0.9px;
  font-weight: 550;
  margin: 0 0 12px;
}
h2 {
  font-weight: 550;
  font-size: 18px;
  letter-spacing: -0.3px;
  margin: 0;
}
h3 {
  font-size: 15px;
  font-weight: 550;
}
p {
  line-height: 1.7;
}
.sub {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}
.price-stale {
  color: var(--red);
}
.heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}
.heading-actions {
  display: flex;
  gap: 8px;
}
.search {
  display: flex;
  gap: 10px;
  max-width: 650px;
  margin: 26px 0 30px;
}
.search input {
  flex: 1;
  min-width: 0;
}
input,
select {
  border: 1px solid #343d35;
  border-radius: 9px;
  background: #0d110e;
  color: inherit;
  padding: 13px 14px;
  min-width: 0;
}
input::placeholder {
  color: #667169;
}
input:focus,
select:focus {
  border-color: var(--lime);
  outline: 1px solid var(--lime);
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 30px;
}
.stat {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 24px;
}
.stat-label {
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 17px;
}
.stat strong {
  font-weight: 450;
  letter-spacing: -0.7px;
  font-size: 32px;
  display: block;
}
.stat p {
  margin: 13px 0 0;
  font-size: 11px;
  color: var(--muted);
}
.stat.accent {
  background: linear-gradient(120deg, #232d1b, #151c13);
  border-color: #3b4b2e;
}
.stat.accent strong {
  color: var(--lime);
}
.section-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 32px 0 17px;
}
.section-bar h2 {
  font-size: 15px;
}
.tabs {
  display: flex;
  gap: 6px;
}
.tabs button {
  border: 0;
  background: transparent;
  font-size: 11px;
  color: var(--muted);
  padding: 8px 12px;
}
.tabs button.selected {
  background: #242e1f;
  color: var(--lime);
}
.panel {
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--panel);
  overflow: hidden;
}
.position-row {
  display: grid;
  grid-template-columns:
    minmax(180px, 1.6fr) minmax(150px, 1.2fr) minmax(110px, 1fr)
    minmax(100px, 0.8fr) 90px;
  gap: 18px;
  align-items: center;
  padding: 24px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.position-row:last-child {
  border-bottom: 0;
}
.position-row:hover {
  background: #1a1f1a;
}
.table-head {
  padding: 14px 24px;
  background: #111512;
  color: var(--muted);
  font-size: 10px;
  cursor: default;
}
.table-head:hover {
  background: #111512;
}
.pair {
  display: flex;
  gap: 13px;
  align-items: center;
}
.coins {
  position: relative;
  width: 53px;
  height: 32px;
  flex-shrink: 0;
}
.coin {
  width: 32px;
  height: 32px;
  border: 3px solid var(--panel);
  border-radius: 50%;
  background: #b3c5aa;
  color: #172312;
  position: absolute;
  left: 0;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 800;
}
.coin:nth-child(2) {
  left: 23px;
  background: #adb9db;
  color: #202a48;
}
.pair b {
  font-size: 14px;
  font-weight: 550;
}
.pair small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 6px;
}
.amount strong {
  display: block;
  font-weight: 450;
  font-size: 15px;
  margin-bottom: 5px;
}
.amount small {
  font-size: 10px;
  color: var(--muted);
}
.range-status {
  font-size: 10px;
  color: var(--lime);
  margin-bottom: 8px;
}
.range-status.out {
  color: #e9b67a;
}
.range-track {
  height: 4px;
  border-radius: 5px;
  background: #30382e;
  position: relative;
  max-width: 160px;
}
.range-track:before {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  height: 4px;
  background: #62794b;
  border-radius: 5px;
}
.range-track i {
  position: absolute;
  top: -2px;
  width: 2px;
  height: 8px;
  background: var(--lime);
}
.empty {
  padding: 60px 30px;
  text-align: center;
}
.empty-icon {
  margin: 0 auto 23px;
  border: 1px solid #3e5130;
  color: var(--lime);
  background: #202b18;
  border-radius: 20px;
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  font-size: 35px;
}
.empty h2 {
  font-size: 22px;
}
.empty p {
  font-size: 13px;
  color: var(--muted);
  max-width: 480px;
  margin: 14px auto 25px;
}
.empty button + button {
  margin-left: 8px;
}
.info-strip {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-top: 25px;
  color: var(--muted);
  font-size: 12px;
}
.info-strip span:first-child {
  color: var(--lime);
  font-size: 18px;
}
.error,
.warning,
.success {
  border: 1px solid #664d2c;
  background: #272116;
  color: #eed3a2;
  border-radius: 9px;
  padding: 14px 16px;
  font-size: 12px;
  line-height: 1.7;
  margin-bottom: 18px;
  overflow-wrap: anywhere;
}
.error {
  border-color: #613d3d;
  background: #291c1c;
  color: #ffb4b4;
}
.success {
  border-color: #3e5734;
  background: #1a2717;
  color: #c8f58a;
}
#notice {
  margin-bottom: 24px;
}
.loading {
  padding: 65px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.spinner {
  display: block;
  width: 27px;
  height: 27px;
  margin: 0 auto 20px;
  border: 2px solid #303b2c;
  border-top-color: var(--lime);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(310px, 1fr);
  gap: 20px;
}
.box {
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--panel);
  margin-bottom: 20px;
}
.box-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}
.big-price {
  font-size: 37px;
  letter-spacing: -1px;
  font-weight: 450;
  margin: 30px 0 6px;
}
.visual-range {
  padding: 27px 0 35px;
}
.visual-range .range-track {
  max-width: none;
  height: 8px;
}
.visual-range .range-track:before {
  height: 8px;
}
.visual-range .range-track i {
  height: 18px;
  width: 3px;
  top: -5px;
}
.range-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 17px;
  font-size: 11px;
  color: var(--muted);
}
.range-labels b {
  display: block;
  color: #dbe0d9;
  margin-top: 6px;
  font-weight: 500;
}
.kv {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.6;
}
.kv:last-child {
  border-bottom: 0;
}
.kv span {
  color: var(--muted);
}
.kv b {
  font-weight: 500;
  text-align: right;
  overflow-wrap: anywhere;
  max-width: 72%;
}
.actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
.actions-grid button,
.actions-grid .button {
  padding: 14px 6px;
}
.actions-grid .button {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.actions-grid .primary {
  grid-column: span 2;
}
.back {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  margin-bottom: 23px;
  font-size: 12px;
}
.back:hover {
  background: transparent;
  color: var(--lime);
}
.pools-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.pool-card {
  padding: 23px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 13px;
}
.pool-card h3 {
  line-height: 1.5;
  margin: 0 0 20px;
  min-height: 44px;
}
.pool-card button {
  width: 100%;
  margin-top: 20px;
}
.pool-card .kv {
  font-size: 11px;
}
.history-row {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: space-between;
  padding: 22px;
  border-bottom: 1px solid var(--line);
}
.history-row:last-child {
  border-bottom: 0;
}
.history-row p {
  font-size: 11px;
  color: var(--muted);
  margin: 7px 0 0;
}
.history-row strong {
  font-size: 13px;
  font-weight: 500;
}
.history-row a {
  font-size: 12px;
  color: var(--lime);
}
.position-history {
  min-width: 0;
  margin-top: 8px;
}
.position-history h2 {
  display: flex;
  align-items: center;
  gap: 10px;
}
.event-count {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 7px;
}
.event-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0;
}
.event-filters button {
  background: transparent;
  padding: 9px 12px;
}
.event-filters button span {
  font-size: 11px;
  margin-left: 5px;
  opacity: 0.65;
}
.event-filters button.active {
  color: #15210c;
  background: var(--lime);
  border-color: var(--lime);
  font-weight: 600;
}
.event-table-scroll {
  width: 100%;
  overflow-x: auto;
}
.event-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.event-table th {
  color: var(--muted);
  text-align: left;
  font-size: 11px;
  font-weight: 500;
  padding: 12px 14px;
}
.event-table td {
  padding: 17px 14px;
  border-top: 1px solid var(--line);
}
.event-table tbody tr:hover {
  background: #1b201c;
}
.event-table small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
}
.event-table .event-number,
.event-table th:nth-child(n + 3):nth-child(-n + 6) {
  text-align: right;
}
.event-number span {
  color: var(--muted);
  font-size: 10px;
}
.event-table b {
  font-weight: 550;
}
.event-deposit {
  --event-color: var(--lime);
}
.event-withdrawal {
  --event-color: var(--red);
}
.event-fees {
  --event-color: #c4a3ef;
}
.event-compound {
  --event-color: #7cddd0;
}
.event-move {
  --event-color: #91bafa;
}
.event-table td:first-child {
  border-left: 3px solid var(--event-color);
}
.event-kind {
  color: var(--event-color);
}
.event-hash {
  display: inline-block;
  padding: 7px 9px;
  color: var(--lime);
  background: #20291a;
  border-radius: 6px;
  font-family: ui-monospace, monospace;
  font-size: 11px;
}
.event-footnote {
  display: grid;
  gap: 6px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}
.event-footnote a {
  color: var(--lime);
}
.event-empty {
  padding: 28px 12px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
@media (max-width: 750px) {
  .position-history .box-head {
    align-items: flex-start;
  }
  .position-history h2 {
    font-size: 18px;
  }
  .position-history [data-history-refresh] {
    padding: 8px 10px;
  }
  .event-filters {
    gap: 6px;
  }
  .event-filters button {
    padding: 9px;
    font-size: 12px;
  }
}
footer {
  padding: 23px 42px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 25px;
  font-size: 10px;
  color: #677369;
}
footer > span {
  flex: 1;
}
dialog {
  width: min(600px, calc(100vw - 32px));
  padding: 0;
  background: #161b17;
  color: inherit;
  border: 1px solid #3b463b;
  border-radius: 17px;
  max-height: 90vh;
  box-shadow: 0 30px 100px #0009;
}
dialog::backdrop {
  background: #050905ba;
  backdrop-filter: blur(5px);
}
.modal-head {
  position: sticky;
  top: 0;
  background: #161b17;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 27px;
  border-bottom: 1px solid var(--line);
}
.modal-head h2 {
  font-size: 20px;
}
.modal-head button {
  padding: 5px 10px;
  background: transparent;
}
.modal-body {
  padding: 25px 27px;
}
.modal-foot {
  position: sticky;
  bottom: 0;
  background: #161b17;
  z-index: 2;
  padding: 19px 27px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}
.pool-empty {
  grid-column: 1 / -1;
}
.pool-empty button + button {
  margin-left: 8px;
}
input[aria-invalid="true"] {
  border-color: var(--red);
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}
.field {
  margin-bottom: 19px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.field label {
  font-size: 12px;
  color: #b7c2b6;
}
.field input,
.field select {
  width: 100%;
}
.select-menu {
  width: 100%;
  min-width: 0;
}
.select-trigger {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 16px;
  border: 1px solid #343c35;
  border-radius: 14px;
  background: #202520;
  text-align: left;
  font-size: 14px;
  line-height: 1.4;
  transition:
    border-color 0.15s,
    background 0.15s;
}
.select-trigger:hover:not(:disabled) {
  background: #272e27;
  border-color: #56634f;
}
.select-trigger:focus-visible,
.select-trigger[aria-expanded="true"] {
  border-color: #8cae68;
  outline: 2px solid #c8f58a26;
  outline-offset: 2px;
}
.select-chevron {
  width: 8px;
  height: 8px;
  margin-right: 3px;
  margin-top: -4px;
  flex-shrink: 0;
  border-right: 1.5px solid #b4c0b2;
  border-bottom: 1.5px solid #b4c0b2;
  transform: rotate(45deg);
}
.select-trigger[aria-expanded="true"] .select-chevron {
  transform: rotate(225deg);
  margin-top: 4px;
}
.select-options {
  position: fixed;
  inset: auto;
  margin: 0;
  padding: 6px;
  z-index: 100;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid #3c4938;
  border-radius: 16px;
  background: #1b211b;
  color: #edf0ec;
  box-shadow: 0 16px 44px #0008;
  scrollbar-width: thin;
  scrollbar-color: #4b5945 transparent;
}
.select-option {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 12px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.4;
  cursor: pointer;
}
.select-option.active {
  background: #303b2b;
}
.select-option[aria-selected="true"] {
  color: var(--lime);
}
.select-check {
  visibility: hidden;
  flex-shrink: 0;
}
.select-option[aria-selected="true"] .select-check {
  visibility: visible;
}
.select-option[aria-disabled="true"] {
  color: #737e71;
  cursor: not-allowed;
}
.field small {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.7;
}
.field small button {
  font-size: 10px;
  padding: 1px 4px;
  background: transparent;
  border: none;
  color: var(--lime);
}
.presets {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 17px;
}
.presets button {
  font-size: 11px;
  padding: 8px 12px;
}
.preview-details {
  margin: 20px 0;
}
.preview-details .kv b {
  font-size: 11px;
}
.code {
  font-family: ui-monospace, monospace;
  font-size: 10px !important;
  word-break: break-all;
}
.label-top {
  font-size: 10px;
  letter-spacing: 1.7px;
  color: var(--lime);
  margin-bottom: 12px;
}
.wide {
  width: 100%;
}
#toast {
  position: fixed;
  bottom: 24px;
  right: 26px;
  max-width: 450px;
  background: #2a3921;
  color: #d3f1b9;
  border: 1px solid #49653a;
  padding: 15px 20px;
  border-radius: 11px;
  font-size: 13px;
  z-index: 10;
}
.wallet-option {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 18px;
  margin-bottom: 10px;
}
.step-list {
  display: flex;
  gap: 8px;
  margin: 18px 0;
}
.step-list span {
  font-size: 10px;
  flex: 1;
  border-top: 2px solid #3a4238;
  padding-top: 9px;
  color: var(--muted);
}
.step-list .current {
  border-color: var(--lime);
  color: var(--lime);
}
.workflow {
  border-color: #58703f;
  background: #1b2517;
}
.workflow h3 {
  color: var(--lime);
}
@media (min-width: 1600px) {
  .content {
    padding-top: 48px;
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 195px;
    padding: 28px 15px;
  }
  main {
    margin-left: 195px;
  }
  .content {
    padding: 30px 25px;
  }
  header {
    padding: 0 25px;
  }
  .position-row {
    grid-template-columns: 1.4fr 1fr 1fr 80px;
    gap: 12px;
  }
  .position-row .fees-col {
    display: none;
  }
  .pools-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .breadcrumb {
    display: none;
  }
  .header-actions {
    margin-left: auto;
  }
  footer {
    padding: 20px 25px;
  }
}
@media (max-width: 750px) {
  .sidebar {
    position: static;
    width: 100%;
    height: auto;
    padding: 17px 20px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .brand {
    font-size: 20px;
  }
  .brand-mark {
    width: 26px;
    height: 26px;
  }
  .workspace-label,
  .sidebar-bottom,
  .beta {
    display: none;
  }
  .sidebar nav {
    display: flex;
  }
  .nav {
    font-size: 11px;
    padding: 9px;
    white-space: nowrap;
  }
  .nav span {
    display: none;
  }
  main {
    margin: 0;
  }
  header {
    height: 70px;
    padding: 0 20px;
  }
  .header-actions {
    width: 100%;
    justify-content: space-between;
  }
  .content {
    padding: 27px 18px;
  }
  .heading {
    align-items: flex-start;
  }
  h1 {
    font-size: 26px;
  }
  .heading-actions {
    flex-direction: column;
  }
  .stats {
    gap: 9px;
  }
  .stat {
    padding: 16px 12px;
  }
  .stat strong {
    font-size: 23px;
  }
  .stat-label {
    font-size: 10px;
    min-height: 25px;
  }
  .stat p {
    font-size: 10px;
  }
  .position-row {
    padding: 20px 15px;
    grid-template-columns: 1.4fr 1fr 30px;
    gap: 8px;
  }
  .position-row .range-col {
    display: none;
  }
  .position-row button {
    font-size: 0;
    padding: 8px;
  }
  .position-row button:after {
    content: "↗";
    font-size: 16px;
  }
  .pair b {
    font-size: 12px;
  }
  .coins {
    display: none;
  }
  .amount strong {
    font-size: 13px;
  }
  .empty {
    padding: 40px 20px;
  }
  .pools-grid {
    grid-template-columns: 1fr;
  }
  .section-bar {
    gap: 10px;
    flex-wrap: wrap;
  }
  footer span {
    display: none;
  }
  footer {
    justify-content: space-between;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .modal-body {
    padding: 20px;
  }
  .modal-head {
    padding: 20px;
  }
  .box {
    padding: 20px;
  }
  .search button {
    padding: 10px;
  }
  .stat.accent strong {
    font-size: 23px;
  }
  .history-row {
    gap: 12px;
    padding: 18px;
  }
  .history-row strong {
    font-size: 12px;
  }
}
@media (max-width: 500px) {
  .sidebar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .sidebar nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .nav {
    width: auto;
    min-width: 0;
    min-height: 44px;
    padding: 8px 4px;
    justify-content: center;
    align-items: center;
    text-align: center;
    white-space: normal;
  }
}

.wallet-option small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 6px;
  font-weight: 400;
}
.mobile-wallet {
  border-color: var(--lime);
  margin-bottom: 14px;
}
.qr-area {
  text-align: center;
  padding: 16px 0;
  min-height: 120px;
}
.wallet-qr {
  display: block;
  width: min(100%, 320px);
  height: auto;
  border-radius: 16px;
  margin: 0 auto 16px;
}
.setup-steps {
  padding-left: 22px;
  line-height: 1.65;
  color: var(--muted);
}
.setup-steps li {
  padding-bottom: 10px;
}

.mode-options {
  padding: 0;
  margin: 0;
  border: 0;
}
.mode-options legend {
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--muted);
}
.mode-options label {
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.6;
  padding: 6px 0;
}
.mode-options input {
  width: 16px;
  height: 16px;
  accent-color: var(--lime);
}

/* Range and deposit cards follow the compact token-entry layout. */
dialog:has(.range-cards),
dialog:has(.deposit-card) {
  background: #121413;
}
.range-cards {
  display: grid;
  gap: 4px;
  border-radius: 24px;
  overflow: hidden;
}
.range-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: #202220;
  padding: 20px 24px;
  min-height: 128px;
}
.range-card-value {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  flex: 1;
}
.range-card label {
  font-size: 14px;
  color: #a9afaa;
}
.range-card input {
  width: 100%;
  border: 0;
  border-radius: 4px;
  padding: 0;
  background: transparent;
  font-size: 27px;
  letter-spacing: -0.6px;
  font-variant-numeric: tabular-nums;
}
.range-delta {
  font-size: 17px;
  color: #a9afaa;
  font-variant-numeric: tabular-nums;
}
.range-stepper {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.range-stepper button {
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #373a37;
  color: #c6cbc7;
  font-size: 27px;
  line-height: 1;
}
.range-stepper button:hover:not(:disabled) {
  background: #4a5149;
  color: white;
}
.range-caption {
  margin: 12px 0 0;
}
dialog:has(.range-editor) {
  width: min(1220px, calc(100vw - 32px));
  max-height: 94vh;
  background: #101713;
}
dialog:has(.range-editor) .modal-head,
dialog:has(.range-editor) .modal-foot {
  background: #101713;
}
dialog:has(.range-editor) .modal-body > .sub {
  margin-bottom: 12px !important;
}
.range-context {
  margin: 0 0 22px;
}
.range-context > summary {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: #99afa0;
  font-size: 12px;
  cursor: pointer;
}
.range-context > summary b {
  color: #e3eae5;
  font-weight: 500;
  margin: 0 5px;
}
.range-context[open] > summary {
  margin-bottom: 18px;
}
.range-editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 265px;
  column-gap: 24px;
}
.range-editor-heading,
.range-legend,
.range-comparison,
#range-preview-error {
  grid-column: 1 / -1;
}
.range-charts {
  grid-column: 1;
  grid-row: 3 / 5;
  align-self: start;
}
.range-editor .range-edit-fields {
  grid-column: 2;
  grid-row: 3;
  grid-template-columns: 1fr;
  gap: 15px;
}
.range-editor .range-editor-bottom {
  grid-column: 2;
  grid-row: 4;
  flex-direction: column;
  align-items: stretch;
  margin: 14px 0 0;
  gap: 7px;
}
.range-editor-bottom .presets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}
.range-editor-bottom .presets button {
  font-size: 11px;
  padding: 7px;
}
.range-editor-bottom .presets button:last-child {
  grid-column: 1 / -1;
}
.range-editor .range-edit-input input {
  font-size: 19px;
  padding: 10px 4px;
}
.range-editor .range-edit-input button {
  padding: 7px 12px;
}
.range-editor .range-bound-info {
  font-size: 10px;
  gap: 5px;
}
.range-explanation {
  max-width: 850px;
  color: #a5b2a9;
  font-size: 13px;
  line-height: 1.6;
  margin: -8px 0 24px;
}
.range-position-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 0 0 24px;
  margin: 0 0 26px;
  border-bottom: 1px solid var(--line);
}
.range-position-stats > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-variant-numeric: tabular-nums;
}
.range-position-stats span,
.range-position-stats small {
  font-size: 12px;
  color: var(--muted);
}
.range-position-stats span {
  margin-bottom: 5px;
}
.range-position-stats b {
  font-size: 16px;
  font-weight: 550;
}
.range-editor-heading,
.range-chart-heading,
.range-editor-bottom,
.range-bound-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.range-editor-heading h3 {
  font-size: 18px;
  margin: 0 0 7px;
}
.range-editor-heading p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.range-quote {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
}
.range-quote > div {
  display: flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 9px;
}
.range-quote button {
  border: 0;
  background: transparent;
  padding: 8px 14px;
}
.range-quote button.active {
  background: var(--lime);
  color: #15210c;
}
.range-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin: 22px 0 24px;
  font-size: 12px;
  color: #b7c0ba;
}
.range-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.range-legend i {
  display: inline-block;
  width: 16px;
  height: 3px;
  background: #c18aff;
  border-radius: 2px;
}
.range-legend i.new {
  background: var(--lime);
}
.range-legend i.spot {
  background: #ecf1ed;
}
.range-legend b {
  color: #edf0ec;
  font-weight: 500;
}
.range-charts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.range-chart {
  min-width: 0;
}
.range-chart-heading {
  min-height: 33px;
  margin-bottom: 12px;
}
.range-chart h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 550;
}
.chart-zoom {
  display: flex;
  gap: 4px;
}
.chart-zoom button {
  padding: 3px;
  width: 27px;
  height: 27px;
  font-size: 16px;
  border-radius: 6px;
  background: transparent;
}
.range-chart svg {
  display: block;
  width: 100%;
  overflow: visible;
}
.range-chart svg text {
  fill: #8b9b90;
  font-size: 10px;
  font-family: ui-monospace, SFMono-Regular, monospace;
}
.chart-grid {
  stroke: #26352b;
  stroke-width: 1;
}
.old-range-fill {
  fill: #a66de6;
  opacity: 0.09;
}
.new-range-fill {
  fill: #c8f58a;
  opacity: 0.08;
}
.old-range-rail {
  fill: #ae7be7;
  opacity: 0.7;
}
.new-range-rail {
  fill: var(--lime);
}
.liquidity-bar {
  fill: #6cbd87;
  opacity: 0.75;
}
.spot-line {
  stroke: white;
  stroke-width: 2;
}
.chart-marker line {
  stroke-dasharray: 3 3;
  stroke-width: 1.5;
}
.chart-marker.old line {
  stroke: #ba89f3;
}
.chart-marker.old rect {
  fill: #70449c;
}
.chart-marker.old text {
  fill: #f4e8ff;
  font-weight: 650;
}
.chart-marker.new {
  cursor: ew-resize;
}
.chart-marker.new line {
  stroke: var(--lime);
  stroke-dasharray: none;
}
.chart-marker.new rect {
  fill: var(--lime);
}
.chart-marker.new text {
  fill: #14200c;
  font-size: 9px;
  font-weight: 750;
}
.chart-marker.new circle {
  fill: #14200c;
  stroke: var(--lime);
  stroke-width: 2;
}
.chart-marker.new .drag-hit {
  fill: transparent;
}
.chart-marker:focus {
  outline: none;
}
.chart-marker:focus circle {
  stroke: white;
  stroke-width: 3;
}
.range-distribution {
  touch-action: none;
  cursor: grab;
  user-select: none;
}
.range-distribution:active {
  cursor: grabbing;
}
.chart-note {
  font-size: 10px;
  color: #809286;
  line-height: 1.5;
  min-height: 30px;
  margin: 10px 0 0;
}
.history-price {
  fill: none;
  stroke: #78d993;
  stroke-width: 2;
}
.history-bound {
  stroke-width: 1.3;
  stroke-dasharray: 5 4;
}
.history-bound.old {
  stroke: #ba89f3;
}
.history-bound.new {
  stroke: var(--lime);
  stroke-dasharray: 2 3;
}
.range-chart svg text.old {
  fill: #c08bf4;
}
.range-chart svg text.new {
  fill: var(--lime);
  font-size: 9px;
}
.chart-empty {
  aspect-ratio: 540 / 230;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background: #141e18;
  border-radius: 10px;
  color: var(--muted);
}
.chart-empty > span {
  color: #5e7767;
  font-size: 32px;
}
.chart-empty p {
  margin: 10px 0 8px;
  font-size: 12px;
}
.chart-empty small {
  font-size: 10px;
}
.range-comparison {
  margin: 18px 0;
  padding: 9px 16px;
  border: 1px solid #2e3e33;
  border-radius: 12px;
  background: #151f19;
  font-variant-numeric: tabular-nums;
}
.range-comparison > div {
  display: grid;
  grid-template-columns: 1.05fr 1fr 1fr 1.2fr;
  gap: 10px;
  align-items: center;
  min-height: 28px;
  font-size: 12px;
}
.range-comparison > div + div {
  border-top: 1px solid #243129;
}
.range-comparison span {
  color: #92a399;
}
.range-comparison b {
  font-weight: 500;
}
.range-comparison .old {
  color: #c18aff;
}
.range-comparison .new,
.range-comparison .in {
  color: var(--lime);
}
.range-comparison .out {
  color: #e6ab83;
}
.range-edit-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.range-edit-field > label {
  display: block;
  margin: 0 0 10px;
  font-size: 12px;
  color: #acbab0;
}
.range-edit-input {
  display: flex;
  border: 1px solid #36483b;
  border-radius: 10px;
  overflow: hidden;
}
.range-edit-input input {
  border: 0;
  min-width: 0;
  width: 100%;
  background: #151f19;
  border-radius: 0;
  text-align: center;
  padding: 12px 6px;
  font-size: 20px;
  font-variant-numeric: tabular-nums;
}
.range-edit-input button {
  border: 0;
  border-radius: 0;
  padding: 9px 16px;
  font-size: 21px;
  background: #202d24;
}
.range-bound-info {
  margin-top: 8px;
  font-size: 11px;
  color: #99aea0;
}
.range-bound-info > div {
  display: flex;
  gap: 4px;
}
.range-bound-info button {
  padding: 4px 8px;
  font-size: 10px;
  background: transparent;
}
.range-editor-bottom {
  margin: 19px 0 26px;
}
.range-editor-bottom .presets {
  margin: 0;
}
.range-editor-bottom > p {
  font-size: 11px;
}
.compound-action {
  color: var(--lime);
  border-color: #476439;
}
.compound-total {
  padding: 22px;
  border-radius: 14px;
  background: #22321e;
  text-align: center;
}
.compound-total strong {
  display: block;
  font-size: 36px;
  letter-spacing: -1px;
  color: var(--lime);
  margin: 12px 0;
  font-weight: 550;
}
.compound-total p {
  margin: 0;
  font-size: 13px;
  color: #c0cfb9;
}
.compound-plan {
  list-style: none;
  padding: 0;
  margin: 24px 0;
}
.compound-plan li {
  display: flex;
  gap: 14px;
  margin: 18px 0;
}
.compound-plan li > span {
  flex: 0 0 29px;
  height: 29px;
  border: 1px solid #45623a;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--lime);
  font-size: 12px;
}
.compound-plan b {
  font-size: 14px;
  font-weight: 550;
}
.compound-plan p {
  font-size: 12px;
  line-height: 1.6;
  color: #96a68e;
  margin: 6px 0 0;
}
.compound-note {
  padding: 14px 16px;
  border: 1px solid #34432d;
  border-radius: 9px;
  color: #b9c8af;
  font-size: 12px;
  line-height: 1.6;
}
@media (max-width: 760px) {
  dialog:has(.range-editor) {
    width: calc(100vw - 16px);
    max-height: 95vh;
  }
  dialog:has(.range-editor) .modal-body,
  dialog:has(.range-editor) .modal-head,
  dialog:has(.range-editor) .modal-foot {
    padding: 18px;
  }
  .range-position-stats {
    gap: 12px;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 20px;
  }
  .range-position-stats > div:last-child {
    grid-column: 1 / -1;
  }
  .range-position-stats b {
    font-size: 13px;
  }
  .range-editor-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .range-context > summary {
    flex-direction: column;
    gap: 8px;
    line-height: 1.6;
  }
  .range-editor {
    display: block;
  }
  .range-editor .range-edit-fields {
    margin-top: 20px;
  }
  .range-legend {
    gap: 10px 16px;
    font-size: 10px;
  }
  .range-charts {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .range-comparison {
    padding: 6px 10px;
  }
  .range-comparison > div {
    grid-template-columns: 0.8fr 1fr 1fr;
    gap: 7px;
    font-size: 10px;
    min-height: 36px;
  }
  .range-comparison > div > :last-child {
    grid-column: 2 / -1;
    padding-bottom: 7px;
  }
  .range-comparison > .comparison-head > :last-child {
    display: none;
  }
  .range-edit-fields {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .range-editor-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .range-editor-bottom .presets {
    gap: 5px;
    flex-wrap: wrap;
  }
  .range-editor-bottom .presets button {
    font-size: 11px;
    padding: 8px;
  }
}
.deposit-heading {
  margin: 29px 0 18px;
}
.deposit-heading h3 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.4px;
  margin: 0 0 8px;
}
.deposit-heading p {
  font-size: 13px;
  color: #a9afaa;
  line-height: 1.6;
  margin: 0;
}
.deposit-amounts {
  display: grid;
  gap: 6px;
}
.deposit-card {
  background: #202220;
  border: 1px solid transparent;
  border-radius: 25px;
  padding: 23px 23px 13px;
  min-width: 0;
}
.deposit-card:focus-within {
  border-color: #63754e;
}
.deposit-card:has(input[aria-invalid="true"]) {
  border-color: #dd806e;
}
.deposit-card-main {
  display: flex;
  align-items: center;
  gap: 18px;
}
.deposit-card-main input {
  background: transparent;
  border: 0;
  border-radius: 4px;
  outline-offset: 5px;
  padding: 0;
  flex: 1;
  width: 0;
  min-width: 0;
  font-size: 38px;
  letter-spacing: -1.3px;
  line-height: 1.25;
}
.deposit-card-main input::placeholder {
  color: #7d837f;
}
.deposit-card-main input.deposit-long-value {
  font-size: 22px;
  letter-spacing: -0.5px;
}
.deposit-token {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  max-width: 50%;
  font-size: 22px;
  font-weight: 600;
  white-space: nowrap;
}
.deposit-token > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
}
.deposit-token-icon {
  position: relative;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #d0fc16;
  color: #182000;
  font-size: 20px;
  font-weight: 600;
}
.deposit-network {
  display: grid;
  place-items: center;
  position: absolute;
  right: -3px;
  bottom: -2px;
  width: 17px;
  height: 17px;
  font-size: 10px;
  line-height: 1;
  background: #d0fc16;
  color: #182000;
  border: 2px solid #202220;
  border-radius: 6px;
}
.deposit-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}
.deposit-card-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 12px;
}
.deposit-usd {
  color: #a9afaa;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.deposit-card .deposit-card-bottom {
  margin-top: 16px;
}
.deposit-portions {
  display: flex;
  gap: 5px;
}
.deposit-portions button {
  border: 1px solid #424641;
  border-radius: 999px;
  padding: 4px 10px;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  color: #b5bbb6;
}
.deposit-portions button:hover:not(:disabled) {
  border-color: var(--lime);
  color: var(--lime);
  background: #2b3226;
}
.deposit-balance {
  font-size: 13px;
  color: #a9afaa;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.deposit-fix {
  display: block;
  margin: 0 0 0 auto;
  padding: 2px 0;
  font-size: 10px;
  border: 0;
  background: transparent;
  color: #8c968e;
}
.deposit-fix[aria-pressed="true"] {
  color: var(--lime);
}
.deposit-fix:hover {
  background: transparent;
  color: white;
}
.deposit-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
}
.deposit-price-row button {
  font-size: 11px;
  padding: 7px 10px;
  white-space: nowrap;
}
.deposit-total {
  font-size: 14px;
  font-weight: 600;
  margin: 18px 0;
}
#deposit-single-total {
  margin: 8px 0 0;
}
.deposit-details {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
}
.deposit-details summary {
  cursor: pointer;
}
#deposit-note {
  margin: 14px 0 0;
  line-height: 1.65;
}
#deposit-error {
  line-height: 1.65;
  margin-bottom: 14px;
  overflow-wrap: anywhere;
}
#deposit-single-status {
  overflow-wrap: anywhere;
  line-height: 1.6;
  margin-top: 14px;
}
#single-deposit .deposit-card-bottom {
  margin-top: 0;
}
@media (max-width: 420px) {
  .range-card {
    padding: 18px;
    gap: 12px;
  }
  .range-card input {
    font-size: 23px;
  }
  .range-stepper button {
    width: 36px;
    height: 36px;
  }
  .deposit-card {
    padding: 20px 17px 12px;
    border-radius: 22px;
  }
  .deposit-card-main {
    gap: 12px;
  }
  .deposit-card-main input {
    font-size: 31px;
  }
  .deposit-card-main input.deposit-long-value {
    font-size: 18px;
  }
  .deposit-token {
    font-size: 19px;
    gap: 8px;
  }
  .deposit-token-icon {
    width: 32px;
    height: 32px;
    font-size: 18px;
  }
  .deposit-card-bottom {
    gap: 10px;
  }
  .deposit-portions button {
    font-size: 12px;
    padding: 4px 8px;
  }
  .deposit-balance {
    margin-left: auto;
    font-size: 12px;
  }
  .deposit-price-row {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Wallet queue: the complete plan stays in one dialog throughout signing. */
.transaction-steps {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}
.transaction-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  position: relative;
  padding: 14px 12px;
  border-radius: 14px;
}
.transaction-step + .transaction-step {
  margin-top: 4px;
}
.transaction-step.active {
  background: #bbf16b0d;
  box-shadow: inset 0 0 0 1px #bbf16b35;
}
.step-icon {
  display: grid;
  place-items: center;
  flex: 0 0 30px;
  height: 30px;
  border: 1px solid #485045;
  border-radius: 50%;
  color: #8e978c;
  font-size: 13px;
  margin-top: 2px;
}
.step-icon .spinner {
  width: 22px;
  height: 22px;
  margin: 0;
}
.active .step-icon {
  border-color: transparent;
}
.success .step-icon {
  background: #bbf16b;
  border-color: #bbf16b;
  color: #15200e;
  font-weight: 700;
}
.error .step-icon {
  color: #ff8d88;
  border-color: #ff8d88;
}
.step-copy {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 3px;
}
.step-copy b {
  font-size: 15px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.step-copy small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.step-status {
  color: var(--muted);
  font-size: 12px;
}
.active .step-status,
.success .step-status {
  color: #bbf16b;
}
.error .step-status {
  color: #ff8d88;
}
.step-tx {
  padding: 5px 2px;
}
.transaction-step.success,
.transaction-step.error {
  background: transparent;
  border: 0;
  margin-bottom: 0;
}
.queue-summary {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
#queue-stop {
  margin-left: auto;
}
@media (prefers-reduced-motion: reduce) {
  .transaction-steps .spinner {
    animation-duration: 2s;
  }
}
dialog:has(.transaction-steps) .modal-head {
  padding: 17px 22px;
}

.notification-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.notification-card {
  padding: 24px;
  margin-bottom: 20px;
  min-width: 0;
}
.notification-card h2 {
  font-size: 21px;
  margin: 14px 0;
}
.notification-card .sub {
  line-height: 1.7;
}
.notification-card .field {
  margin: 20px 0;
}
.notification-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.notification-pair {
  border: 1px solid #bbf16b50;
  border-radius: 16px;
  padding: 20px;
  margin-top: 20px;
  line-height: 1.6;
}
.notification-pair .button {
  display: inline-block;
  text-decoration: none;
  padding: 12px 18px;
  border-radius: 10px;
  background: var(--lime);
  color: #15200e;
  font-weight: 600;
  margin: 8px 8px 8px 0;
}
.notification-owner {
  display: flex;
  align-items: center;
  gap: 16px;
}
.notification-owner .field {
  flex: 1;
  min-width: 0;
}
.notification-wallet {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 18px;
}
.notification-wallet .code {
  overflow-wrap: anywhere;
}
@media (max-width: 900px) {
  .notification-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
}
@media (max-width: 600px) {
  .notification-card {
    padding: 18px;
  }
  .notification-owner {
    display: block;
  }
  .notification-wallet .box-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
}
dialog:has(.transaction-steps) .modal-body {
  padding: 16px 22px;
}
dialog:has(.transaction-steps) .modal-foot {
  padding: 14px 22px;
}
.transaction-steps {
  margin: 12px 0;
}
.transaction-step {
  padding: 8px 10px;
}
.transaction-step + .transaction-step {
  margin-top: 2px;
}
.step-copy {
  gap: 2px;
}
.step-copy small,
.step-status {
  font-size: 11px;
}

.watch-count {
  font-size: 17px;
}
.address-fields {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(260px, 1.5fr);
  gap: 18px;
}
.address-form-actions,
.address-wallet-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.address-book .notification-wallet {
  border: 1px solid var(--line);
  margin-top: 0;
}
.notification-wallet h2 {
  margin: 0 0 10px;
  overflow-wrap: anywhere;
}
.notification-wallet h2 .pill {
  margin-left: 12px;
  vertical-align: middle;
}
.watch-position {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 0.8fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.watch-position small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 7px;
  overflow-wrap: anywhere;
}
.watch-position .range-status {
  font-size: 12px;
}
.notification-settings {
  margin-top: 30px;
}
.notification-settings > summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
  list-style: none;
}
.notification-settings > summary::-webkit-details-marker {
  display: none;
}
.notification-settings > summary > span::after {
  content: " ＋";
  color: var(--lime);
}
.notification-settings[open] > summary > span::after {
  content: " −";
}
.notification-settings summary small {
  display: block;
  color: var(--muted);
  margin-top: 8px;
}
.notification-settings-body {
  border-top: 1px solid var(--line);
  padding: 20px;
}
.notification-settings-body .notification-card {
  margin-bottom: 0;
}
@media (max-width: 1100px) {
  .address-fields {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .watch-position {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .watch-position button {
    justify-self: end;
  }
}
@media (max-width: 600px) {
  .notification-settings > summary {
    padding: 18px;
    font-size: 14px;
  }
  .notification-settings-body {
    padding: 12px;
  }
  .watch-position {
    gap: 12px;
  }
  .notification-wallet h2 .pill {
    display: inline-block;
    margin-left: 0;
    margin-top: 8px;
  }
}
