/* Launcher app shell — Proxima-style sidebar */
:root {
  --sb-w: 264px; --sb-w-c: 56px;
  --bg: #0b0b0e; --sb-bg: #0f0f13; --panel: #131318; --panel2: #18181e;
  --line: #22222a; --line2: #2c2c36; --text: #e8e8ec; --dim: #a3a3ad; --faint: #80808c;
  /* numbers use the regular UI font; tabular digits keep them from shifting as they update */
  --mono: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif;
}
body { font-size: 13.5px; overflow: hidden; font-variant-numeric: tabular-nums; }
.ic { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ic.sm { width: 14px; height: 14px; }

.app { display: flex; height: 100vh; }

/* ---------- sidebar ---------- */
.sb {
  width: var(--sb-w); flex: none; background: var(--sb-bg); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; transition: width .18s ease; position: relative; z-index: 5;
}
.sb-head { height: 52px; display: flex; align-items: center; justify-content: space-between; padding: 0 12px 0 14px; border-bottom: 1px solid var(--line); flex: none; }
.sb-head .logo { font-size: 14px; gap: 9px; white-space: nowrap; overflow: hidden; }
.sb-head .logo-mark { width: 22px; height: 22px; }
.sb-toggle {
  width: 28px; height: 28px; border: 0; background: none; border-radius: 5px; color: var(--dim);
  display: grid; place-items: center; cursor: pointer; flex: none;
}
.sb-toggle:hover { color: var(--text); }

.sb-actions { display: flex; gap: 8px; padding: 12px; border-bottom: 1px solid var(--line); flex: none; }
.sb-btn {
  display: flex; align-items: center; justify-content: center; gap: 7px; height: 34px; padding: 0 12px;
  border-radius: 6px; border: 1px solid var(--line2); background: var(--panel); color: var(--text);
  text-decoration: none; font-weight: 500; font-size: 13px; white-space: nowrap; transition: background .15s, border-color .15s;
}
.sb-btn:hover { background: var(--panel2); border-color: #3a3a46; }
.sb-btn.primary { flex: 1; background: var(--accent); border-color: var(--accent); color: #0a0a0c; }
.sb-btn.primary:hover { background: var(--accent-hi); border-color: var(--accent-hi); }

.sb-section { padding: 10px 8px; border-bottom: 1px solid var(--line); flex: none; }
.sb-section-head {
  width: 100%; display: flex; align-items: center; justify-content: space-between; border: 0; background: none;
  color: var(--dim); font-size: 12px; font-weight: 500; padding: 2px 6px 6px; cursor: pointer;
}
.sb-section-head:hover { color: var(--text); }
.sb-section-head .ic { transition: transform .15s; }
.sb-section.closed .sb-section-head .ic { transform: rotate(-90deg); }
.sb-section.closed .sb-nav { display: none; }
.sb-nav a {
  display: flex; align-items: center; gap: 10px; height: 32px; padding: 0 8px; border-radius: 5px;
  color: #c4c4cc; text-decoration: none; font-weight: 500; white-space: nowrap;
}
.sb-nav a:hover { background: #ffffff08; color: var(--text); }
.sb-nav a.active { background: #ffffff0d; color: var(--text); }

.sb-tokens { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 12px 8px 8px; }
.sb-label { color: var(--dim); font-size: 12px; font-weight: 500; padding: 0 6px 8px; }
.sb-token-list { overflow-y: auto; flex: 1; }
.sb-empty { color: var(--faint); font-size: 12.5px; padding: 2px 6px; }
.tok {
  display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 5px;
  text-decoration: none; color: var(--text); white-space: nowrap; width: 100%; border: 0; background: none; cursor: pointer; text-align: left;
}
.tok:hover { background: #ffffff08; }
.tok-row { position: relative; }
.tok-row .tok { position: relative; }
/* the launchpad's logo on the token logo's bottom-right corner, in a dark circle so it stands apart */
.tok-pad { position: absolute; left: 27px; top: 21px; width: 16px; height: 16px; border-radius: 50%; background: #0b0b0e; display: grid; place-items: center; pointer-events: none; }
.tok-pad img { width: 10px; height: 10px; object-fit: contain; }
.sb-collapsed .tok-pad { left: 23px; top: 19px; }
.tok-row .tok { padding-right: 34px; }
.tok-row:hover .tok { background: #ffffff08; }
.tok-more {
  position: absolute; right: 6px; top: 50%; translate: 0 -50%; width: 24px; height: 24px; border: 0; border-radius: 4px;
  display: grid; place-items: center; background: none; color: var(--dim); cursor: pointer; opacity: 0; transition: opacity .12s;
}
.tok-more .ic { width: 16px; height: 16px; }
.tok-row:hover .tok-more, .tok-more:focus-visible, .tok-more.open { opacity: 1; }
.tok-more:hover, .tok-more.open { color: var(--text); }
.tok-menu {
  position: fixed; z-index: 60; min-width: 168px; padding: 4px; border-radius: 6px;
  background: rgba(16,17,20,.98); border: 1px solid #22242d; box-shadow: 0 12px 40px #000a;
}
.tok-menu button {
  display: flex; align-items: center; gap: 9px; width: 100%; padding: 7px 9px; border: 0; border-radius: 5px;
  background: none; color: var(--text); font: inherit; font-size: 13px; cursor: pointer; text-align: left;
}
.tok-menu button .ic { width: 15px; height: 15px; color: var(--dim); }
.tok-menu button:hover { background: #ffffff0a; }
.tok-menu .danger, .tok-menu .danger .ic { color: var(--err); }
.tok-menu .danger:hover { background: #ff5c5c14; }
.tok-img { width: 28px; height: 28px; border-radius: 5px; background: var(--panel2) center/cover; flex: none; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: var(--dim); }
.tok-txt { min-width: 0; line-height: 1.25; }
.tok-txt b { display: block; font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.tok-txt span { display: block; font-size: 12px; color: var(--dim); overflow: hidden; text-overflow: ellipsis; }

/* collapsed rail */
.sb-collapsed .sb { width: var(--sb-w-c); }
.sb-collapsed .sb .label { display: none; }
.sb-collapsed .sb-head { flex-direction: column; justify-content: center; padding: 0; }
.sb-collapsed .sb-head .logo { display: none; }
.sb-collapsed .sb-actions { flex-direction: column; padding: 12px 10px; }
.sb-collapsed .sb-btn { padding: 0; width: 36px; flex: none; }
.sb-collapsed .sb-section { padding: 10px; }
.sb-collapsed .sb-section .sb-nav { display: block; }
.sb-collapsed .sb-nav a { justify-content: center; padding: 0; width: 36px; }
.sb-collapsed .sb-tokens { padding: 12px 10px; }
.sb-collapsed .tok { padding: 4px; justify-content: center; }
.sb-collapsed .sb-empty { display: none; }
.sb-collapsed .tok-more { display: none; }
.sb-collapsed .tok-row .tok { padding-right: 4px; }
.sb-collapsed [data-tip] { position: relative; }
.sb-collapsed [data-tip]:hover::after {
  content: attr(data-tip); position: absolute; left: calc(100% + 10px); top: 50%; transform: translateY(-50%);
  background: var(--panel2); border: 1px solid var(--line2); color: var(--text); font-size: 12.5px; font-weight: 500;
  padding: 5px 9px; border-radius: 5px; white-space: nowrap; pointer-events: none; z-index: 20;
}

/* ---------- main ---------- */
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; position: relative; }
.admin-btn { position: absolute; top: 0; right: 20px; height: 52px; z-index: 5; display: flex; align-items: center; gap: 7px; color: var(--dim); font-weight: 500; font-size: 13.5px; text-decoration: none; transition: color .15s; }
.admin-btn:hover { color: var(--accent); }
.topbar { height: 52px; flex: none; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: center; gap: 6px; }
.steps a {
  font: 600 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--faint);
  padding: 5px 9px; border-radius: 4px; text-decoration: none;
}
.steps a.done { color: var(--dim); }
.steps a.done:hover { color: var(--text); }
.steps a.on { color: var(--text); }
.steps a.off { pointer-events: none; }
.view { flex: 1; overflow-y: auto; }

.col { max-width: 980px; margin: 0 auto; min-height: 100%; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.col.wide { max-width: 1100px; }
.col-head { padding: 26px 28px 22px; border-bottom: 1px solid var(--line); }
.col-head h1 { margin: 0 0 4px; font-size: 20px; letter-spacing: -0.015em; display: flex; align-items: center; gap: 10px; }
.col-head p { margin: 0; color: var(--dim); font-size: 13px; }
.col-body { padding: 22px 28px; }
.col-foot { padding: 18px 28px; border-top: 1px solid var(--line); display: flex; justify-content: center; gap: 10px; }

.sec-label { font: 600 11px var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--dim); margin: 0 0 10px; }
.sec + .sec { margin-top: 24px; }

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pick {
  border: 1px solid var(--line); background: var(--panel); border-radius: 6px; padding: 12px 14px; cursor: pointer;
  text-align: left; display: flex; flex-direction: column; gap: 2px; transition: border-color .15s, background .15s;
}
.pick:hover { border-color: var(--line2); background: var(--panel2); }
.pick.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.pick b { font-size: 13.5px; font-weight: 600; }
.pick span { font: 500 10.5px var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--faint); }

.f { display: block; }
.f-row { display: grid; gap: 12px; margin-bottom: 14px; }
.f-row.c2 { grid-template-columns: 2fr 1fr; }
.f-row.c3 { grid-template-columns: repeat(3, 1fr); }
.f > span { display: block; font-size: 12.5px; font-weight: 600; margin-bottom: 6px; }
.f > span em { font-style: normal; color: var(--faint); font-weight: 500; }
.f > span .req { color: var(--accent-hi); }
.f input, .f textarea {
  width: 100%; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 9px 11px;
  outline: none; font-size: 13.5px; transition: border-color .15s; resize: vertical;
}
.f input:focus, .f textarea:focus { border-color: var(--accent); }
.f input::placeholder, .f textarea::placeholder { color: var(--faint); }
.f input.mono { font-family: var(--mono); font-size: 12.5px; }
/* placeholders always use the regular font, even in a mono field */
input::placeholder, textarea::placeholder { font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif; }
.f input.mono::placeholder { font-size: 13.5px; }
.suffix { position: relative; }
.suffix input { padding-right: 46px; }
.suffix i { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font: 700 11.5px var(--mono); color: var(--faint); font-style: normal; }

/* create: the logo square on the left, name, symbol and description stacked on its right */
.cr-top { display: grid; grid-template-columns: auto 1fr; gap: 16px; margin-bottom: 14px; }
.cr-fields { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.logo-drop {
  position: relative; width: 117px; height: 117px; border: 1px dashed var(--line2); border-radius: 8px; overflow: hidden;
  background: var(--panel) center/cover no-repeat; display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: border-color .15s;
}
.logo-drop:hover, .logo-drop.over { border-color: var(--accent); }
.ld-in { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 8px; text-align: center; color: var(--dim); font-size: 11.5px; line-height: 1.3; transition: opacity .15s; }
.ld-in u { color: var(--accent-hi); text-decoration: none; }
.logo-drop.has { border-style: solid; border-color: var(--line); }
.logo-drop.has .ld-in { position: absolute; inset: 0; background: #000b; opacity: 0; }
.logo-drop.has:hover .ld-in, .logo-drop.has.over .ld-in { opacity: 1; }
@media (max-width: 560px) { .cr-top { grid-template-columns: 1fr; } }

.err { color: var(--err); font-size: 13px; min-height: 18px; margin-top: 8px; text-align: center; }

.empty { text-align: center; color: var(--dim); padding: 60px 20px; }
.empty b { display: block; color: var(--text); font-size: 14.5px; margin-bottom: 4px; }
.empty .btn { margin-top: 16px; }

/* summary / stat rows */
.kv { border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.kv div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 14px; border-top: 1px solid var(--line); font-size: 13px; }
.kv div:first-child { border-top: 0; }
.kv dt, .kv span:first-child { color: var(--dim); }
.kv span:last-child { text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.stats div { padding: 12px 14px; border-left: 1px solid var(--line); }
.stats div:first-child { border-left: 0; }
.stats span { display: block; font: 600 10.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--faint); margin-bottom: 4px; }
.stats b { font-size: 15px; font-variant-numeric: tabular-nums; }
.up { color: #4ade80; } .down { color: var(--err); }

.addr { display: inline-flex; align-items: center; gap: 4px; font: 12px var(--mono); color: var(--dim); margin-top: 4px; }
.icon-btn { border: 0; background: none; color: var(--dim); cursor: pointer; padding: 3px; border-radius: 4px; display: grid; place-items: center; }
.icon-btn:hover { color: var(--text); }
.links { display: flex; gap: 8px; flex-wrap: wrap; }
.links a { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text); text-decoration: none; border: 1px solid var(--line2); border-radius: 5px; padding: 6px 10px; }
.links a:hover { background: var(--panel2); }
.btn.sm { padding: 8px 14px; font-size: 13px; border-radius: 6px; }
.btn.danger { background: transparent; border: 1px solid #ff5c5c44; color: var(--err); }
.btn.danger:hover { background: #ff5c5c14; }
.badge { font: 600 10.5px var(--mono); letter-spacing: .05em; text-transform: uppercase; padding: 2px 7px; border-radius: 4px; color: var(--dim); border: 1px solid var(--line2); }


.toast {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--panel2); border: 1px solid var(--line2);
  border-radius: 6px; padding: 10px 16px; font-size: 13px; z-index: 100; box-shadow: 0 10px 30px #0008;
}

@media (max-width: 760px) {
  .grid3, .f-row.c3, .stats { grid-template-columns: 1fr 1fr; }
  .f-row.c2 { grid-template-columns: 1fr; }
}

/* chain + launchpad pickers */
.pick b { display: flex; align-items: center; gap: 8px; }
.pick img.lg { width: 18px; height: 18px; border-radius: 4px; object-fit: cover; flex: none; }
.pick.pad { align-items: center; justify-content: center; padding: 11px 10px; }
.pick.pad b { font-weight: 500; }
.pads-mini { display: flex; align-items: center; gap: 3px; margin-top: 4px; }
.pads-mini img.xs { width: 14px; height: 14px; border-radius: 3px; object-fit: cover; }
.pads-mini img.xs:last-of-type { margin-right: 5px; }
.pick.on .pads-mini { color: var(--accent-hi); }

/* square selectors with TurboMint-style corner brackets (no full border) */
:root { --corner: #24272e; --arm: 8px; --t: 1.5px; }
.pick { position: relative; border: 0; border-radius: 0; background: transparent; transition: background .15s; }
.pick::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; --c: var(--corner);
  background:
    linear-gradient(var(--c), var(--c)) left top / var(--arm) var(--t) no-repeat,
    linear-gradient(var(--c), var(--c)) left top / var(--t) var(--arm) no-repeat,
    linear-gradient(var(--c), var(--c)) right top / var(--arm) var(--t) no-repeat,
    linear-gradient(var(--c), var(--c)) right top / var(--t) var(--arm) no-repeat,
    linear-gradient(var(--c), var(--c)) left bottom / var(--arm) var(--t) no-repeat,
    linear-gradient(var(--c), var(--c)) left bottom / var(--t) var(--arm) no-repeat,
    linear-gradient(var(--c), var(--c)) right bottom / var(--arm) var(--t) no-repeat,
    linear-gradient(var(--c), var(--c)) right bottom / var(--t) var(--arm) no-repeat;
}
.pick:hover { background: #ffffff0a; border: 0; }
.pick:hover::before { --c: #3a3f4b; }
.pick.on, .pick.on:hover { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.pick.on::before { --c: var(--accent); }

/* step / action buttons — Proxima's dark button */
.col-foot .btn:not(.danger) {
  background: #18181f; color: #fcfcfc; border: 1px solid #22242d; border-radius: 6px;
  height: 36px; padding: 0 18px; font-size: 12.5px; font-weight: 500; letter-spacing: -0.01em;
  display: inline-flex; align-items: center; transition: background .15s, border-color .15s;
}
.col-foot .btn:not(.danger):hover { background: #1f1f28; border-color: #30323e; }
.col-foot .btn:not(.danger):disabled { background: #131318; color: #5f616c; border-color: #1c1d24; opacity: 1; cursor: default; }

/* selected state follows the chain's color */
.pick.on, .pick.on:hover { background: color-mix(in srgb, var(--sel, var(--accent)) 12%, transparent); }
.pick.on::before { --c: var(--sel, var(--accent)); }
.pick.on .pads-mini { color: var(--sel, var(--accent-hi)); }

/* trending */
.trend-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.trend-head h1 { margin: 0; }
.trend-bar { display: flex; gap: 8px; flex-wrap: wrap; }
.seg { display: flex; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 2px; }
.seg button { border: 0; background: none; color: var(--dim); font-size: 12.5px; font-weight: 500; padding: 5px 10px; border-radius: 5px; cursor: pointer; }
.seg button:hover { color: var(--text); }
.seg button.on { background: var(--panel2); color: var(--text); box-shadow: 0 0 0 1px var(--line2); }
.trend-table { font-size: 13px; }
.tr { display: grid; grid-template-columns: minmax(200px, 1fr) 84px 70px 70px 70px 84px 84px 96px; align-items: center; gap: 8px; padding: 9px 20px 9px 22px; border-bottom: 1px solid var(--line); }
.tr:not(.th):hover { background: #ffffff05; }
.tr.th { font: 600 10.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--dim); padding-top: 11px; padding-bottom: 11px; }
.tr.th span:nth-child(n+2) { text-align: right; }
.tr .num { text-align: right; font-variant-numeric: tabular-nums; }
.tr .num.dim { text-align: left; color: var(--faint); }
.tt { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tt .tok-txt span { white-space: nowrap; }
.copies { font: 700 10.5px var(--mono); font-style: normal; color: var(--faint); }
.mint { border: 0; background: none; padding: 0; color: var(--faint); font: 11.5px var(--mono); cursor: pointer; }
.mint:hover { color: var(--text); }
.acts { display: flex; justify-content: flex-end; align-items: center; gap: 6px; }
.use-btn { border: 1px solid var(--line2); background: var(--panel); border-radius: 5px; padding: 4px 10px; font-size: 12px; font-weight: 500; cursor: pointer; }
.use-btn:hover { background: var(--panel2); border-color: #3a3a46; }

.ic.xs { width: 12px; height: 12px; }
.btn-acc {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 13px; border-radius: 5px; border: 0;
  background: var(--accent); color: #101114; font-size: 12.5px; font-weight: 500; text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn-acc:hover { background: var(--accent-hi); }
.btn-dark {
  display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 14px; border-radius: 5px;
  background: #18181f; border: 1px solid #22242d; color: #fcfcfc; font-size: 12.5px; font-weight: 500; cursor: pointer;
}
.btn-dark:hover { background: #1f1f28; border-color: #30323e; }

/* leaderboard */
.lr { display: grid; grid-template-columns: 40px minmax(180px, 1.5fr) repeat(4, minmax(100px, 1fr)); align-items: center; gap: 8px; padding: 11px 24px; border-bottom: 1px solid var(--line); font-size: 13px; }
.lr:not(.th):hover { background: #ffffff05; }
.lr.th { font: 600 10.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
.lr.th span:nth-child(n+3) { text-align: right; }
.lr .num { text-align: right; font-variant-numeric: tabular-nums; }
.lr .num.dim { color: var(--dim); }
.rank { font: 700 12px var(--mono); color: var(--faint); }
.rank.r1 { color: #f5c542; } .rank.r2 { color: #c9ced6; } .rank.r3 { color: #d08a52; }
.lb-user { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12.5px; }
.lb-av { width: 24px; height: 24px; border-radius: 50%; flex: none; overflow: hidden; background: var(--panel2); }

/* ghost backdrop behind an empty state (Proxima's dashboard) */
.ghost-wrap { position: relative; min-height: 560px; overflow: hidden; }
.ghost { position: absolute; inset: 0; padding: 22px 28px; opacity: .55; pointer-events: none;
  -webkit-mask-image: linear-gradient(#000 40%, transparent 95%); mask-image: linear-gradient(#000 40%, transparent 95%); }
.ghost i, .ghost b { display: block; background: #ffffff06; border-radius: 4px; }
.g-row { display: flex; justify-content: space-between; gap: 24px; }
.g-stat i:first-child { width: 90px; height: 10px; } .g-stat b { width: 160px; height: 34px; margin: 8px 0; } .g-stat i:last-child { width: 120px; height: 9px; }
.g-tabs { display: flex; gap: 4px; align-items: flex-start; } .g-tabs i { width: 42px; height: 24px; } .g-tabs b { width: 104px; height: 28px; margin-left: 8px; }
.g-wave { display: block; width: 100%; height: 120px; margin: 40px 0 30px; fill: none; stroke: #ffffff0d; stroke-width: 1.5; }
.g-kpis > div { flex: 1; } .g-kpis i { width: 90px; height: 9px; } .g-kpis b { width: 70px; height: 18px; margin-top: 8px; }
.g-tbl { margin-top: 44px; } .g-tbl > div { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 24px; padding: 14px 0; }
.g-tbl i { height: 9px; width: 70%; } .g-tbl > div:first-child i { width: 50%; }
.ghost-empty { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 170px; }
.ghost-empty b { font-size: 15px; font-weight: 500; margin-bottom: 6px; }
.ghost-empty span { color: #787a8d; font-size: 12.5px; margin-bottom: 14px; }

/* rewards (Proxima's layout) */
.rw { max-width: 840px; margin: 0 auto; padding: 22px 24px 60px; position: relative; }
.rw::before { content: ""; position: absolute; inset: -40px -200px auto; height: 520px; pointer-events: none; z-index: -1;
  background: radial-gradient(closest-side at 72% 30%, color-mix(in srgb, var(--accent) 11%, transparent), transparent); }
.rw-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; }
.rw-head h1 { margin: 0; font-size: 26px; font-weight: 500; letter-spacing: -0.012em; }
.rw-head p { margin: 2px 0 0; color: #787a8d; font-size: 13px; font-weight: 500; }
.rw-card { background: rgba(16, 17, 20, .9); border: 1px solid #22242d; border-radius: 12px; overflow: hidden; backdrop-filter: blur(10px); }
.rw-banner {
  display: flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 18px; font-size: 13px; font-weight: 500; color: #fcfcfc;
  background: linear-gradient(110deg, color-mix(in srgb, var(--accent) 6%, transparent), color-mix(in srgb, var(--accent) 14%, transparent), color-mix(in srgb, var(--accent) 34%, transparent), color-mix(in srgb, var(--accent) 16%, transparent) 72%, color-mix(in srgb, var(--accent) 7%, transparent));
}
.rw-banner .ic { width: 18px; height: 18px; }
.rw-total { display: flex; flex-direction: column; align-items: center; padding: 22px 0 0; }
.rw-seg { background: #18181f; border: 0; border-radius: 5px; margin-bottom: 16px; }
.rw-seg button { font-size: 12px; padding: 4px 9px; border-radius: 4px; color: #787a8d; }
.rw-seg button.on { background: #22242d; box-shadow: none; color: #fcfcfc; }
.rw-k { color: #787a8d; font-size: 13px; font-weight: 500; }
.rw-v { color: #787a8d; font-size: 52px; font-weight: 500; letter-spacing: -0.03em; line-height: 1.05; margin: 2px 0 4px; }
.rw-s { color: #787a8d; font-size: 12px; font-weight: 500; }
.rw-curve { display: block; width: 100%; height: 130px; margin-top: -24px; }
.rw-curve .fill { fill: url(#rwFill); }
.rw-curve .line { fill: none; stroke: #787a8d; stroke-opacity: .6; stroke-width: 1.4; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
.rw-body { padding: 18px 0 18px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.rw-tiles { width: 660px; max-width: calc(100% - 36px); display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rw-tile { position: relative; overflow: hidden; background: #101114; border: 1px solid #22242d; border-radius: 10px; padding: 18px 20px; display: flex; flex-direction: column; }
.rw-tile.cash { background: radial-gradient(ellipse 60% 90% at 90% 0%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%), #101114; }
.rw-tile.ref { background: radial-gradient(ellipse 60% 90% at 90% 0%, #31e3ac17, transparent 70%), #101114; }
.rw-art { position: absolute; right: -16px; top: 50%; transform: translateY(-50%); width: 104px; height: 104px; fill: none; stroke: #fcfcfc; stroke-opacity: .14; stroke-width: 1; }
.rw-tag { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.rw-tile.ref .rw-tag { color: #31e3ac; }
.rw-tile b { font-size: 26px; font-weight: 500; letter-spacing: -0.015em; margin: 4px 0 6px; }
.rw-sub { color: #787a8d; font-size: 13px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; position: relative; }
.rw-note { width: 660px; max-width: calc(100% - 36px); display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #101114; border: 1px solid #22242d; border-radius: 10px; padding: 14px 14px 14px 20px; }
.rw-note span { color: #b9b9c8; font-size: 13px; font-weight: 500; }
.rw-note .btn-acc { height: 28px; padding: 0 14px; }
.rw-link { width: 660px; max-width: calc(100% - 36px); position: relative; background: #101114; border: 1px solid #22242d; border-radius: 8px; padding: 26px 56px; text-align: center; }
.rw-link p { margin: 0; font-size: 26px; font-weight: 500; letter-spacing: -0.012em; cursor: pointer; }
.rw-link p span { color: #787a8d; }
.rw-link strong { font-weight: 500; color: #fcfcfc; }
.rw-link .icon-btn { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; }
.rw-soon { width: 660px; max-width: calc(100% - 36px); display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #101114; border: 1px solid #22242d; border-radius: 10px; padding: 16px 16px 16px 20px; }
.rw-soon div { display: flex; flex-direction: column; gap: 2px; }
.rw-soon b { font-size: 15px; font-weight: 500; color: #fcfcfc; }
.rw-soon span { color: #787a8d; font-size: 13px; font-weight: 500; }
.rw-soon button { height: 32px; padding: 0 16px; flex: none; }
.rw-soon .btn-dark:disabled { opacity: 1; color: var(--dim); cursor: default; }
.rq-handle { display: flex; align-items: center; border: 1px solid var(--line2); border-radius: 6px; background: var(--panel); padding-left: 12px; transition: border-color .15s; }
.rq-handle:focus-within { border-color: var(--accent); }
.rq-handle em { font-style: normal; color: var(--faint); font-size: 13.5px; white-space: nowrap; }
.f .rq-handle input { border: 0; background: none; padding-left: 0; }
.rw-input { font: inherit; font-size: 26px; font-weight: 500; color: #fcfcfc; background: transparent; border: 0; border-bottom: 1px solid var(--accent); outline: none; width: 9ch; padding: 0; }
@media (max-width: 760px) { .rw-tiles { grid-template-columns: 1fr; } .lr { grid-template-columns: 32px 1fr 90px 110px; } .lr span:nth-child(n+5) { display: none; } }

/* sidebar footer: local username */
.sb-foot { border-top: 1px solid var(--line); padding: 10px 8px; flex: none; }
.sb-user {
  width: 100%; display: flex; align-items: center; gap: 10px; padding: 6px 8px; border: 0; border-radius: 6px;
  background: none; cursor: pointer; text-align: left; color: var(--text);
}
.sb-user:hover { background: #ffffff0a; }
.avatar { width: 28px; height: 28px; border-radius: 50%; flex: none; overflow: hidden; background: var(--panel2); }
.sb-user-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 500; }
.sb-user-input { flex: 1; min-width: 0; background: var(--panel); border: 1px solid var(--accent); border-radius: 4px; padding: 3px 7px; font-size: 13px; outline: none; }
.sb-collapsed .sb-foot { padding: 10px; }
.sb-collapsed .sb-user { padding: 4px; justify-content: center; }

/* profile popup */
.pf-back { position: fixed; inset: 0; z-index: 50; background: #05050799; backdrop-filter: blur(4px); display: grid; place-items: center; padding: 20px; animation: pf-fade .12s ease-out; }
@keyframes pf-fade { from { opacity: 0; } }
.pf {
  position: relative; width: 100%; max-width: 360px; background: rgba(16,17,20,.96); border: 1px solid #22242d; border-radius: 12px;
  padding: 32px 28px 28px; display: flex; flex-direction: column; align-items: center; gap: 14px; box-shadow: 0 24px 80px #000a;
}
.pf-close { position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; border: 0; border-radius: 5px; background: none; color: var(--dim); cursor: pointer; display: grid; place-items: center; }
.pf-close:hover { color: var(--text); }
.pf-avatar { position: relative; width: 84px; height: 84px; border-radius: 50%; box-shadow: 0 0 0 4px #ffffff10; background: var(--panel2); }
.pf-avatar > svg { width: 100%; height: 100%; border-radius: 50%; }
.pf-shuffle {
  position: absolute; right: -30px; bottom: 0; width: 26px; height: 26px; border: 0; cursor: pointer;
  display: grid; place-items: center; background: none; color: var(--dim);
  opacity: 0; transition: opacity .12s;
}
.pf-avatar:hover .pf-shuffle, .pf-shuffle:focus-visible { opacity: 1; }
.pf-shuffle:hover { color: var(--text); }
.pf-name { display: flex; align-items: center; gap: 6px; height: 28px; font-size: 17px; font-weight: 600; }
.pf-edit { border: 0; background: none; color: var(--faint); cursor: pointer; padding: 4px; border-radius: 4px; display: grid; place-items: center; }
.pf-edit:hover { color: var(--text); }
.pf-stats { height: 22px; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13.5px; color: var(--dim); max-width: 100%; }
.pf-stats { margin-top: -10px; gap: 18px; }
.pf-stats b { color: var(--text); font-weight: 600; margin-right: 4px; font-variant-numeric: tabular-nums; }
.pf-stats b.up { color: #31e3ac; }
.pf-stats b.down { color: #ff6b7a; }
.pf-link { border: 0; background: none; padding: 0; color: var(--accent); font-size: 13.5px; font-weight: 500; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; flex: none; }
.pf-link:hover { color: var(--accent-hi); }
.pf-input { background: none; border: 0; border-bottom: 1px solid var(--accent); padding: 2px 2px; font-size: 13.5px; outline: none; color: var(--text); min-width: 0; text-align: center; }
.pf-name .pf-input { width: 170px; font-size: 17px; font-weight: 600; }

.avatar svg, .lb-av svg { display: block; width: 100%; height: 100%; }

/* token logos with fallback: letters underneath, image on top once it loads */
.tok-img { position: relative; overflow: hidden; }
.tok-img > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* leaderboard podium: top 3 on stepped pedestals */
.lb-pod { display: grid; grid-template-columns: 1fr 1.12fr 1fr; align-items: end; gap: 16px; padding: 36px 28px 0; border-bottom: 1px solid var(--line);
  background: radial-gradient(60% 80% at 50% 0%, #f5c54214, transparent 70%); }
.lb-pod .m1 { --m: #f5c542; --mg: linear-gradient(135deg, #fff4b8 0%, #f5c542 35%, #b9860f 65%, #ffe58f 100%); }
.lb-pod .m2 { --m: #c9ced6; --mg: linear-gradient(135deg, #ffffff 0%, #c9ced6 35%, #7c8591 65%, #eef1f5 100%); }
.lb-pod .m3 { --m: #d9905a; --mg: linear-gradient(135deg, #ffd6b0 0%, #d9905a 35%, #8c4f22 65%, #f3b583 100%); }
.pod-slot { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.pod-glow { position: absolute; top: -10px; width: 150px; height: 150px; border-radius: 50%; pointer-events: none; filter: blur(10px);
  background: radial-gradient(circle, color-mix(in srgb, var(--m) 35%, transparent), transparent 65%); }
.pod-crown { width: 24px; height: 24px; margin-bottom: -4px; color: #f5c542; filter: drop-shadow(0 0 8px #f5c54299); }
.pod-ring { position: relative; padding: 3px; border-radius: 50%; background: var(--mg); }
.pod-ring .lb-av { display: block; width: 68px; height: 68px; border: 3px solid #0b0b0e; }
.m1 .pod-ring .lb-av { width: 88px; height: 88px; }
.pod-who { margin-top: 8px; font: 500 13.5px var(--mono); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pod-profit { font-size: 24px; font-weight: 700; letter-spacing: -.015em; font-variant-numeric: tabular-nums; }
.m1 .pod-profit { font-size: 30px; }
.pod-meta { font-size: 12px; color: var(--faint); }
.pod-base { margin-top: 14px; width: 100%; display: grid; place-items: center; border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--m) 24%, #121216), color-mix(in srgb, var(--m) 4%, #0e0e12));
  border-top: 2px solid var(--m); box-shadow: inset 0 1px 0 #ffffff22, 0 -12px 40px -10px color-mix(in srgb, var(--m) 40%, transparent); }
.pod-base b { font: 800 46px/1 var(--mono); background: var(--mg); -webkit-background-clip: text; background-clip: text; color: transparent; }
.m1 .pod-base { height: 118px; } .m2 .pod-base { height: 86px; } .m3 .pod-base { height: 64px; }
.m3 .pod-base b { font-size: 38px; }

/* market maker: − / + around a typed amount, over a chart that climbs with it.
   Square, with the selectors' corner brackets, since it's an input too. */
.mm {
  position: relative; display: grid; grid-template-columns: 52px 1fr 52px; height: 104px; overflow: hidden;
  background: #ffffff04;
}
.mm::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2; --c: var(--accent);
  background:
    linear-gradient(var(--c), var(--c)) left top / var(--arm) var(--t) no-repeat,
    linear-gradient(var(--c), var(--c)) left top / var(--t) var(--arm) no-repeat,
    linear-gradient(var(--c), var(--c)) right top / var(--arm) var(--t) no-repeat,
    linear-gradient(var(--c), var(--c)) right top / var(--t) var(--arm) no-repeat,
    linear-gradient(var(--c), var(--c)) left bottom / var(--arm) var(--t) no-repeat,
    linear-gradient(var(--c), var(--c)) left bottom / var(--t) var(--arm) no-repeat,
    linear-gradient(var(--c), var(--c)) right bottom / var(--arm) var(--t) no-repeat,
    linear-gradient(var(--c), var(--c)) right bottom / var(--t) var(--arm) no-repeat;
}
.mm.off::before { --c: var(--corner); }
.mm.off:hover::before, .mm.off:focus-within::before { --c: #3a3f4b; }
.mm-chart { position: absolute; top: 1px; bottom: 0; left: 52px; width: calc(100% - 104px); height: 100%; pointer-events: none; transition: opacity .2s; }
.mm.off .mm-chart { opacity: 0; }
.mm-line { fill: none; stroke: var(--accent); stroke-opacity: .85; stroke-width: 1.75; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.mm-line, .mm-area { transition: d .35s cubic-bezier(.2, .8, .2, 1); }
.mm-step {
  position: relative; z-index: 1; border: 0; background: #ffffff05; cursor: pointer;
  color: var(--dim); font-size: 20px; font-weight: 400; transition: background .15s, color .15s;
}
.mm-step:hover { background: #ffffff0d; color: var(--text); }
.mm-step:disabled { color: #3a3a44; background: #ffffff03; cursor: default; }
.mm-mid { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; cursor: text; }
.mm-amt { display: flex; align-items: baseline; gap: 6px; line-height: 1; }
.mm-num {
  all: unset; box-sizing: content-box; min-width: 1ch; text-align: right;
  font: 700 28px var(--mono); font-variant-numeric: tabular-nums; color: var(--text); caret-color: var(--accent-hi);
}
.mm.off .mm-num { color: var(--faint); }
.mm-unit { font: 500 12px var(--mono); color: var(--faint); }
.mm-num, .mm-unit { text-shadow: 0 2px 6px rgb(0 0 0 / .8); }
.mm-gauge { display: grid; grid-template-columns: repeat(10, 16px); gap: 3px; }
.mm-gauge i { height: 4px; background: #ffffff14; box-shadow: 0 2px 5px rgb(0 0 0 / .75); transition: background .15s; }
.mm-gauge i.on { background: var(--accent); }
/* a chosen chain / launchpad: only it shows, with Change beside it */
.mm-opts { margin: 14px 0 0; }
.mm-opts.off { opacity: .4; }
.mm-opts.off input { cursor: not-allowed; }
.mm-opts .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mm-opts .pair .suffix { display: block; }
.mm-opts .pair .suffix input { padding-right: 34px; }

/* trending cards */
.tc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; padding: 18px 22px 28px; }
.tc-grid > .empty { grid-column: 1 / -1; }
.tc { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 16px; min-width: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; transition: border-color .15s, background .15s; }
.tc:hover { border-color: var(--line2); background: #15151b; }
.tc-head { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tc-head .tok-img { width: 40px; height: 40px; border-radius: 6px; font-size: 13px; }
.tc-head .tok-txt { flex: 1; }
.logo-peek { position: fixed; z-index: 90; width: 180px; height: 180px; border-radius: 10px; border: 1px solid var(--line2); background: var(--panel2) center/cover no-repeat; box-shadow: 0 14px 40px #000a; pointer-events: none; }
.tc-head .tok-txt b { font-size: 14.5px; white-space: nowrap; }
.tc-head .tok-txt span { white-space: nowrap; }
.tc-rank { flex: none; font: 700 11px var(--mono); color: var(--faint); padding: 2px 7px; border: 1px solid var(--line2); border-radius: 4px; }
.tc-gain { display: flex; align-items: baseline; gap: 8px; }
.tc-stats i { font-style: normal; }
.tc-stats b { overflow: hidden; text-overflow: ellipsis; }
.tc-gain b { font-size: 24px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.tc-gain span { font: 600 10.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.tc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 8px; padding-top: 12px; border-top: 1px dashed var(--line2); }
.tc-stats div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tc-stats span { font: 600 10px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.tc-stats b { font-size: 13px; font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tc-foot { display: flex; align-items: center; gap: 8px; margin-top: auto; font-size: 12px; color: var(--faint); }
.tc-foot .icon-btn { margin-left: auto; }
.tc-use { height: 32px; width: 100%; background: var(--accent); border-color: var(--accent); color: #0a0a0c; }
.tc-use:hover { background: var(--accent-hi); border-color: var(--accent-hi); }
@media (max-width: 640px) { .tc-grid { padding: 14px; grid-template-columns: 1fr; } }

/* token details: the way to Trending */
.td-trend { margin-top: 16px; display: flex; align-items: center; gap: 14px; padding: 14px 14px 14px 16px; border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  background: linear-gradient(100deg, color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%); }
.td-txt { flex: 1; min-width: 0; display: grid; gap: 2px; }
.td-txt b { font-size: 13.5px; font-weight: 600; }
.td-txt span { font-size: 12px; color: var(--dim); }
.td-logos { display: flex; flex: none; }
.td-logos img { width: 30px; height: 30px; border-radius: 50%; border: 2px solid #111114; object-fit: cover; background: #222; }
.td-logos img + img { margin-left: -10px; }

/* assigned wallet: review total, deposit pop-up, profile balance */
.kv .kv-total { font-weight: 600; }
.kv .kv-total span:first-child { color: var(--text); }
.kv span.down { color: var(--err); }
.col-foot .btn[disabled] { opacity: .55; cursor: not-allowed; }
.col-foot:has(#deposit) { gap: 8px; }
.col-foot #deposit { height: 36px; padding: 0 16px; font-size: 13px; }
.dp {
  position: relative; width: 100%; max-width: 400px; background: rgba(16,17,20,.96); border: 1px solid #22242d; border-radius: 12px;
  padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 24px 80px #000a;
}
.dp-head { display: flex; align-items: center; justify-content: space-between; }
.dp-head h3 { margin: 0; font-size: 15px; font-weight: 600; }
.dp-head .pf-close { position: static; }
.dp-need { padding: 10px 12px; border-radius: 6px; font-size: 13px; background: color-mix(in srgb, var(--accent) 9%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); }
.dp-need b { color: var(--accent); }
.dp-label { display: block; font: 600 10.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--faint); margin-bottom: 6px; }
.dp-box { display: flex; align-items: center; gap: 8px; padding: 9px 8px 9px 12px; border: 1px solid var(--line2); border-radius: 6px; background: var(--panel); font: 12.5px var(--mono); }
.dp-box span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.dp-bal b { display: block; font-size: 26px; font-weight: 600; letter-spacing: -.02em; line-height: 1.15; color: var(--text); font-variant-numeric: tabular-nums; }
.dp-bal b i { font-style: normal; font-size: 15px; font-weight: 500; color: var(--dim); margin-left: 6px; letter-spacing: 0; }
.dp-key { display: flex; justify-content: center; }
.dp-link { display: inline-flex; align-items: center; gap: 7px; border: 0; background: none; padding: 0; color: var(--dim); font-size: 12.5px; font-weight: 500; letter-spacing: .01em; cursor: pointer; transition: color .15s; }
.dp-link:hover { color: var(--text); }
.dp-view { display: flex; flex-direction: column; gap: 14px; }
.dp-view[hidden] { display: none; }
.dp-back-ic { transform: rotate(90deg); }
#dpExp .dp-head h3 { flex: 1; text-align: center; }
#dpExp .dp-warn { margin: 0; text-align: center; }
.dp-hold {
  position: relative; overflow: hidden; width: 100%; height: 42px; border-radius: 6px; border: 1px solid var(--line2); background: var(--panel);
  color: var(--text); font-size: 13px; font-weight: 500; cursor: pointer; user-select: none; -webkit-user-select: none; touch-action: none;
}
.dp-hold::before { content: ''; position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .2s ease-out; }
.dp-hold.holding::before { transform: scaleX(1); transition: transform 1.5s linear; }
.dp-hold span { position: relative; mix-blend-mode: difference; }
.dp-hold:disabled { cursor: default; }
.dp-secret { align-items: flex-start; font-size: 12px; line-height: 1.5; }
.dp-warn { margin: 8px 0 0; font-size: 12px; color: var(--err); }
.pf-wallet { width: 100%; border: 1px solid #22242d; border-radius: 10px; overflow: hidden; }
.pw-top { padding: 14px 16px; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.pw-bal { font-size: 26px; font-weight: 600; letter-spacing: -.02em; line-height: 1.15; color: var(--text); font-variant-numeric: tabular-nums; }
.pw-bal i { font-style: normal; font-size: 15px; font-weight: 500; color: var(--dim); margin-left: 6px; letter-spacing: 0; }
.pw-addr { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 0 0 3px; color: var(--faint); font-size: 12.5px; cursor: pointer; }
.pw-addr:hover { color: var(--text); }
.pw-foot { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid #22242d; }
.pw-foot button { height: 40px; border: 0; background: none; color: var(--dim); font-size: 12.5px; font-weight: 500; display: inline-flex; align-items: center; justify-content: center; gap: 7px; cursor: pointer; }
.pw-foot button + button { border-left: 1px solid #22242d; }
.pw-foot button:hover { color: var(--text); background: #ffffff05; }
.pw-foot .go { color: var(--accent); }
.pw-foot .go:hover { color: var(--accent-hi); }


/* no underlined text anywhere */
a, a:hover, button { text-decoration: none; }
.sb-user-sol { flex: none; font: 700 11.5px var(--mono); color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sb-user-sol[hidden] { display: none; }
.icon-btn.done, .icon-btn.done:hover { color: var(--accent); }

/* dev buy: a rounded stepper (it's an input) and square quick picks like the launchpad options */
.buy { display: flex; gap: 10px; align-items: stretch; }
.buy-step { position: relative; display: flex; align-items: center; background: #ffffff04; }
.buy-step::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; --c: var(--corner);
  background:
    linear-gradient(var(--c), var(--c)) left top / var(--arm) var(--t) no-repeat,
    linear-gradient(var(--c), var(--c)) left top / var(--t) var(--arm) no-repeat,
    linear-gradient(var(--c), var(--c)) right top / var(--arm) var(--t) no-repeat,
    linear-gradient(var(--c), var(--c)) right top / var(--t) var(--arm) no-repeat,
    linear-gradient(var(--c), var(--c)) left bottom / var(--arm) var(--t) no-repeat,
    linear-gradient(var(--c), var(--c)) left bottom / var(--t) var(--arm) no-repeat,
    linear-gradient(var(--c), var(--c)) right bottom / var(--arm) var(--t) no-repeat,
    linear-gradient(var(--c), var(--c)) right bottom / var(--t) var(--arm) no-repeat;
}
.buy-step:hover::before { --c: #3a3f4b; }
.buy-step:focus-within::before { --c: var(--accent); }
.buy-step button { width: 40px; height: 42px; border: 0; background: none; color: var(--dim); font-size: 17px; cursor: pointer; transition: background .15s, color .15s; }
.buy-step button:hover:not(:disabled) { background: #ffffff0d; color: var(--text); }
.buy-step button:disabled { opacity: .35; cursor: default; }
.buy-step input { width: 72px; height: 42px; border: 0; background: none; text-align: center; outline: none; font: 700 15px var(--mono); }
.buy-step em { font: 700 10.5px var(--mono); font-style: normal; color: var(--faint); padding-right: 4px; }
.buy-picks { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.buy-picks .pick { align-items: center; justify-content: center; padding: 0 10px; }
.buy-picks .pick b { font: 700 12.5px var(--mono); }
.pick.pad:disabled { opacity: .35; cursor: not-allowed; }
.pick.pad:disabled:hover::before { --c: var(--corner); }

/* token page */
.tok.active, .tok-row:hover .tok.active { background: #ffffff0d; }
.tk-head { display: flex; align-items: center; gap: 14px; }
.tk-img { width: 48px; height: 48px; border-radius: 8px; background: var(--panel2) center/cover; flex: none; }
/* symbol line and address centred on the logo: the symbol's top as far from the logo's top as the address baseline from its bottom */
.tk-title { min-width: 0; flex: 1; height: 48px; display: flex; flex-direction: column; justify-content: center; gap: 1px; align-items: flex-start; padding-top: 4.6px; box-sizing: border-box; }
.tk-title h1 { margin: 0; line-height: 22px; }
.tk-title .addr { margin: 0; height: 18px; line-height: 18px; }
.tk-title .addr .icon-btn { padding: 2px; }
.tk-title .addr .ic { width: 13px; height: 13px; }
.tk-sym { font: 500 14px var(--mono); letter-spacing: 0; color: var(--dim); }
.tk-links { display: flex; gap: 6px; }
/* Launchpad / Chart / Explorer: real buttons with a generic icon */
.tk-link { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 11px 0 9px; border: 1px solid var(--line2); border-radius: 6px; background: #ffffff05;
  font: 500 12.5px -apple-system, BlinkMacSystemFont, "Inter", sans-serif; color: var(--text); text-decoration: none; white-space: nowrap; }
.tk-link:hover { background: #ffffff0c; border-color: #3a3a46; }
.tk-link .ic { color: var(--dim); }
.tk-link:hover .ic { color: var(--text); }
.stats.c3 { grid-template-columns: repeat(3, 1fr); }
.tk-claim { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); }
.stats div { position: relative; }
.stats b em { font: 500 12px var(--mono); font-style: normal; color: var(--dim); margin-left: 4px; }
.tk-bar { position: absolute; left: 14px; right: 14px; bottom: 9px; height: 3px; border-radius: 2px; background: #ffffff12; overflow: hidden; }
.tk-bar i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 2px; transition: width .4s; }
.tk-chart { display: block; width: 100%; height: 560px; margin-top: 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); }
.tk-trade { display: flex; align-items: stretch; gap: 10px; margin-top: 12px; }
.tk-trade .seg { flex: none; align-items: stretch; }
.tk-trade .seg button { padding: 0 16px; }
.tk-trade .buy { flex: 1; }
.tk-act { display: flex; gap: 10px; }
.tk-act .btn, .tk-act .btn-acc { min-width: 96px; }
.tk-mm-act { justify-content: center; margin-top: 16px; }
.tk-trade { flex-wrap: wrap; }
.tk-trade .tk-act { flex-basis: 100%; justify-content: center; margin-top: 8px; }
.tk-act .btn, .tk-act .btn-acc { white-space: nowrap; }
.tk-trade .buy-picks .pick { min-height: 42px; }

/* market maker: settings in four columns, its wallets and trades */
.f-row.c4 { grid-template-columns: 1fr 1fr 1fr 1.6fr; }
.f .suffix { position: relative; display: block; }
.mm-opts .suffix input { padding-right: 40px; }
#mmRun { margin-bottom: 4px; }
.mm-table { border: 1px solid var(--line); border-radius: 6px; overflow: auto; max-height: 360px; font-size: 13px; }
.mm-table .mr { display: grid; grid-template-columns: 28px minmax(110px, 1.4fr) repeat(3, minmax(80px, 1fr)); align-items: center; gap: 8px; padding: 8px 14px; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.mm-feed .mr { grid-template-columns: minmax(90px, 1fr) 60px minmax(110px, 1.2fr) repeat(2, minmax(80px, 1fr)); }
.mm-table .mr:first-child { border-top: 0; }
.mm-table .mr.th { position: sticky; top: 0; background: var(--panel); font: 600 10.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
.mm-table a { color: var(--text); text-decoration: none; font-family: var(--mono); font-size: 12px; }
.mm-table a:hover { color: var(--accent-hi); }
.mm-table .buy { color: var(--accent-hi); }
.mm-table .sell { color: var(--err); }
.mm-table .ck { display: grid; place-items: center; }
.mm-table .ck input { accent-color: var(--accent); cursor: pointer; }
#mmWalletsSec .tk-trade { margin-top: 12px; }
@media (max-width: 760px) { .f-row.c4 { grid-template-columns: 1fr 1fr; } }

/* launchpad cards: listing cost and swap fee under the name */
.pick.pad { gap: 7px; padding: 13px 10px 12px; }
.pad-fees { display: flex; gap: 14px; font: 500 11px var(--mono); letter-spacing: 0; text-transform: none; color: var(--text); }
.pad-fees span { display: flex; flex-direction: column; align-items: center; gap: 1px; font: inherit; color: inherit; text-transform: none; letter-spacing: 0; }
.pad-fees i { font: 600 9.5px var(--mono); font-style: normal; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.pick.pad.on .pad-fees { color: var(--sel, var(--accent-hi)); }

/* market maker: fee and timer picks, makers, the estimate */
.mm-opts { display: grid; gap: 14px; }
.mm-opts .f > span { display: block; margin-bottom: 6px; }
.mm-picks { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.mm-picks[data-k="mmMakers"] { grid-template-columns: repeat(5, 1fr); }
.mm-picks[data-k="mmMinutes"] { grid-template-columns: repeat(6, 1fr); }
.mm-picks .pick { align-items: center; justify-content: center; min-height: 38px; padding: 0 6px; }
.mm-picks .pick b { font: 700 12.5px var(--mono); }
.mm-picks .pick:disabled { cursor: not-allowed; }
.mm-est b { font-family: var(--mono); font-size: 14px; }
.mm-est.bad b { color: var(--faint); }
@media (max-width: 760px) { .mm-picks[data-k="mmMakers"] { grid-template-columns: repeat(5, 1fr); } .mm-picks[data-k="mmMinutes"] { grid-template-columns: repeat(3, 1fr); } }
.pad-tag { position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%); white-space: nowrap; z-index: 1; font: 600 9px var(--mono); font-style: normal; letter-spacing: .06em; text-transform: uppercase; color: #0b0b0b; background: var(--accent); padding: 2px 5px; border-radius: 3px; }
/* options that wouldn't work with the other settings (the whole block is already dimmed when there's no amount) */
.mm-opts:not(.off) .mm-picks .pick:disabled { opacity: .3; }
.mm-opts:not(.off) .mm-picks .pick.on:disabled { opacity: .55; }
.mm-picks .pick:disabled:not(.on):hover { background: transparent; }
.mm-picks .pick:disabled:not(.on):hover::before { --c: var(--corner); }

/* launch progress popup: the token, then its steps on a timeline */
.lp-back { z-index: 60; }
.lp { max-width: 360px; gap: 22px; padding: 24px; }
.lp-head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.lp-img { width: 40px; height: 40px; flex: none; border-radius: 50%; object-fit: cover; display: grid; place-items: center; background: var(--panel2); font: 600 13px var(--mono); color: var(--dim); text-transform: uppercase; }
.lp-name { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lp-name b { font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-name span { font: 12px var(--mono); color: var(--faint); }
.lp-steps { list-style: none; margin: 0; padding: 0; }
.lp-steps li { position: relative; display: flex; align-items: flex-start; gap: 14px; padding-bottom: 20px; font-size: 13.5px; color: var(--faint); }
.lp-steps li:last-child { padding-bottom: 0; }
.lp-steps li::before { content: ''; position: absolute; left: 9.5px; top: 24px; bottom: 4px; width: 1px; background: var(--line); }
.lp-steps li.ok::before { background: var(--accent); }
.lp-steps li:last-child::before { display: none; }
.lp-steps li > span { padding-top: 1px; }
.lp-steps li.on, .lp-steps li.ok, .lp-steps li.bad { color: var(--text); }
.lp-steps li em { margin-left: auto; padding-top: 2px; font: 12px var(--mono); font-style: normal; color: var(--faint); }
.lp-i { width: 20px; height: 20px; flex: none; display: block; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lp-i.wait { stroke: var(--line2); }
.lp-i.on { stroke: var(--accent); animation: lp-spin .8s linear infinite; }
.lp-i.ok circle { fill: var(--accent); stroke: none; }
.lp-i.bad circle { fill: var(--err); stroke: none; }
.lp-i.ok path, .lp-i.bad path { stroke: #0b0b0b; stroke-width: 2.4; }
.lp-i.ok, .lp-i.bad { animation: lp-pop .2s ease-out; }
@keyframes lp-spin { to { transform: rotate(360deg); } }
@keyframes lp-pop { from { transform: scale(.6); opacity: 0; } }
.lp-err { font-size: 13px; color: var(--err); line-height: 1.5; }
.lp-err[hidden], .lp-foot[hidden] { display: none; }
.lp-foot { display: flex; justify-content: flex-end; }

/* launch settings: dev buy and market maker cards (also the token page's market maker controls).
   Square, with the picks' corner brackets. */
.ls-card, .ls-chip, .ls-st, .ls-res > div { position: relative; }
.ls-card::before, .ls-chip::before, .ls-st::before, .ls-res > div::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; --c: var(--corner);
  background:
    linear-gradient(var(--c), var(--c)) left top / var(--a, var(--arm)) var(--t) no-repeat,
    linear-gradient(var(--c), var(--c)) left top / var(--t) var(--a, var(--arm)) no-repeat,
    linear-gradient(var(--c), var(--c)) right top / var(--a, var(--arm)) var(--t) no-repeat,
    linear-gradient(var(--c), var(--c)) right top / var(--t) var(--a, var(--arm)) no-repeat,
    linear-gradient(var(--c), var(--c)) left bottom / var(--a, var(--arm)) var(--t) no-repeat,
    linear-gradient(var(--c), var(--c)) left bottom / var(--t) var(--a, var(--arm)) no-repeat,
    linear-gradient(var(--c), var(--c)) right bottom / var(--a, var(--arm)) var(--t) no-repeat,
    linear-gradient(var(--c), var(--c)) right bottom / var(--t) var(--a, var(--arm)) no-repeat;
}
.ls-card { background: #ffffff03; margin-top: 16px; }
.ls-card::before { --a: 12px; }
.ls-card.on::before { --c: #3a3f4b; }
.ls-card-h { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; }
.ls-card-h b { font-size: 14px; font-weight: 600; }
.ls-card-h em { font: normal 12.5px var(--mono); color: var(--faint); margin-left: 10px; }
.ls-card-b { padding: 0 16px 16px; }
.ls-card:not(.on) .ls-card-b { display: none; }
.ls-sw { width: 32px; height: 18px; border-radius: 9px; background: var(--line2); position: relative; border: 0; padding: 0; cursor: pointer; flex: none; transition: background .15s; }
.ls-sw::after { content: ''; position: absolute; left: 2px; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--dim); transition: transform .15s, background .15s; }
.ls-sw.on { background: var(--accent); }
.ls-sw.on::after { transform: translateX(14px); background: #0a0a0c; }
.ls-mm { display: flex; flex-direction: column; gap: 16px; }
.ls-lbl { display: flex; align-items: center; gap: 6px; font: 500 10.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
/* amount row: every item one height, whatever it holds */
.ls-row { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 6px; }
.ls-chip { box-sizing: border-box; height: 36px; padding: 0 8px; border: 0; background: #ffffff04; color: var(--dim); font: 500 12.5px var(--mono); cursor: pointer; display: flex; align-items: center; justify-content: center; min-width: 0; transition: background .15s; }
.ls-chip:hover { background: #ffffff0a; }
.ls-chip:hover::before { --c: #3a3f4b; }
.ls-chip.on { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--text); }
.ls-chip.on::before { --c: var(--accent); }
.ls-num { cursor: text; }
.ls-num input { width: 100%; min-width: 0; height: 100%; margin: 0; padding: 0; border: 0; background: none; outline: none; text-align: center; font: 500 12.5px var(--mono); color: var(--text); }
.ls-tri { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ls-tri > div { display: flex; flex-direction: column; gap: 6px; }
.ls-st { display: flex; align-items: center; background: #ffffff04; }
.ls-st:hover::before { --c: #3a3f4b; }
.ls-st button { width: 32px; height: 32px; border: 0; background: none; color: var(--dim); cursor: pointer; font-size: 15px; }
.ls-st button:hover:not(:disabled) { color: var(--text); }
.ls-st button:disabled { opacity: .3; cursor: default; }
.ls-st b { flex: 1; text-align: center; font: 700 13px var(--mono); }
.ls-res { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 6px; }
.ls-res > div { min-width: 0; padding: 12px 16px; display: flex; flex-direction: column; gap: 4px; background: #ffffff04; }
.ls-res > div.big::before { --c: color-mix(in srgb, var(--accent) 60%, transparent); }
.ls-res b { font: 700 13px var(--mono); line-height: 22px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ls-res .big b { font-size: 18px; color: var(--accent); }
.ls-res.bad b { color: var(--faint); }
.ls-tri.off, .ls-res.off { opacity: .4; pointer-events: none; }
/* setting tooltips: an info icon by the label, its popup on hover or focus */
.ls-tip { position: relative; display: inline-grid; place-items: center; color: var(--faint); cursor: help; outline: none; font-style: normal; }
.ls-tip svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.ls-tip:hover, .ls-tip:focus-visible { color: var(--text); }
.ls-tip > span { position: absolute; left: -10px; bottom: calc(100% + 8px); width: 230px; z-index: 5; padding: 10px 12px;
  background: #16161c; border: 1px solid var(--line2); box-shadow: 0 12px 32px #000a;
  font: 400 12.5px/1.5 -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif; letter-spacing: 0; text-transform: none; color: var(--dim);
  opacity: 0; transform: translateY(4px); pointer-events: none; transition: opacity .12s, transform .12s; }
.ls-tip:hover > span, .ls-tip:focus > span { opacity: 1; transform: none; }

/* review step: the token, then a receipt of what the launch costs */
.rv-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.rv-tok { display: flex; align-items: center; gap: 14px; min-width: 0; }
.rv-tok > img, .rv-tok > span { width: 52px; height: 52px; flex: none; object-fit: cover; border-radius: 8px; }
.rv-tok > span { display: grid; place-items: center; background: #ffffff08; font: 700 15px var(--mono); color: var(--dim); }
.rv-tok b { display: block; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-tok em { font: normal 12px var(--mono); color: var(--faint); }
.rv-pad { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font: 500 12px var(--mono); color: var(--dim); }
.rv-pad img { width: 16px; height: 16px; border-radius: 50%; object-fit: cover; }
.rv-rec { position: relative; background: #ffffff04; padding: 18px 20px; display: flex; flex-direction: column; gap: 11px; }
.rv-rec::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; --c: var(--corner); --a: 12px;
  background:
    linear-gradient(var(--c), var(--c)) left top / var(--a) var(--t) no-repeat,
    linear-gradient(var(--c), var(--c)) left top / var(--t) var(--a) no-repeat,
    linear-gradient(var(--c), var(--c)) right top / var(--a) var(--t) no-repeat,
    linear-gradient(var(--c), var(--c)) right top / var(--t) var(--a) no-repeat,
    linear-gradient(var(--c), var(--c)) left bottom / var(--a) var(--t) no-repeat,
    linear-gradient(var(--c), var(--c)) left bottom / var(--t) var(--a) no-repeat,
    linear-gradient(var(--c), var(--c)) right bottom / var(--a) var(--t) no-repeat,
    linear-gradient(var(--c), var(--c)) right bottom / var(--t) var(--a) no-repeat;
}
.rv-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-size: 13px; }
.rv-row > :last-child { font: 500 13px var(--mono); white-space: nowrap; }
.rv-row.sub { padding-left: 14px; font-size: 12.5px; color: var(--dim); }
.rv-row.sub > :last-child { font-size: 12px; color: var(--dim); }
.rv-rule { border-top: 1px dashed var(--line2); }
.rv-total { display: flex; justify-content: space-between; align-items: baseline; }
.rv-total span { font: 500 10.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.rv-total b { font: 700 22px var(--mono); }
.col-foot.rv-foot { border-top: 0; padding-top: 4px; }
.rv-dep { height: 38px; padding: 0 20px; border: 0; border-radius: 6px; background: var(--accent); color: #0a0a0c; font: 500 13.5px -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif; cursor: pointer; transition: background .15s; }
.rv-dep:hover:not(:disabled) { background: var(--accent-hi); }
.rv-dep:disabled { opacity: .55; cursor: default; }
.rv-dep b { font: 700 13px var(--mono); }

/* token page: your position (the market maker wallets, your wallet and the fees, sold as one) */
.po-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.po-big { font: 700 26px var(--mono); font-variant-numeric: tabular-nums; }
.po-big.lime { color: var(--accent); }
.po-usd { font: 500 19.5px var(--mono); color: var(--dim); } /* 75% of the SOL amount's size */
.po-big, .po-usd { align-self: baseline; } /* USD sits on the bottom line of the SOL amount */
.po-grow { flex: 1; }
.po-side { height: 40px; padding: 0 20px; border: 0; border-radius: 6px; cursor: pointer; font: 500 13.5px -apple-system, BlinkMacSystemFont, "Inter", sans-serif; transition: background .15s; }
.po-side.b { background: color-mix(in srgb, #4ade80 12%, transparent); color: #4ade80; }
.po-side.s { background: color-mix(in srgb, #ff5c5c 12%, transparent); color: #ff5c5c; }
.po-side.b:hover { background: color-mix(in srgb, #4ade80 20%, transparent); }
.po-side.s:hover { background: color-mix(in srgb, #ff5c5c 20%, transparent); }
.po-side.b.on { background: #4ade80; color: #04140a; }
.po-side.s.on { background: #ff5c5c; color: #160505; }
.po-go { height: 40px; padding: 0 20px; border: 0; border-radius: 6px; cursor: pointer; background: var(--accent); color: #0a0a0c; font: 500 13.5px -apple-system, BlinkMacSystemFont, "Inter", sans-serif; white-space: nowrap; }
.po-go:hover:not(:disabled) { background: var(--accent-hi); }
.po-go:disabled { opacity: .45; cursor: default; }
.po-go b { font-weight: 700; } /* same font and size as the label, so they share one baseline */
.po-sheet { position: relative; background: #ffffff04; padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; }
.po-sheet[hidden] { display: none; }
.po-sheet::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; --c: var(--corner);
  background:
    linear-gradient(var(--c), var(--c)) left top / var(--arm) var(--t) no-repeat,
    linear-gradient(var(--c), var(--c)) left top / var(--t) var(--arm) no-repeat,
    linear-gradient(var(--c), var(--c)) right top / var(--arm) var(--t) no-repeat,
    linear-gradient(var(--c), var(--c)) right top / var(--t) var(--arm) no-repeat,
    linear-gradient(var(--c), var(--c)) left bottom / var(--arm) var(--t) no-repeat,
    linear-gradient(var(--c), var(--c)) left bottom / var(--t) var(--arm) no-repeat,
    linear-gradient(var(--c), var(--c)) right bottom / var(--arm) var(--t) no-repeat,
    linear-gradient(var(--c), var(--c)) right bottom / var(--t) var(--arm) no-repeat;
}
.po-chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.po-chip { height: 36px; border: 0; border-radius: 6px; background: #ffffff05; cursor: pointer; font: 700 12.5px var(--mono); color: var(--text); }
.po-chip:hover { background: #ffffff0c; color: var(--text); }
.po-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-size: 12.5px; color: var(--dim); }
.po-row > :last-child { font: 500 12px var(--mono); white-space: nowrap; }
.po-row i { font-style: normal; color: var(--faint); }
.po-row em { font: 400 12.5px -apple-system, BlinkMacSystemFont, "Inter", sans-serif; font-style: normal; }
.po-row .po-live { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: middle; animation: po-pulse 1.6s infinite; }
@keyframes po-pulse { 50% { opacity: .3; } }
.po-row.get { font-size: 13px; color: var(--text); }
.po-row.get > :last-child { font: 700 15px var(--mono); }
.po-rule { border-top: 1px dashed var(--line2); }
.rv-note { font-style: normal; color: var(--faint); }
.po-amt { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 6px; background: #ffffff05; cursor: text; }
.po-amt:focus-within { background: #ffffff09; }
.po-amt input { flex: 1; min-width: 0; border: 0; outline: none; background: none; font: 700 14px var(--mono); color: var(--text); }
.po-amt em { font: 700 11px var(--mono); font-style: normal; color: var(--faint); }
/* market maker while it runs: clock in the header, Volume / Trades, the fee budget bar, Stop */
.mx-hd { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.mx-hd .sec-label { margin: 0; }
.mx-clock { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.mx-clock[hidden] { display: none; }
.mx-live { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); animation: mx-pulse 1.6s infinite; }
@keyframes mx-pulse { 50% { opacity: .35; } }
.mx-run { display: flex; flex-direction: column; gap: 10px; }
.mx-run[hidden] { display: none; }
.mx-strip { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 6px; }
.mx-strip > div { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; }
.mx-strip > div + div { border-left: 1px solid var(--line); }
.mx-strip span { font: 600 10.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.mx-strip b { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.mx-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 12.5px; color: var(--dim); }
.mx-row b { color: var(--text); font-weight: 700; }
.mx-row i { font-style: normal; color: var(--faint); }
.mx-bar { height: 4px; border-radius: 2px; background: #ffffff0a; overflow: hidden; }
.mx-bar i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 2px; transition: width .6s; }
.mx-stop { flex: 1; height: 40px; border: 0; border-radius: 6px; cursor: pointer; font: 500 13.5px -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
  background: color-mix(in srgb, #ff5c5c 12%, transparent); color: #ff5c5c; }
.mx-stop:hover:not(:disabled) { background: color-mix(in srgb, #ff5c5c 20%, transparent); }
.mx-stop:disabled { opacity: .55; cursor: default; }
/* Stop asks first: Cancel and Confirm side by side */
.mx-cancel { flex: 1; height: 40px; border: 0; border-radius: 6px; cursor: pointer; font: 500 13.5px -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
  background: #ffffff0d; color: var(--dim); }
.mx-cancel:hover { background: #ffffff16; color: var(--text); }
.tk-mm-act:has(.mx-cancel) { gap: 8px; }
/* token page market maker setup: a button first, then the settings with sliders */
.mx-x { width: 26px; height: 26px; margin: -4px -4px -4px 0; border: 0; border-radius: 6px; background: none; color: var(--faint); cursor: pointer; display: grid; place-items: center; }
.mx-x:hover { color: var(--text); }
.mx-x[hidden], .mx-open[hidden] { display: none; }
.mx-x svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.mx-open { width: 100%; height: 44px; border: 1px solid var(--line2); border-radius: 8px; background: #ffffff04; color: var(--text); cursor: pointer;
  font: 500 13.5px -apple-system, BlinkMacSystemFont, "Inter", sans-serif; display: flex; align-items: center; justify-content: center; gap: 8px; }
.mx-open:hover { background: #ffffff0a; border-color: #3a3a46; }
.mx-open svg { width: 15px; height: 15px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tk-act[hidden] { display: none; }
.tk-mm-act .po-go { flex: 1; }
.mx-c { gap: 18px; }
.mx-grp { display: flex; flex-direction: column; gap: 8px; }
.mx-c .ls-chip { border-radius: 6px; background: #ffffff05; color: var(--text); font-weight: 700; }
.mx-c .ls-chip::before { content: none; }
.mx-c .ls-chip:hover { background: #ffffff0c; }
.mx-c .ls-chip[data-custom] { font-weight: 500; } /* a label, not an amount */
.mx-c .ls-chip.on { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.mx-sls { display: flex; flex-direction: column; gap: 18px; }
.mx-sls.off { opacity: .4; pointer-events: none; }
.mx-sl { display: flex; flex-direction: column; gap: 10px; }
.mx-sl-top { display: flex; justify-content: space-between; align-items: baseline; }
.mx-sl-top > span { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--dim); }
.mx-sl-top b { font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.mx-sl input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; margin: 0; border-radius: 2px; cursor: pointer;
  background: linear-gradient(var(--accent), var(--accent)) 0 / var(--p, 0%) 100% no-repeat, #ffffff12; }
.mx-sl input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: var(--text); border: 3px solid var(--bg); box-shadow: 0 0 0 1px var(--line2); }
.mx-sl input[type=range]::-moz-range-thumb { width: 10px; height: 10px; border-radius: 50%; background: var(--text); border: 3px solid var(--bg); box-shadow: 0 0 0 1px var(--line2); }
.mx-ticks { display: flex; justify-content: space-between; margin-top: -2px; font: 500 10.5px var(--mono); color: var(--faint); }
.mx-c .ls-res { grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: 8px; }
.mx-c .ls-res > div { background: none; padding: 11px 13px; }
.mx-c .ls-res > div::before { content: none; }
.mx-c .ls-res > div:nth-child(even) { border-left: 1px solid var(--line); }
.mx-c .ls-res > div:nth-child(n+3) { border-top: 1px solid var(--line); }
.mx-c .ls-res b { font-size: 15px; }
.mx-c .ls-res .big b { font-size: 18px; }
/* token page: market maker trades and wallets side by side */
.ml-two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ml-two[hidden] { display: none; }
.ml-box { min-width: 0; border: 1px solid var(--line); border-radius: 8px; padding: 14px 4px 4px 14px; display: flex; flex-direction: column; }
/* token page: the lists fill the space down to the bottom of the window; below 340px each the page scrolls instead */
.col:has(> .tk-head) { display: flex; flex-direction: column; }
.col:has(> .tk-head) > .col-body { flex: 1; display: flex; flex-direction: column; }
.col:has(> .tk-head) .ml-two { flex: 1 0 auto; }
.ml-hd { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; padding-right: 10px; }
.ml-hd .sec-label { margin: 0; }
.ml-hd span { font-size: 12.5px; color: var(--faint); font-variant-numeric: tabular-nums; }
.ml-list { flex: 1 1 0; min-height: 340px; overflow-y: auto; padding-right: 10px; }
.ml-r { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 10px; height: 34px; font-size: 12.5px; border-top: 1px solid #ffffff08; font-variant-numeric: tabular-nums; }
.ml-r:first-child { border-top: 0; }
.ml-r > :not(:first-child) { text-align: right; }
.ml-r.ml-tx { grid-template-columns: 18px 1fr auto auto; }
.ml-r.ml-tx > a { text-align: left; }
.ml-r a { color: var(--text); text-decoration: none; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ml-r a:hover { color: var(--accent); }
.ml-r svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ml-dim { color: var(--faint); }
.ml-buy { color: var(--accent); }
.ml-sell { color: #ff5c5c; }
@media (max-width: 900px) { .ml-two { grid-template-columns: 1fr; } }
/* token page: chart and lists in the middle, position and market maker in a right column */
.col.tk-split { max-width: 1480px; }
.tk-split > .col-body { position: relative; padding-right: calc(384px + 28px); }
.tk-split .tk-side { position: absolute; top: 0; right: 0; bottom: 0; width: 384px; border-left: 1px solid var(--line); }
.tk-split .tk-side-in { position: sticky; top: 0; padding: 22px 22px 28px; }
/* position: the amount on its own line, Buy and Sell share the row under it */
.tk-side .po-top { flex-wrap: wrap; gap: 0 12px; }
.tk-side .po-grow { flex-basis: 100%; height: 10px; } /* line break and the gap under the amount (same 10px as label to amount) */
.tk-side .po-side { flex: 1; }
.tk-side .po-top > .po-go, .tk-side .po-top > .po-tip { flex-basis: 100%; }
.po-tip > .po-go { flex: 1; }
/* market maker in a narrow column */
.tk-side .stats { grid-template-columns: repeat(2, 1fr); }
.tk-side .stats div:nth-child(3) { border-left: 0; }
.tk-side .stats div:nth-child(n+3) { border-top: 1px solid var(--line); }
.tk-side .ls-res { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tk-side .tk-act > * { flex: 1; }
/* no box around the trade in the side column */
.tk-side .po-sheet { background: none; padding: 0; }
.tk-side .po-sheet::before { content: none; }
.tk-side .err:empty { display: none; }
.tk-side .po-top:has(+ .po-sheet[hidden]) { margin-bottom: 0; }
.tk-side .sec + .sec { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
/* a disabled Claim explains itself on hover */
.po-tip { position: relative; display: inline-flex; }
.po-tip::after {
  content: attr(data-why); position: absolute; right: 0; bottom: calc(100% + 8px); width: max(100%, 240px); box-sizing: border-box; padding: 9px 11px; border: 1px solid var(--line2); border-radius: 6px;
  background: var(--panel2); color: var(--text); font: 400 12.5px/1.45 -apple-system, BlinkMacSystemFont, "Inter", sans-serif; text-align: left; white-space: normal;
  box-shadow: 0 8px 24px #0008; opacity: 0; pointer-events: none; transform: translateY(3px); transition: opacity .12s, transform .12s; z-index: 5;
}
.po-tip:hover::after { opacity: 1; transform: none; }

/* ---------- sign-in (nothing shows behind it until signed in) ---------- */
html:not(.in) .app { visibility: hidden; }
.si-back { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; background: var(--bg); animation: pf-fade .12s ease-out; }
.si {
  width: 100%; max-width: 340px; background: rgba(16,17,20,.96); border: 1px solid #22242d; border-radius: 12px;
  padding: 30px 26px 26px; display: flex; flex-direction: column; align-items: center; gap: 14px; box-shadow: 0 24px 80px #000a;
}
.si-mark { width: 30px; height: 30px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linejoin: round; }
.si h3 { margin: 0 0 6px; font-size: 17px; font-weight: 600; }
.si-list { width: 100%; display: flex; flex-direction: column; gap: 8px; }
.si-btn {
  display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 14px; border-radius: 7px; border: 1px solid var(--line2);
  background: var(--panel); color: var(--text); font-size: 13.5px; font-weight: 500; cursor: pointer; transition: border-color .15s, background .15s;
}
.si-btn:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line2)); background: var(--panel2); }
.si-btn img { width: 20px; height: 20px; flex: none; }
.si-btn.busy { opacity: .6; cursor: progress; }
.si-legal { display: flex; gap: 18px; margin-top: 4px; font-size: 12px; }
.si-legal a { color: var(--dim); text-decoration: none; transition: color .15s; }
.si-legal a:hover { color: var(--accent); }
.dp-gen { justify-content: center; height: 38px; font-size: 13px; }
.dp-gen:disabled { opacity: .7; cursor: progress; }
.pf-links { display: flex; gap: 22px; margin-top: 14px; }
.wd-amt { position: relative; }
.wd-amt input { padding-right: 52px; }
.wd-max { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--accent); font-size: 12px; font-weight: 500; padding: 4px 6px; cursor: pointer; }
.wd-max:hover { color: var(--accent-hi); }
.pw-foot button:disabled { opacity: .4; cursor: default; background: none; color: var(--dim); }
.dp-check { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--dim); cursor: pointer; user-select: none; }
.dp-check input { appearance: none; margin: 0; width: 16px; height: 16px; flex: none; border: 1px solid var(--line2); border-radius: 4px; background: var(--panel); display: grid; place-items: center; cursor: pointer; transition: background .12s, border-color .12s; }
.dp-check input:checked { background: var(--accent); border-color: var(--accent); }
.dp-check input:checked::after { content: ''; width: 4px; height: 8px; border: solid #101114; border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }
.dp-check input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.dp-check:hover { color: var(--text); }
#dpNext:disabled { opacity: .4; cursor: default; background: var(--accent); }
.dp-alert { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 6px; font-size: 13px; color: #ff5c5c;
  background: color-mix(in srgb, #ff5c5c 12%, transparent); border: 1px solid color-mix(in srgb, #ff5c5c 35%, transparent); }
.tk-chart-box { position: relative; margin-top: 12px; }
.tk-chart-box .tk-chart { margin-top: 0; }
.ck { position: absolute; inset: 1px; border-radius: 5px; background: var(--panel); overflow: hidden; pointer-events: none; transition: opacity .35s; }
.ck.gone { opacity: 0; }
.ck i { display: block; }
.ck-bar { position: absolute; left: 16px; top: 14px; display: flex; gap: 8px; } .ck-bar i { width: 46px; height: 22px; border-radius: 4px; background: #ffffff0a; }
.ck-axis { position: absolute; right: 12px; top: 60px; bottom: 60px; display: flex; flex-direction: column; justify-content: space-between; } .ck-axis i { width: 44px; height: 9px; border-radius: 3px; background: #ffffff0a; }
.ck-candles { position: absolute; left: 20px; right: 84px; top: 64px; bottom: 120px; display: flex; align-items: flex-end; gap: 6px; }
.ck-candles i { position: relative; flex: 1; border-radius: 2px; background: #ffffff0f; }
.ck-candles i::before { content: ''; position: absolute; left: 50%; top: -12px; bottom: -12px; width: 1px; background: #ffffff0a; }
.ck-vol { position: absolute; left: 20px; right: 84px; bottom: 44px; height: 50px; display: flex; align-items: flex-end; gap: 6px; } .ck-vol i { flex: 1; background: #ffffff08; border-radius: 1px; }
.ck-sweep { position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, #ffffff0a 50%, transparent 70%); background-size: 250% 100%; animation: ck-sweep 1.8s linear infinite; }
@keyframes ck-sweep { from { background-position: 150% 0; } to { background-position: -100% 0; } }
