/*
 * Code Black Mini App: the look of the BlackHookFinance Telegram app (its tg.css and colours): near-black ground, one
 * amber accent, glass cards, green / red only for money that moved, the amber diamond as the mark, a hold-to-confirm
 * trade button, a tab bar with the trade button in the middle, bottom sheets and a number pad.
 */
@property --p {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}
@property --a {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

/*
 * Code Black, design F (the owner's pick, 2026-11-11: bento tiles + wallet cards): warm black ground, flat tiles, one
 * gold, cream for what is chosen, green and red only for money that moved; no glows. Bricolage Grotesque for the big
 * numbers and headings, Geist for the rest.
 */
:root {
  --bg: #0b0a09;
  --bg-elev: #171513;
  --bg-hover: #201d1a;
  --fg: #f3efe6;
  --muted: #a8a297;
  --border: #26231f;
  --border-strong: #3a3631;
  --accent: #f0b94d;
  --accent-hi: #f7d58f;
  --accent-lo: #b9862c;
  --accent-grad: #f0b94d;
  --accent-fg: #17120a;
  --cream: #efe8da;
  --up: #4fdc8c;
  --down: #ff7468;
  --warn: #ffa94d;
  --glass: #171513;
  --display: "Bricolage Grotesque", "Geist", system-ui, sans-serif;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
input,
select {
  font: inherit;
  color: var(--fg);
}
svg {
  flex-shrink: 0;
}
.num {
  font-variant-numeric: tabular-nums;
}
.display {
  font-family: var(--display);
}
.muted {
  color: var(--muted);
}
.up {
  color: var(--up);
}
.down {
  color: var(--down);
}
.warn {
  color: var(--warn);
}
.accent {
  color: var(--accent);
}
.hidden {
  display: none !important;
}

/* ---------- frame ---------- */
.root {
  position: relative;
  max-width: 480px;
  min-height: 100dvh;
  margin: 0 auto;
  padding-bottom: calc(104px + env(safe-area-inset-bottom));
  overscroll-behavior: none;
}
.glow {
  position: fixed;
  inset: 0 0 auto 0;
  height: 360px;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(55% 60% at 50% -18%, rgb(232 176 75 / 0.17), transparent 72%),
    radial-gradient(40% 40% at 100% 0%, rgb(122 162 255 / 0.06), transparent 70%);
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: linear-gradient(to bottom, rgb(10 11 13 / 0.94), rgb(10 11 13 / 0.7));
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgb(31 35 42 / 0.7);
}
#screen {
  position: relative;
  z-index: 1;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
}
.mark {
  width: 15px;
  height: 15px;
  margin: 0 4px;
  background: var(--accent);
  transform: rotate(45deg);
  border-radius: 3px;
  box-shadow: 0 0 14px rgb(232 176 75 / 0.6);
}
.word {
  display: flex;
  flex-direction: column;
  font-family: var(--display);
  line-height: 1;
  text-align: left;
}
.word b {
  font-size: 14px;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.word small {
  margin-top: 3px;
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.32em;
  color: #aab1bb;
  white-space: nowrap;
}
.word small.accent {
  color: var(--accent);
}
#tickerText {
  overflow: hidden;
  text-overflow: ellipsis;
}
.ticker {
  margin-left: auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgb(17 19 23 / 0.7);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.dot {
  position: relative;
  width: 8px;
  height: 8px;
}
.dot i {
  position: absolute;
  inset: 0;
  border-radius: 99px;
  background: var(--accent);
}
.dot.off i {
  background: var(--down);
}
.ping {
  animation: ping 1.9s cubic-bezier(0, 0, 0.2, 1) infinite;
}
.net-pill {
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid rgb(232 176 75 / 0.35);
  background: rgb(232 176 75 / 0.08);
  color: var(--accent);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.net-pill:empty {
  display: none;
}

.page {
  padding: 16px 16px 0;
}
.page.anim {
  animation: rise 420ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.hello {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.hello p {
  margin: 0;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
}
h1.title {
  margin: 0 0 14px;
  font-family: var(--display);
  font-size: 26px;
}

/* ---------- cards ---------- */
.card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 20px;
}
.card-strong {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgb(232 176 75 / 0.05), transparent 38%),
    rgb(14 16 19 / 0.78);
  border: 1px solid rgb(232 176 75 / 0.16);
  border-radius: 22px;
}
.pad {
  padding: 16px;
}
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.section {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin: 24px 2px 10px;
}
.section h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
}
.link {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.big-usd {
  font-family: var(--display);
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
}
.big-usd small {
  font-size: 26px;
  color: #aab1bb;
}
.split {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 16px;
}
.split > div {
  padding: 9px 10px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgb(10 11 13 / 0.45);
}
.split span {
  display: block;
  font-size: 10.5px;
  color: var(--muted);
}
.split b {
  display: block;
  margin-top: 2px;
  font-family: var(--display);
  font-size: 15px;
}
.kv {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 5px 0;
  font-size: 13px;
}
.kv > span:first-child {
  color: var(--muted);
}
.kv > span:last-child {
  font-weight: 600;
  text-align: right;
}
.box {
  margin-top: 12px;
  padding: 8px 12px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgb(10 11 13 / 0.45);
}
.note {
  margin: 8px 0 0;
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.45;
}
.note.bad {
  color: var(--down);
}
.circuit {
  position: absolute;
  top: 0;
  right: 0;
  pointer-events: none;
}

/* change chip: green up, red down, grey flat */
.chg {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  background: rgb(139 147 161 / 0.12);
  white-space: nowrap;
}
.chg.md {
  padding: 4px 9px;
  font-size: 13px;
}
.chg.up {
  color: var(--up);
  background: rgb(34 197 94 / 0.13);
}
.chg.down {
  color: var(--down);
  background: rgb(240 77 77 / 0.13);
}
.chg svg {
  width: 8px;
  height: 8px;
}
.chg.down svg {
  transform: rotate(180deg);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
}
.badge.good {
  color: var(--up);
  border-color: rgb(34 197 94 / 0.35);
}
.badge.bad {
  color: var(--down);
  border-color: rgb(240 77 77 / 0.4);
}
.badge.amber {
  color: var(--accent);
  border-color: rgb(232 176 75 / 0.4);
}

/* ---------- touch ---------- */
.press {
  user-select: none;
  -webkit-user-select: none;
  transition:
    transform 140ms cubic-bezier(0.2, 0.8, 0.2, 1),
    background-color 140ms,
    border-color 140ms,
    color 140ms,
    filter 140ms;
}
.press:active:not(:disabled) {
  transform: scale(0.96);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 50px;
  padding: 0 18px;
  border-radius: 16px;
  font-weight: 700;
  font-size: 15px;
}
.btn.block {
  width: 100%;
}
.btn.sm {
  height: 38px;
  padding: 0 12px;
  border-radius: 12px;
  font-size: 13px;
}
.btn.primary {
  background: var(--accent-grad);
  color: var(--accent-fg);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.38),
    inset 0 -2px 0 rgb(0 0 0 / 0.16),
    0 12px 30px -14px rgb(232 176 75 / 0.85);
}
.btn.ghost {
  background: rgb(23 26 31 / 0.72);
  border: 1px solid var(--border-strong);
}
.btn.danger {
  background: rgb(240 77 77 / 0.12);
  border: 1px solid rgb(240 77 77 / 0.45);
  color: var(--down);
}
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.icon-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgb(23 26 31 / 0.7);
  border: 1px solid var(--border);
  color: var(--fg);
}
.actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 20px;
}
.action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
}
.action .tile {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: linear-gradient(160deg, rgb(232 176 75 / 0.16), rgb(232 176 75 / 0.03) 60%), rgb(17 19 23 / 0.8);
  border: 1px solid rgb(232 176 75 / 0.28);
  color: var(--accent);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.06);
}
.action.primary .tile {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-fg);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.38),
    0 10px 26px -12px rgb(232 176 75 / 0.9);
}
.action.danger .tile {
  background: rgb(240 77 77 / 0.08);
  border-color: rgb(240 77 77 / 0.35);
  color: var(--down);
}

/* quick-amount chips: the chosen one gets the accent edge and the diamond in its corner */
.chips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.chips.four {
  grid-template-columns: repeat(4, 1fr);
}
.chip {
  position: relative;
  padding: 10px 12px;
  border-radius: 15px;
  border: 1px solid var(--border-strong);
  background: rgb(17 19 23 / 0.72);
  text-align: left;
}
.chip.center {
  text-align: center;
}
.chip b {
  display: block;
  font-family: var(--display);
  font-size: 16px;
}
.chip span {
  display: block;
  margin-top: 1px;
  overflow: hidden;
  font-size: 10.5px;
  color: var(--muted);
  white-space: nowrap;
  text-overflow: ellipsis;
}
.chip[data-on="true"] {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 11%, rgb(17 19 23 / 0.9));
  box-shadow:
    inset 0 0 0 1px var(--accent),
    0 10px 24px -14px rgb(232 176 75 / 0.9);
}
.chip[data-on="true"]::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 6px;
  height: 6px;
  background: var(--accent);
  transform: rotate(45deg);
  box-shadow: 0 0 8px var(--accent);
}
.pills {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.pills::-webkit-scrollbar {
  display: none;
}
.pill {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgb(17 19 23 / 0.6);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}
.pill[data-on="true"] {
  color: var(--accent-fg);
  background: var(--fg);
  border-color: var(--fg);
}

/* segmented control with a sliding pill */
.seg {
  position: relative;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  padding: 4px;
  border-radius: 15px;
  background: rgb(10 11 13 / 0.7);
  border: 1px solid var(--border);
}
.seg-pill {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  border-radius: 11px;
  transition:
    transform 300ms cubic-bezier(0.3, 1.35, 0.5, 1),
    background-color 200ms;
}
.seg button {
  position: relative;
  z-index: 1;
  height: 38px;
  font-weight: 700;
  font-size: 14px;
  color: var(--muted);
  transition: color 200ms;
}
.seg.sm button {
  height: 32px;
  font-size: 12.5px;
}
.seg button[data-on="true"] {
  color: var(--accent-fg);
}
.seg button[data-on="true"][data-tone="neutral"] {
  color: var(--fg);
}

.switch {
  position: relative;
  width: 48px;
  height: 28px;
  border-radius: 999px;
  background: var(--border-strong);
  transition: background-color 180ms;
}
.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--fg);
  box-shadow: 0 2px 6px rgb(0 0 0 / 0.45);
  transition: transform 240ms cubic-bezier(0.3, 1.35, 0.5, 1);
}
.switch[aria-checked="true"] {
  background: var(--accent);
}
.switch[aria-checked="true"]::after {
  transform: translateX(20px);
}

/* hold to confirm: amber fills it while the finger stays down; a light runs along its edge at rest */
.hold {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 58px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--accent) 9%, rgb(10 11 13 / 0.9));
  box-shadow:
    inset 0 0 0 1.5px var(--accent),
    0 14px 34px -18px rgb(232 176 75 / 0.9);
  color: var(--accent);
  font-weight: 800;
  font-size: 16px;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
.hold.sell {
  --accent: #eceef1;
}
.hold[data-state="idle"] {
  transition: --p 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.hold::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(from var(--a), transparent 0 78%, #ffe2a3 90%, transparent 100%);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: orbit 3s linear infinite;
  pointer-events: none;
}
.hold[data-state="holding"]::before,
.hold[data-state="done"]::before,
.hold:disabled::before {
  animation: none;
  opacity: 0;
}
.hold-fill {
  position: absolute;
  inset: 0;
  background: var(--accent-grad);
  transform-origin: left center;
  transform: scaleX(var(--p));
}
.hold-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 12px;
  text-align: center;
}
.hold-label.ink {
  color: var(--accent-fg);
  clip-path: inset(0 calc((1 - var(--p)) * 100%) 0 0);
}
.hold:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: inset 0 0 0 1.5px var(--border-strong);
  color: var(--muted);
}
.diamond {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: currentColor;
  transform: rotate(45deg);
}

/* ---------- lists ---------- */
.rows {
  padding: 4px;
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 12px;
  border-radius: 16px;
  text-align: left;
}
.row:active {
  background: rgb(23 26 31 / 0.6);
}
.row + .row {
  border-top: 1px solid rgb(31 35 42 / 0.6);
}
.coin {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-fg);
  flex-shrink: 0;
}
.grow {
  min-width: 0;
  flex: 1;
}
.grow b {
  display: block;
  overflow: hidden;
  font-size: 14.5px;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.grow span {
  display: block;
  overflow: hidden;
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
  text-overflow: ellipsis;
}
.right {
  text-align: right;
}
.right b {
  display: block;
  font-family: var(--display);
  font-size: 15px;
}
.right span {
  display: block;
  margin-top: 3px;
}
.empty {
  padding: 28px 16px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}
.feed {
  padding: 4px 14px;
}
.feed-item {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  font-size: 12.5px;
  line-height: 1.4;
}
.feed-item + .feed-item {
  border-top: 1px solid rgb(31 35 42 / 0.6);
}
.feed-item .t {
  flex-shrink: 0;
  width: 38px;
  font-size: 11px;
  color: var(--muted);
}
.feed-item .x {
  min-width: 0;
  white-space: pre-line;
  word-break: break-word;
}

/* position card */
.pos {
  padding: 14px;
}
.pos + .pos {
  margin-top: 10px;
}
.pos-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.pos-net {
  margin-top: 12px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}
.pos-net .big {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
}
.pos-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 12px;
}

/* order card */
.order {
  padding: 14px;
}
.order + .order {
  margin-top: 10px;
}
.order-top {
  display: flex;
  align-items: center;
  gap: 10px;
}
.order-prices {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}
.order-prices > div {
  padding: 8px 10px;
  border-radius: 13px;
  border: 1px solid var(--border);
  background: rgb(10 11 13 / 0.45);
}
.order-prices span {
  display: block;
  font-size: 10.5px;
  color: var(--muted);
}
.order-prices b {
  display: block;
  margin-top: 2px;
  font-family: var(--display);
  font-size: 14px;
}
.nudge {
  display: grid;
  grid-template-columns: repeat(4, 1fr) 1.3fr;
  gap: 6px;
  margin-top: 10px;
}
.nudge .btn {
  padding: 0;
}
.bar {
  height: 6px;
  margin-top: 6px;
  border-radius: 99px;
  background: var(--border-strong);
  overflow: hidden;
}
.bar i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: var(--accent);
}

/* ---------- inputs ---------- */
.field {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  background: rgb(10 11 13 / 0.7);
  outline: none;
}
.field:focus {
  border-color: var(--accent);
}
.search {
  position: relative;
}
.search svg {
  position: absolute;
  top: 15px;
  left: 14px;
  color: var(--muted);
}
.search .field {
  padding-left: 40px;
}
label.lbl {
  display: block;
  margin: 14px 0 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.amount-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 8px 0 12px;
}
.amount-line .n {
  font-family: var(--display);
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
}

/* ---------- tab bar with the diamond trade button ---------- */
.tabbar {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 40;
  width: 100%;
  max-width: 480px;
  transform: translateX(-50%);
  padding: 0 12px calc(10px + env(safe-area-inset-bottom));
  pointer-events: none;
}
.tabbar-inner {
  pointer-events: auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  height: 66px;
  border-radius: 24px;
  border: 1px solid var(--border-strong);
  background: rgb(13 14 17 / 0.88);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow:
    0 -12px 40px -14px rgb(0 0 0 / 0.9),
    inset 0 1px 0 rgb(255 255 255 / 0.04);
}
.tab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--muted);
}
.tab[data-on="true"] {
  color: var(--fg);
}
.tab[data-on="true"] svg {
  color: var(--accent);
}
.tab[data-on="true"]::before {
  content: "";
  position: absolute;
  top: -4px;
  width: 7px;
  height: 7px;
  background: var(--accent);
  transform: rotate(45deg);
  box-shadow: 0 0 10px 1px rgb(232 176 75 / 0.8);
}
.fab-slot {
  display: grid;
  place-items: center;
}
.fab {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-top: -30px;
  border-radius: 17px;
  transform: rotate(45deg);
  background: var(--accent-grad);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.45),
    0 0 0 5px rgb(7 8 10 / 0.96),
    0 14px 30px -6px rgb(232 176 75 / 0.75);
}
.fab:active {
  transform: rotate(45deg) scale(0.92);
}
.fab svg {
  transform: rotate(-45deg);
  color: var(--accent-fg);
}

/* ---------- sheets ---------- */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgb(0 0 0 / 0.6);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  animation: fade 200ms both;
}
.sheet {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 51;
  width: 100%;
  max-width: 480px;
  max-height: 90dvh;
  overflow-y: auto;
  transform: translateX(-50%);
  padding: 10px 16px calc(18px + env(safe-area-inset-bottom));
  border-radius: 28px 28px 0 0;
  border: 1px solid var(--border-strong);
  border-bottom: 0;
  background: #0e1013;
  box-shadow: 0 -20px 60px -10px rgb(0 0 0 / 0.8);
  animation: sheet-in 340ms cubic-bezier(0.2, 0.9, 0.25, 1) both;
}
.grabber {
  width: 40px;
  height: 4px;
  margin: 0 auto 14px;
  border-radius: 99px;
  background: var(--border-strong);
}
.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.sheet-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 18px;
}
.keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
}
.key {
  height: 54px;
  border-radius: 15px;
  font-family: var(--display);
  font-size: 23px;
  font-weight: 600;
  background: rgb(23 26 31 / 0.75);
  border: 1px solid var(--border);
}
.key:active {
  background: var(--border-strong);
}
.keypad-value {
  padding: 18px 0 6px;
  text-align: center;
  font-family: var(--display);
  font-size: 40px;
  font-weight: 700;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(92px + env(safe-area-inset-bottom));
  z-index: 60;
  max-width: 440px;
  width: calc(100% - 32px);
  transform: translateX(-50%);
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  background: #15181d;
  box-shadow: 0 12px 40px -10px rgb(0 0 0 / 0.9);
  font-size: 13px;
  line-height: 1.4;
  animation: rise 260ms both;
}
.skeleton {
  display: block;
  border-radius: 10px;
  background: linear-gradient(90deg, #14171c 25%, #1b1f26 50%, #14171c 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}

@keyframes orbit {
  to {
    --a: 360deg;
  }
}
@keyframes ping {
  0% {
    transform: scale(1);
    opacity: 0.75;
  }
  80%,
  100% {
    transform: scale(2.8);
    opacity: 0;
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}
@keyframes fade {
  from {
    opacity: 0;
  }
}
@keyframes sheet-in {
  from {
    transform: translate(-50%, 100%);
  }
  to {
    transform: translate(-50%, 0);
  }
}
@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ping,
  .page.anim,
  .hold::before,
  .sheet,
  .backdrop,
  .toast {
    animation: none;
  }
}

/* ---------- 2026-11-11: denser screens, text size, the new screens ---------- */
/* Text size (Settings → Display): the whole app scales; Small is the default (owner: more on one screen). */
html[data-size="small"] .root,
html[data-size="small"] .tabbar,
html[data-size="small"] #sheets {
  zoom: 0.86;
}
html[data-size="large"] .root,
html[data-size="large"] .tabbar,
html[data-size="large"] #sheets {
  zoom: 1.12;
}
.topbar { gap: 8px; }
.ticker { min-width: 0; overflow: hidden; }
#tickerText { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-btn { width: 34px; height: 34px; flex: none; }
#pausedBadge { flex: none; }
.wtag { margin-left: 6px; font-size: 10px; font-weight: 600; color: var(--muted); border: 1px solid var(--line, #2c323b); border-radius: 6px; padding: 1px 5px; vertical-align: middle; }
.wallet-head { display: flex; align-items: center; gap: 10px; margin: 14px 2px 6px; font-size: 13px; }
.wallet-head b { flex: 1; }
.wallet-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid rgb(255 255 255 / .06); }
.wallet-row:first-of-type { border-top: 0; }
.wallet-row .grow b { display: block; }
.pos-head.press { cursor: pointer; }
.pos-actions.five { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.pos-actions.five .btn { padding-left: 4px; padding-right: 4px; font-size: 12px; }
.fills { display: grid; gap: 2px; font-size: 12px; }
.fill { display: grid; grid-template-columns: 38px 52px 1fr auto auto; gap: 8px; align-items: center; padding: 4px 2px; border-top: 1px solid rgb(255 255 255 / .05); }
.fill .num { text-align: right; }
.chips.five { grid-template-columns: repeat(5, 1fr); }
.chips.six { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.spark-btn { display: block; width: 100%; margin-top: 14px; padding: 0; background: none; border: 0; color: inherit; text-align: left; }
.spark-btn .right { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.chart-box { min-height: 260px; }
.trades { padding: 6px 10px; }
.trow { display: grid; grid-template-columns: 44px 38px 1fr 1fr 1fr; gap: 6px; padding: 6px 0; font-size: 12px; border-top: 1px solid rgb(255 255 255 / .05); }
.trow.head { color: var(--muted); border-top: 0; font-size: 11px; }
.trow span:nth-child(n + 3) { text-align: right; }
.ask { white-space: pre-line; font-size: 15px; line-height: 1.45; margin: 4px 2px; }
.field.mono, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

/* the chart's indicators: a chip each, its colour as a dot; the trade list's wallets; the wallet sheet */
.ind-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ind { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--border-strong); font-size: 12px; font-weight: 600; color: var(--muted); background: rgb(255 255 255 / .02); }
.ind i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); opacity: .35; }
.ind[data-on="true"] { color: var(--fg); border-color: color-mix(in srgb, var(--c) 55%, transparent); background: color-mix(in srgb, var(--c) 12%, transparent); }
.ind[data-on="true"] i { opacity: 1; box-shadow: 0 0 8px var(--c); }
.chart-card { padding: 4px 2px 2px; }
.rsi-box { height: 92px; border-top: 1px solid rgb(255 255 255 / .05); }
.trow .maker { display: inline-flex; align-items: center; justify-content: flex-end; gap: 2px; font: inherit; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; color: var(--accent); }
.maker-head { display: flex; align-items: center; gap: 8px; }
.maker-head .mono { flex: 1; font-size: 13px; }
.mtiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.mtile { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--border); background: rgb(255 255 255 / .025); }
.mtile span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.mtile b { font-size: 17px; }
.mtile small { font-size: 11px; color: var(--muted); }

/* ---------- the mark and the name (2026-11-11) ---------- */
.mark { display: none; }
.logo { display: block; filter: drop-shadow(0 0 10px rgb(232 176 75 / 0.35)); }
.brand .logo { width: 26px; height: 26px; }
.word b { font-weight: 700; letter-spacing: 0.14em; font-size: 13.5px; }
.word small { color: var(--accent); letter-spacing: 0.34em; font-size: 8px; }
.word small.accent { color: #ff9f43; }
/* the login: the mark big, the name, one line */
.hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 26px 0 8px; }
.hero .logo { width: 84px; height: 84px; filter: drop-shadow(0 0 26px rgb(232 176 75 / 0.45)); }
.hero h1 { font-family: var(--display); font-weight: 700; letter-spacing: 0.22em; font-size: 22px; margin: 18px 0 4px; }
.hero p { margin: 0; color: var(--muted); font-size: 13px; letter-spacing: 0.04em; }
.gold-line { height: 1px; margin: 18px auto 4px; width: 64%; background: linear-gradient(90deg, transparent, rgb(232 176 75 / 0.65), transparent); }
.big-usd, .display { letter-spacing: -0.01em; }

a.btn { color: inherit; text-decoration: none; display: inline-flex; align-items: center; }

/* `hidden` always hides (a class with its own display, like .badge or .icon-btn, used to win: the PAUSED badge showed
   while the vault was not paused, and the Activity / Settings buttons on the login screen). */
[hidden] {
  display: none !important;
}

/* ---------- design F (2026-11-11): flat tiles, one gold, cream for the chosen; compact ---------- */
/* Compact on purpose (owner, 2026-11-11: smaller cards and tiles, more data on one screen, less scrolling). */
.glow,
.circuit {
  display: none;
}
.root {
  padding-bottom: calc(84px + env(safe-area-inset-bottom));
}
.topbar {
  gap: 7px;
  padding: 8px 12px;
  background: rgb(11 10 9 / 0.95);
  border-bottom: 1px solid var(--border);
}
.brand {
  gap: 7px;
}
.logo,
.hero .logo {
  filter: none;
}
.brand .logo {
  width: 24px;
  height: 24px;
}
.word b {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.word b i {
  font-style: normal;
  color: var(--accent);
}
.word small {
  margin-top: 2px;
  font-family: var(--sans);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--muted);
}
.word small:empty {
  display: none;
}
.word small.accent {
  color: var(--warn);
}
.ticker {
  padding: 5px 10px;
  background: var(--bg-elev);
  border-color: var(--border);
}
.dot i {
  background: var(--up);
}
.top-btn,
.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg-hover);
  border-color: var(--border);
}
.page {
  padding: 10px 12px 0;
}
h1.title {
  margin: 2px 2px 10px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.card,
.card-strong {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: none;
}
.pad {
  padding: 12px;
}
.section {
  margin: 14px 2px 6px;
}
.section h2 {
  font-size: 14px;
  letter-spacing: -0.01em;
}
.rows {
  padding: 2px 4px;
}
.row {
  gap: 10px;
  padding: 8px;
  border-radius: 12px;
}
.row + .row {
  border-top-color: var(--border);
}
.row:active {
  background: var(--bg-hover);
}
.grow b {
  font-size: 13.5px;
}
.grow span {
  font-size: 11px;
}
.right b {
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 600;
}
.right span {
  margin-top: 2px;
}
.empty {
  padding: 16px 12px;
  font-size: 12.5px;
}
.big-usd {
  font-weight: 800;
  letter-spacing: -0.05em;
}
.big-usd small {
  color: inherit;
  opacity: 0.7;
}
.split {
  gap: 6px;
  margin-top: 10px;
}
.split > div {
  padding: 7px 8px;
  border-radius: 12px;
  background: var(--bg);
}
.split b {
  font-size: 14px;
}
.box {
  margin-top: 10px;
  padding: 6px 10px;
  border-radius: 13px;
  background: var(--bg);
}
.kv {
  padding: 4px 0;
  font-size: 12.5px;
}
.feed {
  padding: 2px 12px;
}
/* a coin: its DexScreener logo when it has one, else its first letters on a colour from the symbol */
.coin {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  overflow: hidden;
  font-size: 11px;
  color: var(--accent-fg);
}
.coin img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.chg {
  padding: 2px 6px;
  border-radius: 7px;
  font-size: 11px;
}
.chg.up {
  background: color-mix(in srgb, var(--up) 14%, transparent);
}
.chg.down {
  background: color-mix(in srgb, var(--down) 14%, transparent);
}
.badge.good {
  border-color: color-mix(in srgb, var(--up) 40%, transparent);
}
.badge.bad {
  border-color: color-mix(in srgb, var(--down) 45%, transparent);
}
.badge.amber {
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
}
.btn {
  height: 44px;
  border-radius: 14px;
  font-size: 14px;
}
.btn.sm {
  height: 34px;
  border-radius: 11px;
  font-size: 12.5px;
}
.btn.primary {
  background: var(--accent);
  box-shadow: none;
}
.btn.ghost {
  background: var(--bg-hover);
  border-color: var(--border-strong);
}
.chip {
  padding: 8px 10px;
  border-radius: 13px;
  background: var(--bg-hover);
}
.chip b {
  font-size: 14.5px;
}
.chip[data-on="true"] {
  border-color: var(--cream);
  background: var(--cream);
  color: #17120a;
  box-shadow: none;
}
.chip[data-on="true"] span {
  color: #4a443a;
}
.chip[data-on="true"]::after {
  display: none;
}
.pill {
  height: 30px;
  padding: 0 12px;
  background: var(--bg-hover);
}
.pill[data-on="true"] {
  border-color: var(--cream);
  background: var(--cream);
  color: #17120a;
}
.seg {
  border-radius: 13px;
  background: var(--bg);
}
.seg-pill {
  border-radius: 10px;
}
.seg button {
  height: 34px;
  font-size: 13.5px;
}
.seg.sm button {
  height: 28px;
  font-size: 12px;
}
.field {
  height: 44px;
  border-radius: 13px;
  background: var(--bg);
}
.amount-line .n {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.sheet {
  background: var(--bg-elev);
  border-color: var(--border-strong);
}
.key {
  height: 48px;
  border-radius: 14px;
  background: var(--bg-hover);
}
.keypad-value {
  padding: 12px 0 4px;
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.toast {
  bottom: calc(80px + env(safe-area-inset-bottom));
  background: #201d1a;
}

/* the tab bar: flat, the active tab in cream, the trade button a gold circle */
.tabbar {
  padding: 0 10px calc(8px + env(safe-area-inset-bottom));
}
.tabbar-inner {
  height: 58px;
  border-radius: 22px;
  border-color: #2c2925;
  background: rgb(23 21 19 / 0.97);
  box-shadow: 0 -10px 30px -12px rgb(0 0 0 / 0.9);
}
.tab {
  font-size: 10px;
}
.tab[data-on="true"],
.tab[data-on="true"] svg {
  color: var(--cream);
}
.tab[data-on="true"]::before {
  display: none;
}
.fab {
  width: 48px;
  height: 48px;
  margin-top: 0;
  border-radius: 50%;
  transform: none;
  background: var(--accent);
  box-shadow: none;
}
.fab:active {
  transform: scale(0.92);
}
.fab svg {
  transform: none;
}

/* Home: the wallet cards behind the vault card */
.wallet-stack {
  display: flex;
  flex-direction: column;
}
.wpeek {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  height: 58px;
  margin: 0 10px -24px;
  padding: 9px 14px 0;
  border-radius: 18px;
  background: var(--cream);
  color: #17120a;
  font-size: 12px;
  font-weight: 700;
  text-align: left;
}
.wpeek.back {
  margin: 0 20px -24px;
  background: #2c2925;
  color: #d6cfc2;
  font-weight: 600;
}
.wpeek .grow {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.vault-card {
  position: relative;
  padding: 12px 14px;
  border-radius: 20px;
  background: var(--accent);
  color: #17120a;
}
.vault-top {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
}
.vault-top .eyebrow {
  color: #17120a;
  font-size: 10.5px;
  letter-spacing: 0.14em;
}
.vault-top .eye {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin: -4px 0;
  color: #17120a;
}
.vault-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  margin-left: auto;
  padding: 0 9px;
  border-radius: 999px;
  background: #17120a;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
}
.vault-pill.bad {
  color: #ffb4ab;
}
.vault-card .big-usd {
  display: block;
  margin-top: 6px;
  font-size: 34px;
}
.vault-card .big-usd small {
  font-size: 20px;
}
.vault-line {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
}
.alloc {
  display: flex;
  gap: 3px;
  height: 6px;
  margin-top: 10px;
}
.alloc i {
  min-width: 3px;
  border-radius: 3px;
}
.alloc-legend {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 6px;
  font-size: 10.5px;
  font-weight: 500;
}
.alloc-legend b {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
}
/* Home: tiles */
.tile-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px 4px;
}
.tile-head h2 {
  margin: 0;
  flex: 1;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.tile-head h2 small {
  margin-left: 6px;
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
}
.tile-head .add {
  height: 30px;
  margin: -4px -4px -4px 0;
  padding: 0 6px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
}
.home-gap {
  height: 8px;
}
.duo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  margin-top: 8px;
}
.mini {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 9px 12px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  text-align: left;
}
.mini > span {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}
.mini > b {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--display);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.mini > b i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.mini > small {
  overflow: hidden;
  font-size: 10.5px;
  color: var(--muted);
  white-space: nowrap;
  text-overflow: ellipsis;
}
/* the watchlist as a table */
.wl {
  padding-bottom: 4px;
}
.wl-head,
.wl-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 68px 48px 52px 54px;
  align-items: center;
  gap: 5px;
  padding: 0 12px;
}
.wl-head {
  height: 18px;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.wl-head span:nth-child(n + 2),
.wl-row > b,
.wl-row > .wl-n,
.wl-row > .chgc {
  text-align: right;
  white-space: nowrap;
}
.wl-row > .wl-n {
  font-size: 11.5px;
  color: var(--muted);
}
.wl-row {
  width: 100%;
  height: 42px;
  border-top: 1px solid var(--border);
  text-align: left;
}
.wl-row:active {
  background: var(--bg-hover);
}
.wl-coin {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.wl-coin .coin {
  width: 26px;
  height: 26px;
  font-size: 9.5px;
}
.wl-coin .grow b {
  font-size: 13px;
}
.wl-coin .grow span {
  font-size: 10.5px;
}
.wl-row > b {
  font-size: 13px;
  font-weight: 600;
}
.wl-row > .chgc {
  font-size: 12px;
  font-weight: 600;
}

/* slide to confirm: drag the gold knob to the end of the track */
.slide {
  position: relative;
  height: 52px;
  overflow: hidden;
  border-radius: 999px;
  background: #17120a;
  box-shadow: inset 0 0 0 1px #3a3631;
  color: var(--cream);
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  --x: 0px;
}
.slide-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: calc(var(--x) + 52px);
  border-radius: inherit;
  background: rgb(240 185 77 / 0.22);
}
.slide-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px 0 58px;
  overflow: hidden;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.slide-knob {
  position: absolute;
  top: 4px;
  left: 4px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #17120a;
  transform: translateX(var(--x));
  touch-action: none;
}
.slide.sell .slide-knob {
  background: var(--cream);
}
.slide[data-state="idle"] .slide-knob,
.slide[data-state="idle"] .slide-fill {
  transition:
    transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1),
    width 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.slide[data-disabled="true"] {
  opacity: 0.5;
}
.slide[data-disabled="true"] .slide-knob {
  cursor: not-allowed;
}
@media (prefers-reduced-motion: reduce) {
  .slide[data-state="idle"] .slide-knob,
  .slide[data-state="idle"] .slide-fill {
    transition: none;
  }
}
/* the login: the mark and the wordmark */
.hero {
  padding: 22px 0 14px;
}
.hero .logo {
  width: 72px;
  height: 72px;
}
.hero h1 {
  margin: 14px 0 2px;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.045em;
}
.hero h1 i {
  font-style: normal;
  color: var(--accent);
}
/* positions and orders, compact (owner, 2026-11-11) */
.pos,
.order {
  padding: 10px 12px;
}
.pos + .pos,
.order + .order {
  margin-top: 8px;
}
.pos-net {
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.pos-net .eyebrow {
  flex: 1;
  font-size: 10px;
}
.pos-net .big {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.pos-actions {
  margin-top: 8px;
}
.pos-actions .btn {
  height: 34px;
  border-radius: 11px;
}
.order-prices {
  gap: 6px;
  margin-top: 8px;
}
.order-prices > div {
  padding: 6px 8px;
  border-radius: 11px;
  background: var(--bg);
}
.nudge {
  margin-top: 8px;
}
.nudge .btn {
  height: 34px;
}
/* the Vault admin screen (admin.js): long addresses wrap inside the cream check */
.admin-sum {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 1.4;
}
.admin-val {
  word-break: break-all;
  font-size: 11.5px;
}

/* ---------- layout A · Bento (owner, 2026-11-12: "round 2 layout A Bento"; replaces design F's look) ----------
   The design board: brand-canvas BentoHome / BentoCoin. Near-black ground, slate tiles with a hairline border, one gold,
   off-white text, green and red only for money; Geist everywhere (Geist Mono for the ticker's price). The colours are
   tokens, so Settings → Display can change them (theme.js-like code in app.js: applyTheme); these are the defaults. */
:root {
  --bg: #0a0a0b;
  --bg-elev: #141416;
  --bg-hover: #1f1f23;
  --fg: #f4f2ee;
  --muted: #9a9aa2;
  --dim: #77777f;
  --border: #222226;
  --border-strong: #2e2e34;
  --accent: #f2b84b;
  --accent-hi: #ffd88a;
  --accent-lo: #b9862c;
  --accent-grad: #f2b84b;
  --accent-fg: #17120a;
  --cream: #e9e4da;
  --coins: #6b6458;
  --up: #3ddc84;
  --down: #ff6b6b;
  --glass: #141416;
  --display: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", monospace;
}
.topbar {
  background: color-mix(in srgb, var(--bg) 95%, transparent);
}
.logo {
  color: var(--accent);
}
.word b {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.03em;
}
.ticker {
  border-radius: 12px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
}
#tickerText {
  font-family: var(--mono);
  font-weight: 600;
}
.top-btn,
.icon-btn {
  border-radius: 12px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
}
/* Home: the net worth card is a tile now (no gold card, no wallet cards behind it: those are the Wallets section). */
.vault-card {
  padding: 14px 16px;
  border-radius: 22px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  color: var(--fg);
}
.vault-top .eyebrow {
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}
.vault-top .eye {
  color: var(--muted);
}
.vault-pill {
  background: color-mix(in srgb, var(--up) 12%, transparent);
  color: var(--up);
  font-weight: 600;
}
.vault-pill .live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.vault-pill.bad {
  background: color-mix(in srgb, var(--down) 12%, transparent);
  color: var(--down);
}
.vault-card .big-usd {
  margin-top: 8px;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
}
.vault-card .big-usd small {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--dim);
}
.vault-line {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12.5px;
}
.vault-line .up,
.vault-line .down {
  font-weight: 600;
}
.alloc {
  height: 8px;
  margin-top: 12px;
}
.alloc i {
  border-radius: 4px;
}
.alloc-legend span {
  color: var(--muted);
}
.alloc-legend b {
  color: var(--fg);
}
.alloc-legend span::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 5px;
  border-radius: 2px;
  background: var(--swatch, var(--accent));
  vertical-align: -0.5px;
}
.card,
.mini {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 20px;
}
.mini > b {
  font-weight: 700;
}
.fab {
  background: var(--accent);
  color: var(--accent-fg);
}

/* the chart's timeframe button (it opens every frame in a sheet), first in the indicator row */
.frame-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px 6px 12px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--fg);
  font-size: 12px;
}
.frame-btn b {
  font-family: var(--mono);
  font-weight: 600;
}
.frame-btn svg {
  color: var(--accent);
}

/* our pool's screen (pool.js) */
.pool-link {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
}
.pool-range {
  margin-top: 10px;
}
.pool-range-track {
  position: relative;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--border-strong), color-mix(in srgb, var(--accent) 45%, var(--border-strong)), var(--border-strong));
}
.pool-range-track i {
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--bg-elev);
  transform: translateY(-50%);
}
.pool-range-ends {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  font-size: 11px;
  color: var(--muted);
}
.pool-chart {
  height: 220px;
  margin-top: 10px;
}
.pool-legend {
  display: flex;
  gap: 14px;
  margin-top: 8px;
  font-size: 11px;
  color: var(--muted);
}
.pool-legend span::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 3px;
  margin-right: 5px;
  border-radius: 2px;
  vertical-align: middle;
  background: var(--c);
}
.ev-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

/* ---------- layout A · Bento, every screen (owner, 2026-11-12: "A Bento style me sab kuch hi banana hai ... settings,
   vault, positions ... jo bhi bachta hai vo sab") ----------
   The board's parts (brand-canvas BentoHome / BentoCoin), as rules for the app's shared pieces, so every screen built
   from them follows: slate tiles with a hairline, 22 px corners; rows on hairlines; square-cornered coin tiles; outline
   chips that turn gold when chosen; dark segments; a floating tab bar with a square gold button; the buy panel with
   its amount large in the middle and a keypad. Colours only through the tokens (Settings → Colours changes them). */
.glow,
.circuit {
  display: none;
}

/* the top bar */
.brand .logo {
  width: 28px;
  height: 28px;
}
.ticker {
  height: 34px;
  padding: 0 10px;
  border-radius: 12px;
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  font-size: 12px;
}
.top-btn,
.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  color: var(--fg);
}

/* tiles */
.card,
.card-strong,
.mini {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: none;
}
.card-strong::before,
.card-strong::after {
  display: none;
}
.vault-card {
  padding: 16px;
  border-radius: 24px;
}
.vault-card .big-usd {
  font-size: 44px;
}
.vault-card .big-usd small {
  font-size: 24px;
}
.eyebrow {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
}
h1.title {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.section h2,
.tile-head h2 {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
}
.tile-head {
  min-height: 40px;
  padding: 6px 14px 0;
}
.tile-head h2 .count {
  margin-left: 8px;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--accent);
  color: var(--accent-fg);
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}
.tile-head .add {
  height: 32px;
  margin: 0;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
}
.home-gap {
  height: 10px;
}

/* rows on hairlines */
.rows {
  padding: 0 14px 4px;
}
.row {
  gap: 10px;
  min-height: 48px;
  padding: 8px 0;
  border-radius: 0;
}
.rows > .row,
.row + .row {
  border-top: 1px solid var(--bg-hover);
}
.row:active {
  background: none;
  opacity: 0.7;
}
.grow b {
  font-size: 14px;
  font-weight: 600;
}
.grow span {
  font-size: 11.5px;
  color: var(--muted);
}
.right b {
  font-family: var(--mono);
  font-size: 13.5px;
  font-weight: 600;
}
.right .pl {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
}
.right .pl.up {
  color: var(--up);
}
.right .pl.down {
  color: var(--down);
}

/* coins: a square tile with round corners; without a logo, gold letters on a dark gold tile */
.coin {
  overflow: hidden;
  border-radius: 10px;
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 700;
}
.coin.letters {
  background: color-mix(in srgb, var(--accent) 13%, var(--bg-elev));
  color: var(--accent);
}
.coin img {
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: cover;
}

/* Home's two tiles */
.duo {
  gap: 10px;
  margin-top: 10px;
}
.mini {
  justify-content: space-between;
  gap: 6px;
  min-height: 92px;
  padding: 14px;
}
.mini > span {
  display: flex;
  align-items: center;
  width: 100%;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}
.mini > span .tag {
  margin-left: auto;
  padding: 3px 8px;
  border-radius: 8px;
  background: var(--bg-hover);
  color: var(--fg);
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
}
.mini > b {
  font-family: var(--sans);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.mini > b.ok {
  gap: 7px;
  font-size: 20px;
  color: var(--fg);
}
.mini > b.ok svg {
  color: var(--accent);
}
.mini > small {
  font-size: 11.5px;
}

/* the watchlist's rows */
.wl-row {
  height: 46px;
  border-top: 1px solid var(--bg-hover);
}
.wl-row > b,
.wl-row > .wl-n,
.wl-row > .chgc {
  font-family: var(--mono);
}
.wl-coin .coin {
  width: 32px;
  height: 32px;
}

/* buttons */
.btn {
  border-radius: 16px;
}
.btn.primary {
  background: var(--accent);
  color: var(--accent-fg);
  box-shadow: none;
}
.btn.ghost {
  background: var(--bg-hover);
  border: 1px solid var(--border-strong);
  color: var(--fg);
}
.btn.sm {
  height: 36px;
  border-radius: 10px;
}
.btn.danger {
  background: color-mix(in srgb, var(--down) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--down) 40%, transparent);
  color: var(--down);
}

/* chips and pills: an outline, gold when chosen */
.chip {
  padding: 9px 10px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: transparent;
}
.chip b {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
}
.chip[data-on="true"] {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  box-shadow: none;
  color: var(--accent);
}
.chip[data-on="true"]::after {
  display: none;
}
.chip[data-on="true"] span {
  color: var(--muted);
}
.pill {
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--muted);
}
.pill[data-on="true"] {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--accent);
}

/* segments: a dark well, the chosen one filled */
.seg {
  border: 0;
  border-radius: 14px;
  background: var(--bg);
}
.card .seg,
.sheet .seg,
.ticket .seg {
  background: var(--bg);
}
.seg-pill {
  border-radius: 11px;
  box-shadow: none !important;
}
.seg button {
  font-size: 13.5px;
  font-weight: 600;
}
.seg button[data-on="true"] {
  font-weight: 700;
}
.seg.sm button {
  height: 34px;
  font-size: 12.5px;
}

/* badges */
.badge {
  padding: 4px 8px;
  border: 0;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
}
.badge.good {
  background: color-mix(in srgb, var(--up) 12%, transparent);
  color: var(--up);
}
.badge.bad {
  background: color-mix(in srgb, var(--down) 12%, transparent);
  color: var(--down);
}
.badge.amber {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
}

/* fields and boxes */
.field {
  border-radius: 14px;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  color: var(--fg);
}
.field:focus {
  border-color: var(--accent);
}
.box {
  border-radius: 16px;
  background: var(--bg);
  border: 1px solid var(--border);
}

/* the tab bar: floating, the open tab in gold, the trade button a square with round corners */
.tabbar {
  padding: 0 16px calc(14px + env(safe-area-inset-bottom));
}
.tabbar-inner {
  height: 64px;
  border-radius: 22px;
  border: 1px solid var(--border-strong);
  background: color-mix(in srgb, var(--bg-elev) 96%, transparent);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
}
.tab {
  gap: 4px;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--muted);
}
.tab[data-on="true"],
.tab[data-on="true"] svg {
  color: var(--accent);
}
.tab[data-on="true"] {
  font-weight: 600;
}
.fab {
  width: 54px;
  height: 54px;
  margin-top: -30px;
  border-radius: 18px;
  background: var(--accent);
  color: var(--accent-fg);
  box-shadow: 0 0 0 5px var(--bg);
}
.fab svg {
  color: var(--accent-fg);
  stroke-width: 2.6;
}

/* sheets */
.sheet {
  border-radius: 30px 30px 0 0;
  background: var(--bg-elev);
  border-top: 1px solid var(--border-strong);
}
.toast {
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: var(--bg-hover);
  color: var(--fg);
}

/* keypads */
.keypad {
  gap: 6px;
}
.key {
  height: 44px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--fg) 5%, var(--bg-elev));
  color: var(--fg);
  font-family: var(--sans);
  font-size: 19px;
  font-weight: 600;
}
.keypad.inline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 10px;
}
.keypad.inline .key {
  display: grid;
  place-items: center;
}

/* a coin's price line and its tiles (the trade screen, the chart) */
.coin-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.coin-price .p {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
}
.coin-price .c {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.coin-price .c.up {
  color: var(--up);
}
.coin-price .c.down {
  color: var(--down);
}
.coin-price .held-note {
  margin-left: auto;
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
}
.spark-btn {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 24px;
}
.chart-card {
  padding: 12px 14px;
  border-radius: 24px;
}
.chart-card .chart-box {
  margin: 8px -8px 0;
}
.chart-card .ind-chips {
  margin-top: 8px;
  align-items: center;
  gap: 4px;
}
.ind {
  height: 34px;
  padding: 0 9px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: transparent;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
}
.ind[data-on="true"] {
  border-color: var(--c);
  background: color-mix(in srgb, var(--c) 10%, transparent);
  color: var(--fg);
}
.frame-btn {
  height: 34px;
  padding: 0 8px 0 12px;
  border: 0;
  border-radius: 10px;
  background: var(--bg-hover);
}

/* the buy panel (the board's bottom sheet, here a tile of the page): Buy / Sell and Market / Limit, the amount large
   in the middle, quick amounts, the keypad, the costs, the confirm */
.ticket {
  display: flex;
  flex-direction: column;
  margin-top: 10px;
  padding: 8px 14px 14px;
  border-radius: 26px;
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  color: var(--fg);
}
.ticket .grabber {
  align-self: center;
  width: 40px;
  height: 4px;
  margin-bottom: 10px;
  border-radius: 2px;
  background: var(--border-strong);
}
.ticket-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.ticket-top .seg {
  flex: 0 1 47%;
}
.ticket-amount {
  margin-top: 12px;
  text-align: center;
}
.amount-big {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.05;
  overflow-wrap: anywhere;
}
.amount-big.long {
  font-size: 30px;
}
.amount-sub {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--muted);
}
.amount-sub.dim {
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--dim);
}
.qchips {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}
.qchip {
  height: 40px;
  min-width: 0;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--fg);
  font-size: 12.5px;
  font-weight: 600;
}
.qchip.num {
  font-family: var(--mono);
}
.qchip[data-on="true"] {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--accent);
}
.ticket .box {
  margin-top: 12px;
}
.ticket .amount-line .n {
  font-size: 26px;
}

/* the confirm: a slide (a dark track, a gold knob with round corners); with one-tap on, the board's gold button */
.slide {
  height: 54px;
  border-radius: 18px;
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--border-strong);
  color: var(--fg);
}
.slide-fill {
  width: calc(var(--x) + 54px);
  background: color-mix(in srgb, var(--accent) 22%, transparent);
}
.slide-knob {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--accent);
  color: var(--accent-fg);
}
.slide-label {
  padding: 0 14px 0 60px;
  font-size: 14px;
  font-weight: 700;
}
.slide.tap {
  background: var(--accent);
  box-shadow: none;
  color: var(--accent-fg);
  cursor: pointer;
}
.slide.tap.sell {
  background: var(--cream);
}
.slide.tap .slide-knob,
.slide.tap .slide-fill {
  display: none;
}
.slide.tap .slide-label {
  padding: 0 14px;
  font-size: 16px;
}
.slide.tap[data-disabled="true"] {
  cursor: not-allowed;
}
.cost-line {
  margin: 10px 0 0;
  font-size: 12px;
  text-align: center;
  color: var(--muted);
}
.cost-line.warn {
  color: var(--warn, #ffb020);
}

/* the bottom menu with Pool and Wallets (owner, 2026-11-12): six tabs around the trade button */
.tabbar {
  padding-left: 10px;
  padding-right: 10px;
}
.tabbar-inner {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.tab {
  min-width: 0;
  font-size: 10px;
  letter-spacing: -0.01em;
}
.tab svg {
  width: 20px;
  height: 20px;
}
.fab {
  width: 50px;
  height: 50px;
  border-radius: 17px;
}
.rows .grow span + span {
  margin-top: 1px;
}
.pool-chart {
  height: 240px;
}
.ev-row.outside {
  background: color-mix(in srgb, var(--accent) 6%, transparent);
}
.tag-out {
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent);
  font-size: 10px;
  font-style: normal;
  font-weight: 600;
}
.right b.up {
  color: var(--up);
}
.right b.down {
  color: var(--down);
}

/* the Wallets tab: the bot's wallets on a chain, the key's sheet */
.chain-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid var(--bg-hover);
}
.chips + .chain-row {
  margin-top: 10px;
}
.chain-row .grow > span,
.chain-row .grow > .addr {
  display: block;
  font-size: 12px;
}
.chain-row .addr {
  padding: 0;
  color: var(--accent);
  text-align: left;
}
.wallet-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  max-width: 46%;
}
.secret {
  padding: 12px;
  border-radius: 12px;
  border: 1px dashed var(--border-strong);
  background: var(--bg);
  font-size: 12.5px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  color: var(--muted);
  cursor: pointer;
  user-select: text;
}
.secret[data-on="true"] {
  border-style: solid;
  border-color: color-mix(in srgb, var(--down) 45%, transparent);
  color: var(--fg);
}
.phrase-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  filter: blur(7px);
  user-select: none;
}
.phrase-grid[data-on="true"] {
  filter: none;
  user-select: text;
}
.phrase-grid span {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 13px;
}
.phrase-grid i {
  font-style: normal;
  font-size: 10.5px;
  color: var(--dim);
  min-width: 14px;
}

/* a coin's research (research.js) */
.rverdict {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.rgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}
.rstat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--bg);
  border: 1px solid var(--border);
}
.rstat > span {
  font-size: 11.5px;
  color: var(--muted);
}
.rstat > b {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.rstat > b.up {
  color: var(--up);
}
.rstat > b.down {
  color: var(--down);
}
.rstat > b.warn {
  color: var(--accent);
}
.rstat > small {
  overflow: hidden;
  font-size: 10.5px;
  color: var(--dim);
  white-space: nowrap;
  text-overflow: ellipsis;
}
.rhead {
  margin: 14px 0 6px;
  font-size: 13px;
  font-weight: 600;
}
.rperson {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid var(--bg-hover);
}
.rperson > span {
  width: 92px;
  flex-shrink: 0;
  font-size: 12px;
  color: var(--muted);
}
.rperson .grow b {
  font-size: 13px;
  white-space: normal;
}
.rperson .grow b.down {
  color: var(--down);
}
.rperson .grow span {
  font-size: 11.5px;
  white-space: normal;
}
.rflags {
  margin: 10px 0 0;
  padding-left: 18px;
  font-size: 12px;
  line-height: 1.5;
}
.rflags .down {
  color: var(--down);
}
.rflags .warn {
  color: var(--accent);
}
.rlinks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.rlink {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  color: var(--fg);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
}
.rlink.x {
  font-size: 15px;
}

/* ---------- a coin's screen, laid out as the big exchanges' phone apps (owner, 2026-11-12) ---------- */
/* The pair and the price with the day's high, low and volumes; timeframes and indicators as text tabs around a tall
   chart with its values written over it (cbchart.js, cbchart.css); Trades, Info, Research as tabs; Buy and Sell held
   at the bottom, where the tab bar steps aside (app.js render). */
html[data-screen="chart"] .root {
  padding-bottom: 0;
}
.cx {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cx-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cx-head .grow {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.cx-head .grow b {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cx-head .grow > span {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cx-quote {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}
.cx-head .grow b .cx-quote {
  display: inline; /* beside the coin's name (.grow span is a line of its own elsewhere) */
}
.cx-price {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  padding: 0 2px;
}
.cx-last {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.cx-last b {
  font-family: var(--mono);
  font-size: 27px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}
.cx-last b.up,
.cx-last span.up {
  color: var(--up);
}
.cx-last b.down,
.cx-last span.down {
  color: var(--down);
}
.cx-last span {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
}
.cx-held {
  font-size: 11.5px;
  color: var(--muted);
}
.cx-stats {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 7px 14px;
  padding-top: 2px;
}
.cx-stats div {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.cx-stats span {
  font-size: 10.5px;
  color: var(--dim);
  white-space: nowrap;
}
.cx-stats b {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  white-space: nowrap;
}
/* the charted pool's liquidity: a tap opens the menu of the coin's pools (screens.js poolsMenu) */
.cx-stats .cx-liq {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  margin: -3px -5px;
  padding: 3px 5px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.cx-stats .cx-liq:hover,
.cx-stats .cx-liq:active {
  background: var(--bg-hover);
}
.cx-stats .cx-liq i {
  font-style: normal;
  color: var(--accent);
}
/* a small menu under its button (app.js openMenu): the chart's pools */
.menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgb(0 0 0 / 0.28);
  animation: fade 150ms both;
}
.menu-pop {
  position: fixed;
  z-index: 51;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  background: var(--bg-elev);
  box-shadow: 0 18px 48px rgb(0 0 0 / 0.55);
  transform-origin: top right;
  animation: menuIn 140ms ease-out both;
}
@keyframes menuIn {
  from {
    opacity: 0;
    transform: translateY(-4px) scale(0.97);
  }
}
.pools-menu {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}
.pm-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px 7px;
  font-size: 11.5px;
}
.pm-head b {
  font-size: 13px;
}
.pm-best {
  display: grid;
  gap: 4px;
  padding: 0 8px 8px;
}
.pm-pick {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 7px 8px;
  border: 0;
  border-radius: 10px;
  background: var(--bg-hover);
  color: var(--fg);
  font: inherit;
  font-size: 12px;
  text-align: left;
  cursor: pointer;
}
.pm-pick:disabled {
  cursor: default;
}
.pm-kind {
  flex: none;
  min-width: 58px;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 700;
  text-align: center;
}
.pm-kind.buy {
  background: color-mix(in srgb, var(--up) 18%, transparent);
  color: var(--up);
}
.pm-kind.sell {
  background: color-mix(in srgb, var(--down) 18%, transparent);
  color: var(--down);
}
.pm-name {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: 1 1 auto;
  min-width: 0;
}
.pm-pick .pm-name,
.pm-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pm-pick .pm-name {
  display: block;
}
.pm-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 4px 6px 6px;
  border-top: 1px solid var(--border);
}
.pm-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  column-gap: 8px;
  width: 100%;
  padding: 7px 8px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--fg);
  font: inherit;
  font-size: 12px;
  text-align: left;
  cursor: pointer;
}
.pm-row:hover {
  background: var(--bg-hover);
}
.pm-row[data-on="true"] {
  background: color-mix(in srgb, var(--accent) 13%, transparent);
  box-shadow: inset 2px 0 0 var(--accent);
}
.pm-row b {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
}
.pm-share {
  min-width: 34px;
  font-size: 10.5px;
  text-align: right;
}
.pm-tag {
  flex: none;
  padding: 0 5px;
  border-radius: 5px;
  font-size: 9.5px;
  font-weight: 700;
  line-height: 16px;
}
.pm-tag.buy {
  background: color-mix(in srgb, var(--up) 18%, transparent);
  color: var(--up);
}
.pm-tag.sell {
  background: color-mix(in srgb, var(--down) 18%, transparent);
  color: var(--down);
}
.pm-tag.chart {
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent);
}
.pm-more {
  margin: 4px 8px 2px;
  font-size: 10.5px;
  color: var(--dim);
}
.pm-foot {
  margin: 0;
  padding: 7px 12px 10px;
  border-top: 1px solid var(--border);
  font-size: 10.5px;
  line-height: 1.35;
  color: var(--dim);
}
.cx-card {
  padding: 2px 0 8px;
  border-radius: 22px;
  overflow: hidden;
}
.cx-card .cx-chart {
  min-height: 300px;
}
.cx-card .cx-inds {
  margin-top: 2px;
  padding: 6px 8px 0;
  border-top: 1px solid var(--border);
}
.cx-bar {
  position: sticky;
  bottom: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 4px -12px 0;
  padding: 12px 12px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--bg) 72%, transparent);
}
.cx-bar .btn {
  height: 46px;
  border: 0;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
}
.cx-buy {
  background: var(--up);
  color: #04210f;
}
.cx-sell {
  background: var(--down);
  color: #2b0606;
}
/* the Pool tab's chart: the same chart, its frames as tabs */
.pool-cx {
  margin-top: 12px;
  padding: 2px 0 8px;
  border-radius: 22px;
  overflow: hidden;
}
.pool-cx .cx-chart {
  min-height: 260px;
}
.pool-cx .pool-legend,
.pool-cx > .note {
  margin-left: 12px;
  margin-right: 12px;
}
/* auto mode: what waits in the vault to go into the pool (pool.js poolAutoCard) */
.auto-wait {
  margin-top: 10px;
}
.auto-wait-bar {
  height: 6px;
  border-radius: 6px;
  background: var(--bg-hover);
  overflow: hidden;
}
.auto-wait-bar i {
  display: block;
  height: 100%;
  border-radius: 6px;
  background: var(--accent);
}

/* ---------- the look (owner, 2026-11-13: "sab kuch premium quality ka banao tiles colors ... matelic colors tiles ...
   background me circuits chalte the vo chahiye hi hai ... speed blurr level and color change karne ka control
   settings me") ----------
   Settings → Look (screens.js lookCard): the tiles' finish (metal by default; matte = the flat Bento tiles), the
   circuits moving behind every screen (circuits.js: on, speed, blur, brightness, colour) and how much the tiles let
   them through. The fills are worked out in screens.js applyLook from the colours in force (Settings → Colours), so
   any colour of the owner's gets its own metal: --tile-flat, --tile-hi, --tile-mid, --tile-lo (each with the
   see-through), --tile-edge, --sheen (light on a dark tile, dark on a light one). */
#circuits {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}
#circuits[hidden] {
  display: none;
}

/* matte: the Bento tile, see-through over the circuits */
html[data-finish] .card,
html[data-finish] .card-strong,
html[data-finish] .mini,
html[data-finish] .vault-card,
html[data-finish] .ticket {
  background: var(--tile-flat);
}

/* metal: a lit, brushed surface; a light top edge, a dark bottom edge and a soft drop under it */
html[data-finish="metal"] .card,
html[data-finish="metal"] .card-strong,
html[data-finish="metal"] .mini,
html[data-finish="metal"] .vault-card,
html[data-finish="metal"] .ticket {
  background:
    linear-gradient(180deg, rgb(var(--sheen) / 0.055), transparent 36%),
    repeating-linear-gradient(90deg, rgb(var(--sheen) / 0.014) 0 1px, transparent 1px 3px),
    linear-gradient(155deg, var(--tile-hi) 0%, var(--tile-mid) 44%, var(--tile-lo) 100%);
  border-color: var(--tile-edge);
  box-shadow:
    inset 0 1px 0 rgb(var(--sheen) / 0.1),
    inset 0 -1px 0 rgb(0 0 0 / 0.32),
    0 12px 28px -14px rgb(0 0 0 / 0.65);
}
/* the net worth tile: a slow light passes over it now and then */
html[data-finish="metal"] .vault-card {
  background:
    linear-gradient(105deg, transparent 42%, rgb(var(--sheen) / 0.075) 50%, transparent 58%) -150% 0 / 300% 100% no-repeat,
    linear-gradient(180deg, rgb(var(--sheen) / 0.06), transparent 36%),
    repeating-linear-gradient(90deg, rgb(var(--sheen) / 0.014) 0 1px, transparent 1px 3px),
    linear-gradient(155deg, var(--tile-hi) 0%, var(--tile-mid) 44%, var(--tile-lo) 100%);
  animation: cbSheen 9s ease-in-out infinite;
}
@keyframes cbSheen {
  0%,
  62% {
    background-position: -150% 0, 0 0, 0 0, 0 0;
  }
  100% {
    background-position: 250% 0, 0 0, 0 0, 0 0;
  }
}

/* the bottom menu stays solid (the screen scrolls under it), in metal too */
html[data-finish="metal"] .tabbar-inner {
  background:
    linear-gradient(180deg, rgb(var(--sheen) / 0.06), transparent 40%),
    linear-gradient(160deg, color-mix(in srgb, var(--bg-elev) 90%, #ffffff), var(--bg-elev) 46%, color-mix(in srgb, var(--bg-elev) 78%, #000000));
  border-color: var(--tile-edge);
  box-shadow: inset 0 1px 0 rgb(var(--sheen) / 0.09), 0 14px 30px -12px rgb(0 0 0 / 0.75);
}
html[data-finish="metal"] .tab[data-on="true"] svg {
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--accent) 55%, transparent));
}
html[data-finish="metal"] .ticker,
html[data-finish="metal"] .top-btn,
html[data-finish="metal"] .icon-btn {
  background: linear-gradient(165deg, color-mix(in srgb, var(--bg-elev) 88%, #ffffff), var(--bg-elev) 55%, color-mix(in srgb, var(--bg-elev) 82%, #000000));
  box-shadow: inset 0 1px 0 rgb(var(--sheen) / 0.08);
}

/* the accent as polished metal: buttons, the trade button, the slide, the name */
html[data-finish="metal"] .btn.primary,
html[data-finish="metal"] .slide.tap:not(.sell),
html[data-finish="metal"] .slide-knob {
  background: linear-gradient(180deg, var(--accent-hi) 0%, var(--accent) 50%, var(--accent-lo) 100%);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.45),
    inset 0 -1px 0 rgb(0 0 0 / 0.25),
    0 8px 20px -10px color-mix(in srgb, var(--accent) 70%, transparent);
}
html[data-finish="metal"] .fab {
  background: linear-gradient(180deg, var(--accent-hi) 0%, var(--accent) 50%, var(--accent-lo) 100%);
  box-shadow:
    0 0 0 5px var(--bg),
    inset 0 1px 0 rgb(255 255 255 / 0.5),
    inset 0 -2px 0 rgb(0 0 0 / 0.22),
    0 10px 24px -6px color-mix(in srgb, var(--accent) 65%, transparent);
}
html[data-finish="metal"] .cx-buy {
  background: linear-gradient(180deg, color-mix(in srgb, var(--up) 72%, #ffffff), var(--up) 52%, color-mix(in srgb, var(--up) 78%, #000000));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.35);
}
html[data-finish="metal"] .cx-sell {
  background: linear-gradient(180deg, color-mix(in srgb, var(--down) 72%, #ffffff), var(--down) 52%, color-mix(in srgb, var(--down) 78%, #000000));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.3);
}
html[data-finish="metal"] .word b i {
  background: linear-gradient(180deg, var(--accent-hi) 8%, var(--accent) 55%, var(--accent-lo) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
html[data-finish="metal"] .chip[data-on="true"],
html[data-finish="metal"] .seg-pill {
  box-shadow: inset 0 1px 0 rgb(var(--sheen) / 0.12) !important;
}
/* a segment's chosen pill in the accent (its colour is set inline by segmented()): the accent's metal */
html[data-finish="metal"] .seg-pill[style*="var(--accent)"] {
  background: linear-gradient(180deg, var(--accent-hi) 0%, var(--accent) 50%, var(--accent-lo) 100%) !important;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.4), inset 0 -1px 0 rgb(0 0 0 / 0.22) !important;
}

/* a price that just moved lights up green or red (app.js flashNum) */
@keyframes cbTickUp {
  0% {
    background-color: color-mix(in srgb, var(--up) 30%, transparent);
    color: var(--up);
  }
  100% {
    background-color: transparent;
  }
}
@keyframes cbTickDown {
  0% {
    background-color: color-mix(in srgb, var(--down) 30%, transparent);
    color: var(--down);
  }
  100% {
    background-color: transparent;
  }
}
.tick-up,
.tick-down {
  border-radius: 6px;
  animation-duration: 0.9s;
  animation-timing-function: ease-out;
  animation-fill-mode: both;
}
.tick-up {
  animation-name: cbTickUp;
}
.tick-down {
  animation-name: cbTickDown;
}

/* Settings → Look */
.look-rows {
  margin-top: 4px;
}
.look-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) 58px;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  font-size: 13.5px;
}
.look-row b {
  text-align: right;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
}
.look-row input[type="range"] {
  width: 100%;
  margin: 0;
  accent-color: var(--accent);
}
.look .swatch {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 8px;
  border: 2px solid var(--border);
}
.look .swatch[data-on="true"] {
  border-color: var(--fg);
}
.swatch-auto {
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-fg);
}

@media (prefers-reduced-motion: reduce) {
  html[data-finish="metal"] .vault-card {
    animation: none;
  }
  .tick-up,
  .tick-down {
    animation: none;
  }
}

/* ---------- the mark: the CB monogram with a black hole turning in the C (owner, 2026-11-13) ----------
   The letters in --logo-letters (Settings → Look); the video (app.js logo, its speed and colour there too) fills the C's
   hole, a circle of r 195 around (400, 400) in the mark's viewBox 57 66.5 920 920, drawn a touch larger (r 197) so the
   C's inner edge covers its rim; through the C's opening its edge fades out. --logo-ring stays for the intro's glow. */
:root {
  --logo-ring: #ffd27a;
  --logo-letters: #f2f1ec;
}
.logo {
  position: relative;
  display: inline-block;
  flex: none;
  width: var(--lg-size, 26px);
  height: var(--lg-size, 26px);
  filter: none;
  vertical-align: middle;
}
/* the header's logo: its size is the owner's (Settings → Look → Logo size, --brand-logo); the name beside it keeps its own */
.brand .logo {
  width: var(--brand-logo, 30px);
  height: var(--brand-logo, 30px);
}
.hero .logo {
  width: 92px;
  height: 92px;
}
.logo .lg-video {
  position: absolute;
  left: 15.87%;
  top: 14.837%;
  width: 42.826%;
  height: 42.826%;
  display: block;
  border-radius: 50%;
  object-fit: cover;
  background: #000;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(circle closest-side, #000 86%, transparent 100%);
  mask-image: radial-gradient(circle closest-side, #000 86%, transparent 100%);
}
.logo svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.logo .lg-l {
  fill: var(--logo-letters);
}
.look-logo {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-right: 4px;
}

/* ---------- the creative brief's last part (owner, 2026-11-13) ----------
   The intro on a cold start (app.js), the loading shimmer in the app's own colours with a little gold, and the empty
   lists' circuit with a light running along it. Still for whoever asks for less motion. */
#intro {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: radial-gradient(circle at 50% 46%, color-mix(in srgb, var(--logo-ring) 9%, var(--bg)) 0%, var(--bg) 58%);
  pointer-events: none;
  animation: introIn 260ms ease-out both;
}
#intro.out {
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 380ms ease, transform 380ms ease;
}
.intro-word {
  font-family: var(--display, inherit);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--fg);
  animation: introWord 600ms 120ms ease-out both;
}
.intro-word i {
  font-style: normal;
  color: var(--accent);
}
@keyframes introIn {
  from {
    opacity: 0;
  }
}
@keyframes introWord {
  from {
    opacity: 0;
    transform: translateY(6px);
    letter-spacing: 0.08em;
  }
}
.skeleton {
  background: linear-gradient(100deg, var(--bg-hover) 30%, color-mix(in srgb, var(--accent) 9%, var(--bg-hover)) 50%, var(--bg-hover) 70%);
  background-size: 220% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
}
.empty::before {
  content: "";
  display: block;
  width: 116px;
  height: 42px;
  margin: 2px auto 10px;
  background: linear-gradient(100deg, color-mix(in srgb, var(--accent) 45%, transparent) 38%, #fff6dc 50%, color-mix(in srgb, var(--accent) 45%, transparent) 62%);
  background-size: 320% 100%;
  -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%20120%2044%27%20fill%3D%27none%27%20stroke%3D%27%23000%27%20stroke-width%3D%271.6%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M6%2022h20l8-10h18l6%2010h16l8-12h12%27%2F%3E%3Cpath%20d%3D%27M26%2022l8%2012h22l6-8h20l6%208h22%27%2F%3E%3Cpath%20d%3D%27M52%2012V5h14%27%2F%3E%3Ccircle%20cx%3D%276%27%20cy%3D%2722%27%20r%3D%272.6%27%20fill%3D%27%23000%27%2F%3E%3Ccircle%20cx%3D%27106%27%20cy%3D%2710%27%20r%3D%272.6%27%20fill%3D%27%23000%27%2F%3E%3Ccircle%20cx%3D%27114%27%20cy%3D%2734%27%20r%3D%272.6%27%20fill%3D%27%23000%27%2F%3E%3Ccircle%20cx%3D%2768%27%20cy%3D%275%27%20r%3D%272%27%20fill%3D%27%23000%27%2F%3E%3Ccircle%20cx%3D%2758%27%20cy%3D%2722%27%20r%3D%273.2%27%2F%3E%3C%2Fsvg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%20120%2044%27%20fill%3D%27none%27%20stroke%3D%27%23000%27%20stroke-width%3D%271.6%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M6%2022h20l8-10h18l6%2010h16l8-12h12%27%2F%3E%3Cpath%20d%3D%27M26%2022l8%2012h22l6-8h20l6%208h22%27%2F%3E%3Cpath%20d%3D%27M52%2012V5h14%27%2F%3E%3Ccircle%20cx%3D%276%27%20cy%3D%2722%27%20r%3D%272.6%27%20fill%3D%27%23000%27%2F%3E%3Ccircle%20cx%3D%27106%27%20cy%3D%2710%27%20r%3D%272.6%27%20fill%3D%27%23000%27%2F%3E%3Ccircle%20cx%3D%27114%27%20cy%3D%2734%27%20r%3D%272.6%27%20fill%3D%27%23000%27%2F%3E%3Ccircle%20cx%3D%2768%27%20cy%3D%275%27%20r%3D%272%27%20fill%3D%27%23000%27%2F%3E%3Ccircle%20cx%3D%2758%27%20cy%3D%2722%27%20r%3D%273.2%27%2F%3E%3C%2Fsvg%3E") center / contain no-repeat;
  opacity: 0.85;
  animation: emptyPulse 3.2s linear infinite;
}
@keyframes emptyPulse {
  from {
    background-position: 110% 0;
  }
  to {
    background-position: -60% 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  #intro,
  .intro-word,
  .skeleton,
  .empty::before {
    animation: none;
  }
}
/* the chart screen's Holders tab (research.js paintHill): the holders' supply by gain now */
.hill { display: grid; gap: 6px; }
.hill-row { display: grid; grid-template-columns: 112px 1fr 58px; align-items: center; gap: 8px; font-size: 12px; }
.hill-row .num { text-align: right; }
.hill-bar { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.hill-bar i { display: block; height: 100%; border-radius: 4px; }
