/*
 * Code Black · Obsidian (2026-11-19; the owner: the whole phone app redesigned to the designer's own judgement). The
 * default finish (Settings → Look → Tiles: Obsidian; Metal and Matte stay there). One idea: a terminal for money at
 * night. A deep, slightly cool black; surfaces that rise by light, not by texture; hairline edges; one gold for what
 * acts (the brand, the primary action, the chosen tab); mint and coral only for money that moved; a calm blue for the
 * machine (the pool, the sync bot, system status). Numbers in Geist Mono, tabular; words in Geist. Nothing moves behind
 * the screens (no circuits): the data is the picture.
 */

html[data-finish="obsidian"] {
  --bg: #06070a;
  --bg-elev: #0f1115;
  --bg-hover: #171a20;
  --surface-1: #0f1115;
  --surface-2: #14171c;
  --surface-3: #1b1f26;
  --glass: #0f1115;
  --fg: #eef1f5;
  --muted: #8c93a0;
  --dim: #5d636e;
  --border: rgb(255 255 255 / 0.07);
  --border-strong: rgb(255 255 255 / 0.13);
  --accent: #f5b83f;
  --accent-hi: #ffd98c;
  --accent-lo: #cf8d1e;
  --accent-grad: linear-gradient(135deg, #ffe09b 0%, #f5b83f 42%, #df961f 100%);
  --accent-fg: #140d02;
  --accent-rgb: 245 184 63;
  --cream: #e6eaf0;
  --coins: #6f7887;
  --up: #2ad39a;
  --down: #ff5d6c;
  --warn: #ffb547;
  --info: #6aaeff;
  --up-bg: rgb(42 211 154 / 0.12);
  --down-bg: rgb(255 93 108 / 0.12);
  --info-bg: rgb(106 174 255 / 0.12);
  --gold-bg: rgb(var(--accent-rgb) / 0.12);
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --display: "Geist", system-ui, sans-serif;
  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 12px;
  --shadow: 0 1px 0 rgb(255 255 255 / 0.035) inset, 0 12px 28px -16px rgb(0 0 0 / 0.9);
  background: var(--bg);
}

/* ---------- the accent: gold, or one of three others (Settings → Look → Accent) ---------- */
html[data-finish="obsidian"][data-accent="platinum"] {
  --accent: #e3e8f0;
  --accent-hi: #ffffff;
  --accent-lo: #a3adbd;
  --accent-grad: linear-gradient(135deg, #ffffff 0%, #dfe5ee 45%, #98a3b5 100%);
  --accent-fg: #0b0d11;
  --accent-rgb: 214 222 235;
  /* ETH takes the white: USDG and the coins step down to greys, so the three parts still read apart */
  --cream: #8e98a8;
  --coins: #4b525e;
}
html[data-finish="obsidian"][data-accent="violet"] {
  --accent: #a98bff;
  --accent-hi: #d4c6ff;
  --accent-lo: #7a5cf0;
  --accent-grad: linear-gradient(135deg, #ddd2ff 0%, #a98bff 45%, #7656ee 100%);
  --accent-fg: #0f0a1f;
  --accent-rgb: 169 139 255;
}
html[data-finish="obsidian"][data-accent="copper"] {
  --accent: #ff8f4a;
  --accent-hi: #ffc6a1;
  --accent-lo: #d9612a;
  --accent-grad: linear-gradient(135deg, #ffd3b3 0%, #ff8f4a 45%, #de5f28 100%);
  --accent-fg: #1a0b03;
  --accent-rgb: 255 143 74;
}

/* ---------- ground: a quiet black with a fine grain, lit at the top by the place you are in ---------- */
/* The light's colour glides from place to place: the accent at home, the pool's blue in Pool, mint or coral in
   Portfolio by whether the open trades are up or down now, none in More. */
@property --aura {
  syntax: "<color>";
  inherits: true;
  initial-value: rgb(245 184 63 / 0.1);
}
html[data-finish="obsidian"] {
  --aura: rgb(var(--accent-rgb) / 0.1);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .055 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
html[data-finish="obsidian"][data-place="pool"] {
  --aura: rgb(106 174 255 / 0.11);
}
html[data-finish="obsidian"][data-place="positions"][data-pnl="up"] {
  --aura: rgb(42 211 154 / 0.1);
}
html[data-finish="obsidian"][data-place="positions"][data-pnl="down"] {
  --aura: rgb(255 93 108 / 0.09);
}
html[data-finish="obsidian"][data-place="more"] {
  --aura: rgb(255 255 255 / 0.035);
}
html[data-finish="obsidian"] body {
  background:
    var(--grain),
    radial-gradient(120% 60% at 50% -12%, var(--aura), transparent 58%),
    radial-gradient(80% 40% at 100% 0%, rgb(106 174 255 / 0.05), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}
html[data-finish="obsidian"] {
  transition: --aura 0.7s ease;
}
@media (prefers-reduced-motion: reduce) {
  html[data-finish="obsidian"] {
    transition: none;
  }
}
html[data-finish="obsidian"] #circuits,
html[data-finish="obsidian"] .glow {
  display: none !important;
}

/* ---------- top bar: glass, one line ---------- */
html[data-finish="obsidian"] .topbar {
  padding: 10px 14px 9px;
  background: rgb(6 7 10 / 0.74);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  border-bottom: 1px solid var(--border);
}
html[data-finish="obsidian"] .brand {
  gap: 9px;
}
html[data-finish="obsidian"] .word b {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.035em;
}
html[data-finish="obsidian"] .word b i {
  font-style: normal;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
html[data-finish="obsidian"] .word small {
  display: inline-block;
  width: max-content;
  margin-top: 3px;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 8.5px;
  letter-spacing: 0.14em;
  color: var(--warn);
  background: rgb(255 181 71 / 0.12);
}
html[data-finish="obsidian"] .word small:empty {
  display: none;
}
html[data-finish="obsidian"] .ticker {
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: -0.01em;
}
html[data-finish="obsidian"] .top-btn,
html[data-finish="obsidian"] .icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--fg);
}

/* ---------- pages and type ---------- */
html[data-finish="obsidian"] .page {
  padding: 12px 14px 0;
}
html[data-finish="obsidian"] h1.title {
  margin: 4px 2px 12px;
  font-family: var(--sans);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.04em;
}
html[data-finish="obsidian"] .section {
  margin: 18px 4px 8px;
}
html[data-finish="obsidian"] .section h2,
html[data-finish="obsidian"] .tile-head h2 {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
  text-transform: uppercase;
}
html[data-finish="obsidian"] .eyebrow {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--muted);
}
html[data-finish="obsidian"] .num,
html[data-finish="obsidian"] .right b,
html[data-finish="obsidian"] .kv > span:last-child {
  font-variant-numeric: tabular-nums;
}
html[data-finish="obsidian"] .big-usd {
  font-family: var(--sans);
  font-weight: 650;
  letter-spacing: -0.055em;
}
html[data-finish="obsidian"] .big-usd small {
  opacity: 0.45;
  font-weight: 600;
}

/* ---------- surfaces: lit, hairline, no texture ---------- */
html[data-finish="obsidian"] .card,
html[data-finish="obsidian"] .card-strong,
html[data-finish="obsidian"] .mini,
html[data-finish="obsidian"] .ticket {
  background: linear-gradient(180deg, rgb(255 255 255 / 0.028), rgb(255 255 255 / 0.008)), var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}
html[data-finish="obsidian"] .card::before,
html[data-finish="obsidian"] .card::after,
html[data-finish="obsidian"] .card-strong::before,
html[data-finish="obsidian"] .mini::before,
html[data-finish="obsidian"] .mini::after {
  display: none;
}
html[data-finish="obsidian"] .pad {
  padding: 14px;
}
html[data-finish="obsidian"] .box,
html[data-finish="obsidian"] .split > div {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
}
html[data-finish="obsidian"] .kv {
  padding: 6px 0;
  font-size: 13px;
}
html[data-finish="obsidian"] .kv + .kv {
  border-top: 1px solid rgb(255 255 255 / 0.04);
}
html[data-finish="obsidian"] .note {
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}
html[data-finish="obsidian"] .rows {
  padding: 2px 6px 6px;
}
html[data-finish="obsidian"] .row {
  padding: 10px 8px;
  border-radius: var(--r-sm);
}
html[data-finish="obsidian"] .row + .row {
  border-top: 1px solid rgb(255 255 255 / 0.045);
}

/* ---------- the net worth: the one gold-lit surface ---------- */
html[data-finish="obsidian"] .vault-card {
  position: relative;
  overflow: hidden;
  padding: 18px 18px 16px;
  border-radius: 26px;
  border: 1px solid rgb(var(--accent-rgb) / 0.22);
  background:
    radial-gradient(120% 120% at 100% 0%, rgb(var(--accent-rgb) / 0.20), transparent 55%),
    radial-gradient(90% 90% at 0% 100%, rgb(106 174 255 / 0.07), transparent 60%),
    linear-gradient(180deg, #15171c, #0d0f13);
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.06) inset, 0 24px 48px -24px rgb(var(--accent-rgb) / 0.35);
}
html[data-finish="obsidian"] .vault-card .big-usd {
  font-size: 44px;
}
html[data-finish="obsidian"] .vault-card .alloc {
  height: 6px;
  gap: 3px;
  border-radius: 999px;
}
html[data-finish="obsidian"] .vault-card .alloc i {
  border-radius: 999px;
}
html[data-finish="obsidian"] .vault-pill {
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: var(--up);
  background: var(--up-bg);
  border: 0;
}
html[data-finish="obsidian"] .vault-pill.bad {
  color: var(--down);
  background: var(--down-bg);
}

/* ---------- home: the system strip ---------- */
.sys {
  display: flex;
  gap: 6px;
  margin: 12px 0 0;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent);
  mask-image: linear-gradient(90deg, #000 88%, transparent);
}
.sys::-webkit-scrollbar {
  display: none;
}
.sys .chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-1, #111);
  font-size: 11.5px;
  font-weight: 550;
  color: var(--fg);
  white-space: nowrap;
}
.sys .chip i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--up);
  box-shadow: 0 0 0 3px var(--up-bg, rgb(42 211 154 / 0.12));
}
.sys .chip.warn i {
  background: var(--warn);
  box-shadow: 0 0 0 3px rgb(255 181 71 / 0.14);
}
.sys .chip.bad i {
  background: var(--down);
  box-shadow: 0 0 0 3px var(--down-bg, rgb(255 93 108 / 0.12));
}
.sys .chip.info i {
  background: var(--info, #6aaeff);
  box-shadow: 0 0 0 3px var(--info-bg, rgb(106 174 255 / 0.12));
}
.sys .chip span {
  color: var(--muted);
  font-weight: 500;
}
html[data-finish="obsidian"] .home-gap {
  height: 12px;
}
html[data-finish="obsidian"] .duo {
  gap: 10px;
  margin-top: 12px;
}
html[data-finish="obsidian"] .mini {
  padding: 14px;
  border-radius: 20px;
}
html[data-finish="obsidian"] .mini b {
  font-family: var(--sans);
  font-weight: 650;
  letter-spacing: -0.04em;
}

/* ---------- buttons ---------- */
html[data-finish="obsidian"] .btn {
  min-height: 46px;
  border-radius: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
html[data-finish="obsidian"] .btn.primary {
  background: var(--accent-grad);
  color: var(--accent-fg);
  border: 0;
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.35) inset, 0 10px 24px -12px rgb(var(--accent-rgb) / 0.7);
}
html[data-finish="obsidian"] .btn.ghost {
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  color: var(--fg);
}
html[data-finish="obsidian"] .btn.danger {
  background: var(--down-bg);
  border: 1px solid rgb(255 93 108 / 0.35);
  color: var(--down);
}
html[data-finish="obsidian"] .badge {
  border-radius: 999px;
  border: 0;
  font-weight: 600;
  letter-spacing: 0.01em;
}
html[data-finish="obsidian"] .badge.good {
  color: var(--up);
  background: var(--up-bg);
}
html[data-finish="obsidian"] .badge.bad {
  color: var(--down);
  background: var(--down-bg);
}
html[data-finish="obsidian"] .badge.amber {
  color: var(--accent);
  background: var(--gold-bg);
}

/* ---------- segmented controls ---------- */
html[data-finish="obsidian"] .seg {
  padding: 3px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}
html[data-finish="obsidian"] .seg button {
  border-radius: 11px;
  font-weight: 600;
}
html[data-finish="obsidian"] .seg button[data-on="true"] {
  background: var(--surface-3);
  color: var(--fg);
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.06) inset, 0 4px 10px -4px rgb(0 0 0 / 0.8);
}

/* the trade ticket's side: Buy in mint, Sell in coral (the rest of the switches stay neutral) */
html[data-finish="obsidian"] .ticket-top .seg:first-child .seg-pill {
  display: none;
}
html[data-finish="obsidian"] .ticket-top .seg:first-child button[data-on="true"][data-tone="accent"] {
  background: rgb(42 211 154 / 0.15);
  color: var(--up);
  box-shadow: inset 0 0 0 1px rgb(42 211 154 / 0.38);
}
html[data-finish="obsidian"] .ticket-top .seg:first-child button[data-on="true"][data-tone="ink"] {
  background: rgb(255 93 108 / 0.15);
  color: var(--down);
  box-shadow: inset 0 0 0 1px rgb(255 93 108 / 0.38);
}

/* ---------- inputs ---------- */
html[data-finish="obsidian"] .field,
html[data-finish="obsidian"] select.field {
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
}
html[data-finish="obsidian"] .field:focus {
  border-color: rgb(var(--accent-rgb) / 0.6);
  box-shadow: 0 0 0 4px rgb(var(--accent-rgb) / 0.12);
  outline: none;
}

/* ---------- bottom sheets ---------- */
html[data-finish="obsidian"] .sheet {
  background: linear-gradient(180deg, #15181d, #0e1014);
  border: 1px solid var(--border);
  border-bottom: 0;
  border-radius: 26px 26px 0 0;
  box-shadow: 0 -24px 60px -20px rgb(0 0 0 / 0.9);
}

/* ---------- the tab bar: four places and the trade button ---------- */
html[data-finish="obsidian"] .tabbar {
  padding: 0 12px calc(10px + env(safe-area-inset-bottom));
}
html[data-finish="obsidian"] .tabbar-inner {
  height: 66px;
  border-radius: 24px;
  background: rgb(15 17 21 / 0.82);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--border-strong);
  box-shadow: 0 18px 40px -16px rgb(0 0 0 / 0.95);
}
html[data-finish="obsidian"] .tab {
  gap: 4px;
  min-width: 0;
  font-size: 10px;
  letter-spacing: -0.01em;
  font-weight: 600;
  color: var(--dim);
}
html[data-finish="obsidian"] .tab svg {
  width: 22px;
  height: 22px;
}
html[data-finish="obsidian"] .tab[data-on="true"] {
  color: var(--fg);
}
html[data-finish="obsidian"] .tab[data-on="true"] svg {
  color: var(--accent);
  filter: drop-shadow(0 0 8px rgb(var(--accent-rgb) / 0.45));
}
html[data-finish="obsidian"] .tab[data-on="true"]::before {
  display: none;
}
.tabbar-inner {
  grid-template-columns: repeat(3, minmax(0, 1fr)) 64px repeat(3, minmax(0, 1fr));
}
.fab-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}
.fab-label {
  margin-top: 3px;
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
}
html[data-screen="search"] .fab-label {
  color: var(--fg);
}
html[data-finish="obsidian"] .tabbar-inner {
  grid-template-columns: repeat(3, minmax(0, 1fr)) 66px repeat(3, minmax(0, 1fr));
}
html[data-finish="obsidian"] .tabbar {
  padding-left: 8px;
  padding-right: 8px;
}
html[data-finish="obsidian"] .fab-label {
  font-size: 10.5px;
  color: var(--dim);
}
html[data-finish="obsidian"][data-screen="search"] .fab-label {
  color: var(--fg);
}
html[data-finish="obsidian"] .fab {
  width: 54px;
  height: 54px;
  margin-top: -24px;
  border-radius: 20px;
  background: var(--accent-grad);
  color: var(--accent-fg);
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.45) inset, 0 14px 30px -10px rgb(var(--accent-rgb) / 0.75), 0 0 0 6px var(--bg);
  transform: none;
}
html[data-finish="obsidian"] .fab:active {
  transform: scale(0.93);
}
html[data-finish="obsidian"] .fab svg {
  width: 25px;
  height: 25px;
  stroke-width: 2.2;
  transform: none;
  color: var(--accent-fg);
}

/* ---------- a coin's screen: its Buy / Sell bar ---------- */
html[data-finish="obsidian"] .chart-actions,
html[data-finish="obsidian"] .coin-actions {
  background: linear-gradient(180deg, transparent, rgb(6 7 10 / 0.92) 30%);
}

/* ---------- Portfolio's switch (positions / orders) ---------- */
.pf-switch {
  margin: 0 0 12px;
}

/* ---------- the pool's hero: its value, the range bar, in sync ---------- */
html[data-finish="obsidian"] .pool-value {
  border-radius: 26px;
  border: 1px solid rgb(106 174 255 / 0.22);
  background:
    radial-gradient(120% 120% at 100% 0%, rgb(106 174 255 / 0.16), transparent 55%),
    linear-gradient(180deg, #14171c, #0d0f13);
}
html[data-finish="obsidian"] .pool-range-track {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgb(255 93 108 / 0.35), rgb(106 174 255 / 0.55) 50%, rgb(42 211 154 / 0.35));
}
html[data-finish="obsidian"] .pool-range-track i {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px rgb(106 174 255 / 0.35), 0 2px 8px rgb(0 0 0 / 0.6);
}

/* ---------- the new mark ---------- */
.mark-block {
  display: block;
  flex: none;
}
.mark-block svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* ---------- coins without a logo: each its own colour (a hue picked from the symbol), so they tell apart ---------- */
html[data-finish="obsidian"] .coin.letters {
  background: linear-gradient(145deg, hsl(var(--hue, 38) 62% 30%), hsl(var(--hue, 38) 55% 15%));
  color: hsl(var(--hue, 38) 95% 82%);
  box-shadow: inset 0 0 0 1px hsl(var(--hue, 38) 70% 60% / 0.22);
  letter-spacing: 0.02em;
}

/* ---------- empty places: the mark, faint, above the words ---------- */
html[data-finish="obsidian"] .card.empty::before {
  content: "";
  display: block;
  width: 30px;
  height: 30px;
  margin: 0 auto 10px;
  border-radius: 10px;
  background: rgb(var(--accent-rgb) / 0.55);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='57 66.5 920 920'%3E%3Cpath fill-rule='evenodd' d='M 592.8 170.2 A 300 300 0 1 0 429.55 698.55 L 687.6 440.5 L 593.1 427.1 A 195 195 0 1 1 525.3 250.6 Z'/%3E%3Cpath fill-rule='evenodd' d='M 650.7 500 H 775 A 95 95 0 0 1 775 690 L 765 690 A 105 105 0 0 1 765 900 H 575 V 575.7 Z M 690 585 A 30 30 0 0 0 660 615 V 622.5 A 30 30 0 0 0 690 652.5 H 755 A 30 30 0 0 0 785 622.5 V 615 A 30 30 0 0 0 755 585 Z M 700 727.5 A 40 40 0 0 0 660 767.5 V 775 A 40 40 0 0 0 700 815 H 745 A 40 40 0 0 0 785 775 V 767.5 A 40 40 0 0 0 745 727.5 Z'/%3E%3Cpath fill-rule='evenodd' d='M 429.55 698.55 L 175 953.1 Q 309.3 790.5 347.9 695.4 Z'/%3E%3Cpath fill-rule='evenodd' d='M 650.7 500 L 933.6 217.1 Q 760 420 742 500 Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='57 66.5 920 920'%3E%3Cpath fill-rule='evenodd' d='M 592.8 170.2 A 300 300 0 1 0 429.55 698.55 L 687.6 440.5 L 593.1 427.1 A 195 195 0 1 1 525.3 250.6 Z'/%3E%3Cpath fill-rule='evenodd' d='M 650.7 500 H 775 A 95 95 0 0 1 775 690 L 765 690 A 105 105 0 0 1 765 900 H 575 V 575.7 Z M 690 585 A 30 30 0 0 0 660 615 V 622.5 A 30 30 0 0 0 690 652.5 H 755 A 30 30 0 0 0 785 622.5 V 615 A 30 30 0 0 0 755 585 Z M 700 727.5 A 40 40 0 0 0 660 767.5 V 775 A 40 40 0 0 0 700 815 H 745 A 40 40 0 0 0 785 775 V 767.5 A 40 40 0 0 0 745 727.5 Z'/%3E%3Cpath fill-rule='evenodd' d='M 429.55 698.55 L 175 953.1 Q 309.3 790.5 347.9 695.4 Z'/%3E%3Cpath fill-rule='evenodd' d='M 650.7 500 L 933.6 217.1 Q 760 420 742 500 Z'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0.7;
}

/* ---------- Settings → Look → Accent ---------- */
.accent-picks {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.accent-picks button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 4px 8px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface-2, #14171c);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
}
.accent-picks button i {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.35), 0 4px 10px -4px rgb(0 0 0 / 0.8);
}
.accent-picks button[data-on="true"] {
  color: var(--fg);
  border-color: rgb(var(--accent-rgb, 245 184 63) / 0.6);
  box-shadow: 0 0 0 3px rgb(var(--accent-rgb, 245 184 63) / 0.12);
}

/* ---------- the net worth's line in the hero (every finish) ---------- */
.worth {
  margin: 12px 0 2px;
}
.worth-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
}
.worth-head small {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
}
.worth-ranges {
  display: flex;
  gap: 2px;
  padding: 2px;
  border-radius: 9px;
  background: rgb(255 255 255 / 0.04);
}
.worth-ranges button {
  padding: 3px 8px;
  border: 0;
  border-radius: 7px;
  background: none;
  font: 600 10.5px/1.4 var(--mono, monospace);
  color: var(--muted);
}
.worth-ranges button[data-on="true"] {
  background: rgb(255 255 255 / 0.09);
  color: var(--fg);
}
.worth-chart {
  position: relative;
  height: 56px;
  margin-top: 8px;
}
.worth-chart svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.worth-dot {
  position: absolute;
  right: -3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  transform: translateY(-50%);
  box-shadow: 0 0 0 4px rgb(255 255 255 / 0.08);
}
html[data-finish="obsidian"] .vault-card .worth + .alloc {
  margin-top: 12px;
}

/* ---------- a position's fills: the newest three, then "Show all" ---------- */
.fills-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  margin-top: 4px;
  padding: 7px 0 2px;
  border: 0;
  border-top: 1px solid var(--border);
  background: none;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--accent);
}

/* ---------- Profits → Day by day: a month of green and red days ---------- */
.pnl-cal {
  margin-top: 16px;
  padding: 14px 12px 12px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface-1, var(--bg-elev));
}
.pnl-cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.pnl-cal-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
}
.pnl-cal-nav .icon-btn {
  width: 28px;
  height: 28px;
  border-radius: 9px;
}
.pnl-cal-nav .icon-btn:disabled {
  opacity: 0.3;
}
.pc-week,
.pc-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.pc-week {
  margin: 12px 0 4px;
  font-size: 10px;
  font-weight: 600;
  text-align: center;
  color: var(--dim, var(--muted));
}
.pc-cell {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 44px;
  padding: 4px 4px 3px;
  border-radius: 9px;
  background: rgb(255 255 255 / 0.03);
  overflow: hidden;
}
.pc-cell.blank {
  background: none;
}
.pc-cell i {
  font-style: normal;
  font-size: 9.5px;
  font-weight: 600;
  color: var(--muted);
}
.pc-cell b {
  align-self: flex-end;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.pc-cell.up {
  background: rgb(42 211 154 / var(--pc-a));
}
.pc-cell.down {
  background: rgb(255 93 108 / var(--pc-a));
}
.pc-cell.up b,
.pc-cell.down b,
.pc-cell.up i,
.pc-cell.down i {
  color: #fff;
}
.pc-foot {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 12px;
}

/* ---------- the watchlist's 24 h change: a solid box, green or red, as on an exchange's market list ---------- */
html[data-finish="obsidian"] .wl-head,
html[data-finish="obsidian"] .wl-row {
  grid-template-columns: minmax(0, 1fr) 66px 44px 48px 62px;
}
html[data-finish="obsidian"] .wl-row > .chgc {
  justify-self: end;
  min-width: 58px;
  padding: 5px 6px;
  border-radius: 7px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  background: var(--surface-3);
  color: var(--fg);
}
html[data-finish="obsidian"] .wl-row > .chgc.up {
  background: #1fbf87;
  color: #03140d;
}
html[data-finish="obsidian"] .wl-row > .chgc.down {
  background: #f0505f;
  color: #1f0306;
}

/* ---------- Activity: explorer links and long hex made short ---------- */
.feed-link {
  display: inline-block;
  margin: 0 1px;
  padding: 0 6px;
  border-radius: 6px;
  background: rgb(var(--accent-rgb, 245 184 63) / 0.12);
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
}
.feed-hex {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  font: 500 11.5px var(--mono, monospace);
  color: var(--muted);
}

/* ---------- a coin's address (CA), copied with a tap ---------- */
.ca-copy {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-left: 4px;
  border-radius: 6px;
  vertical-align: -4px;
  color: var(--muted);
  cursor: pointer;
}
.ca-copy:active {
  background: rgb(var(--accent-rgb, 245 184 63) / 0.16);
  color: var(--accent);
}

/* ---------- Quick trade (the owner, 2026-11-19): the box, Buy / Sell and the book, the chart ---------- */
.q-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.q-head .grow {
  flex: 1;
}
.q-search .search {
  margin: 0;
}
.q-results {
  margin-top: 8px;
}
.q-strip {
  display: flex;
  gap: 6px;
  margin: 10px 0 2px;
  overflow-x: auto;
  scrollbar-width: none;
}
.q-strip::-webkit-scrollbar {
  display: none;
}
.q-pick {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  padding: 5px 10px 5px 5px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-1, var(--bg-elev));
  color: var(--fg);
  font-size: 12px;
  font-weight: 600;
}
.q-pick .coin {
  width: 18px;
  height: 18px;
  font-size: 7px;
  border-radius: 6px;
}
/* the coin's line (2026-11-20): the coin, its price, market cap and 24 h volume, the full chart a tap away */
.q-coin {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 10px;
  padding: 8px 8px 8px 8px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: linear-gradient(90deg, rgb(var(--accent-rgb, 245 184 63) / 0.06), transparent 40%), var(--surface-1, var(--bg-elev));
}
.q-logo {
  flex: none;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
}
.q-id {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 0 1 auto;
  min-width: 0;
}
.q-sym {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--fg);
  text-align: left;
}
.q-sym b {
  overflow: hidden;
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.q-sym .badge {
  display: inline-flex;
  flex: none;
  width: auto;
  padding: 1px 5px;
  font-size: 9px;
}
.q-ca {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font: 500 10.5px var(--mono, monospace);
  color: var(--muted);
  white-space: nowrap;
}
.q-ca .ca-copy {
  width: 18px;
  height: 18px;
}
.q-stats {
  display: flex;
  align-items: stretch;
  min-width: 0;
  margin-left: auto;
}
.q-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  padding: 0 8px;
  border-left: 1px solid var(--border);
}
.q-stat:first-child {
  padding-left: 0;
  border-left: 0;
}
.q-stat > span {
  font-size: 9.5px;
  font-weight: 600;
  color: var(--dim, var(--muted));
  white-space: nowrap;
}
.q-stat > span.num {
  font-family: var(--mono, monospace);
}
.q-stat > span.up,
.q-stat b.up {
  color: var(--up);
}
.q-stat > span.down,
.q-stat b.down {
  color: var(--down);
}
.q-stat b {
  font-size: 12.5px;
  font-weight: 650;
  white-space: nowrap;
}
.q-stat:first-child b {
  font-size: 14px;
}
.q-big {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 5px 7px;
  border-radius: 10px;
  border: 1px solid rgb(var(--accent-rgb, 245 184 63) / 0.38);
  background: rgb(var(--accent-rgb, 245 184 63) / 0.09);
  color: var(--accent);
  font-size: 9.5px;
  font-weight: 650;
}
.q-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 10px;
  align-items: stretch;
}
.q-left {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.q-form,
.q-market,
.q-costs {
  min-width: 0;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgb(255 255 255 / 0.028), rgb(255 255 255 / 0.008)), var(--surface-1, var(--bg-elev));
}
.q-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.q-form .seg button {
  font-size: 12.5px;
}
.q-side .seg-pill {
  display: none;
}
.q-side .seg button[data-on="true"][data-tone="accent"] {
  background: rgb(42 211 154 / 0.16);
  color: var(--up);
  box-shadow: inset 0 0 0 1px rgb(42 211 154 / 0.4);
}
.q-side .seg button[data-on="true"][data-tone="ink"] {
  background: rgb(255 93 108 / 0.16);
  color: var(--down);
  box-shadow: inset 0 0 0 1px rgb(255 93 108 / 0.4);
}
.q-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 9px 10px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: var(--surface-2, var(--bg-hover));
  color: var(--fg);
}
.q-field span {
  font-size: 11.5px;
  color: var(--muted);
}
.q-field b {
  font-size: 14px;
  font-weight: 650;
}
.q-chips {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
}
.q-chips button {
  padding: 6px 0;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--surface-2, var(--bg-hover));
  color: var(--muted);
  font: 600 11px var(--mono, monospace);
}
.q-chips button[data-on="true"] {
  border-color: rgb(var(--accent-rgb, 245 184 63) / 0.6);
  color: var(--accent);
  background: rgb(var(--accent-rgb, 245 184 63) / 0.1);
}
.q-kv {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  font-size: 11.5px;
}
.q-kv span {
  color: var(--muted);
}
.q-kv b {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}
.q-go .slide {
  height: 46px;
}
/* the knob fits the shorter track (2026-11-20: the 46 px knob of a 54 px track was cut off at the bottom here) */
.q-go .slide-knob {
  width: 38px;
  height: 38px;
  border-radius: 12px;
}
.q-go .slide-fill {
  width: calc(var(--x) + 46px);
}
.q-go .slide .slide-label {
  padding-left: 50px;
}
.q-go .slide .slide-label,
.q-go .slide span {
  font-size: 12.5px;
}
.q-err {
  margin: 0;
  font-size: 11px;
  color: var(--down);
}
/* the right column (2026-11-20): the chart over the pool's latest trades, stretched to the form's height */
.q-market {
  display: flex;
  flex-direction: column;
  padding: 6px 6px 8px;
}
.q-tf {
  display: flex;
  align-items: center;
  gap: 1px;
  padding: 0 0 5px;
}
.q-tf button {
  flex: 1;
  padding: 4px 0;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--muted);
  font: 600 11px var(--mono, monospace);
}
.q-tf button[data-on="true"] {
  background: rgb(255 255 255 / 0.08);
  color: var(--fg);
}
.q-chart-area {
  position: relative;
  width: 100%;
}
.q-chart-wait {
  display: block;
}
.q-tape {
  position: relative;
  flex: 1 1 auto;
  min-height: 150px;
  margin-top: 6px;
  border-top: 1px solid var(--border);
}
.q-tape-head,
.q-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 2.4em;
  gap: 6px;
}
.q-tape-head {
  padding: 6px 4px 4px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--dim, var(--muted));
}
.q-tape-head span:not(:first-child) {
  text-align: right;
}
.q-tape-rows {
  position: absolute;
  inset: 25px 0 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 84%, transparent);
  mask-image: linear-gradient(180deg, #000 84%, transparent);
}
.q-row {
  position: relative;
  width: 100%;
  padding: 3px 4px;
  border: 0;
  border-radius: 5px;
  background: none;
  color: inherit;
  font-family: inherit;
  font-size: 11px;
  line-height: 1.35;
  text-align: left;
}
.q-row + .q-row {
  border-top: 1px solid rgb(255 255 255 / 0.03);
}
.q-row span {
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.q-row .p {
  font-weight: 600;
}
.q-row.sell .p {
  color: var(--down);
}
.q-row.buy .p {
  color: var(--up);
}
.q-row .s {
  text-align: right;
  color: var(--fg);
  opacity: 0.85;
}
.q-row .a {
  text-align: right;
  color: var(--muted);
}
.q-none {
  margin: 6px 4px;
  font-size: 11px;
  color: var(--muted);
}
.q-none.bad {
  color: var(--down);
}
.wl-coin .grow b {
  display: flex;
  align-items: center;
  gap: 2px;
  white-space: nowrap;
}
.wl-coin .ca-copy {
  width: 18px;
  height: 18px;
  margin-left: 2px;
}

/* ---------- the zoom (Settings → Display; every screen, 70 % to 150 %; the text size's steps are its presets) ---------- */
html[data-size] .root,
html[data-size] .tabbar,
html[data-size] #sheets {
  zoom: var(--app-zoom, 0.86);
}
.zoom-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 10px;
}
.zoom-row input[type="range"] {
  flex: 1;
  min-width: 0;
  accent-color: var(--accent);
}
.zoom-step {
  flex: none;
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
}
.zoom-val {
  width: 44px;
  text-align: right;
}

/* ---------- Quick trade, floating over every screen (dragged anywhere; see-through and colour in Settings) ---------- */
.qt-float {
  position: fixed;
  z-index: 45;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0;
  width: 56px;
  height: 56px;
  padding: 0;
  border: 0;
  border-radius: 19px;
  background: var(--qt-bg, var(--accent-grad, #f5b83f));
  color: var(--qt-fg, var(--accent-fg, #140d02));
  opacity: var(--qt-op, 0.7);
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.4) inset, 0 12px 28px -10px rgb(0 0 0 / 0.85);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.2s ease, transform 0.15s ease;
}
.qt-float[hidden] {
  display: none;
}
.qt-float svg {
  width: 22px;
  height: 22px;
  stroke-width: 2.2;
}
.qt-float small {
  margin-top: 1px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.qt-float:active,
.qt-float.dragging {
  opacity: 1;
  transform: scale(1.06);
}

/* ---------- Quick trade: what it costs, line by line (the Trade screen's cost box) ---------- */
.q-costs {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 10px;
}
.q-costs .eyebrow {
  display: block;
  margin: 0 2px;
}
.q-costs .box {
  margin: 0;
  padding: 3px 8px;
  border-radius: 12px;
}
.q-costs .kv {
  gap: 6px;
  padding: 3.5px 0;
  font-size: 11px;
}
.q-costs .kv > span:first-child {
  flex: none;
}
.q-costs .kv > span:last-child {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.q-costs .kv:last-child {
  align-items: flex-start;
}
.q-costs .kv:last-child > span:last-child {
  white-space: normal;
  line-height: 1.3;
}
.q-costs [data-slipchip] {
  margin-top: 0 !important;
  padding: 7px 9px;
  border-radius: 11px;
}
.q-costs [data-slipchip] b {
  font-family: inherit;
  font-size: 11.5px;
}
.q-costs [data-slipchip] > span {
  display: none;
}
.q-note {
  display: -webkit-box;
  margin: 0 2px;
  overflow: hidden;
  font-size: 10.5px;
  line-height: 1.4;
  color: var(--muted);
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.q-note.bad {
  color: var(--down);
}
.q-note.all {
  display: block;
}

/* ---------- Quick trade, under both (2026-11-20): the open orders on the coin, the position when held ---------- */
.q-block {
  margin-top: 14px;
}
.q-sec {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 2px 8px;
}
.q-sec h2 {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.q-count {
  padding: 1px 7px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.07);
  font-size: 11px;
  color: var(--muted);
}
.q-sec-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid rgb(var(--accent-rgb, 245 184 63) / 0.4);
  background: rgb(var(--accent-rgb, 245 184 63) / 0.08);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
}
.q-block > .q-none {
  margin: 0;
  padding: 14px 12px;
  border-radius: 14px;
  border: 1px dashed var(--border-strong);
  text-align: center;
}
.q-orders,
.q-pos {
  border-radius: 16px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgb(255 255 255 / 0.028), rgb(255 255 255 / 0.008)), var(--surface-1, var(--bg-elev));
}
.q-orders {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.q-order {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-right: 10px;
}
.q-order + .q-order {
  border-top: 1px solid var(--border);
}
.q-o-main {
  display: grid;
  flex: 1;
  grid-template-columns: 5.6em minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px 0 10px 12px;
  border: 0;
  background: none;
  color: var(--fg);
  text-align: left;
}
.q-o-main .badge {
  justify-content: center;
  width: auto;
  padding: 2px 6px;
  font-size: 10px;
  white-space: nowrap;
}
.q-o-what,
.q-o-away {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.q-o-what b {
  font-size: 13.5px;
}
.q-o-what small,
.q-o-away small {
  overflow: hidden;
  font-size: 10.5px;
  color: var(--muted);
  white-space: nowrap;
  text-overflow: ellipsis;
}
.q-o-away {
  align-items: flex-end;
}
.q-o-away b {
  font-size: 12px;
}
.q-o-x {
  flex: none;
  padding: 6px 9px;
  border-radius: 9px;
  border: 1px solid rgb(255 93 108 / 0.4);
  background: rgb(255 93 108 / 0.08);
  color: var(--down);
  font-size: 11.5px;
  font-weight: 600;
}
.q-pos {
  padding: 12px;
}
.q-pos + .q-pos {
  margin-top: 8px;
}
.q-pos-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.q-lbl {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--dim, var(--muted));
}
.q-pos-net {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 3px;
}
.q-pos-net b {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.q-pos-tag {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.q-pos-tag small {
  font-size: 10.5px;
  color: var(--muted);
}
.q-pos-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-top: 10px;
  padding: 9px 2px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.q-pos-grid div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.q-pos-grid span {
  font-size: 10px;
  color: var(--muted);
}
.q-pos-grid b {
  overflow: hidden;
  font-size: 12.5px;
  font-weight: 650;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.q-pos-grid b.up {
  color: var(--up);
}
.q-pos-grid b.down {
  color: var(--down);
}
.q-pos-btns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-top: 10px;
}
.q-pos-btns button {
  padding: 8px 0;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--surface-2, var(--bg-hover));
  color: var(--fg);
  font-size: 11.5px;
  font-weight: 600;
}
.q-pos-btns button.sell {
  border-color: rgb(255 93 108 / 0.4);
  background: rgb(255 93 108 / 0.08);
  color: var(--down);
}

/* ---------- Quick trade's amount unit (2026-11-21: coins too): $ / Coins on a buy, % / Coins / $ on a sell ---------- */
.q-unit .seg button {
  padding-top: 5px;
  padding-bottom: 5px;
  font-size: 11.5px;
}

/* ---------- the order history (Quick trade, under the position) and Activity's buys and sells (2026-11-21) ---------- */
.q-sec-note {
  font-size: 10.5px;
  color: var(--muted);
}
.q-hist {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgb(255 255 255 / 0.028), rgb(255 255 255 / 0.008)), var(--surface-1, var(--bg-elev));
}
.q-hist > .fills-more {
  margin: 0;
  padding: 9px 0;
}
.q-hist-tot {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}
.q-hist-tot div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.q-hist-tot span {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--dim, var(--muted));
}
.q-hist-tot b {
  overflow: hidden;
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.q-hist-tot b.up {
  color: var(--up);
}
.q-hist-tot b.down {
  color: var(--down);
}
.q-hist-tot small {
  font-size: 11px;
  color: var(--muted);
}
.q-fill {
  padding: 9px 12px 10px;
  border-left: 2px solid transparent;
}
.q-fill + .q-fill {
  border-top: 1px solid var(--border);
}
.q-fill.buy {
  border-left-color: rgb(42 211 154 / 0.5);
}
.q-fill.sell {
  border-left-color: rgb(255 93 108 / 0.5);
}
.q-f-top {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}
.q-f-top .badge {
  padding: 2px 7px;
  font-size: 10px;
}
.q-f-top .wtag {
  margin-left: 0;
}
.q-f-coin {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--fg);
  font-size: 12.5px;
}
.q-f-when {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}
.q-f-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr 0.8fr;
  gap: 6px;
  margin-top: 7px;
}
.q-f-grid div {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.q-f-grid span {
  font-size: 10px;
  color: var(--muted);
}
.q-f-grid b {
  overflow: hidden;
  font-size: 12.5px;
  font-weight: 650;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.q-f-grid b.up {
  color: var(--up);
}
.q-f-grid b.down {
  color: var(--down);
}
.q-hist-note {
  margin-top: 6px;
}

/* ---------- the zoom keeps every screen filling the display (the owner, 2026-11-19: smaller or larger, but fitted) ----------
   The zoom scales the parts' own caps too (480 px wide at most, the whole screen tall at least), so a zoomed-out app
   left empty sides and an empty bottom: those caps are divided by the zoom, so on screen they stay the display's. */
html[data-size] .root {
  max-width: calc(480px / var(--app-zoom, 0.86));
  min-height: calc(100dvh / var(--app-zoom, 0.86));
}
html[data-size] .tabbar {
  max-width: calc(480px / var(--app-zoom, 0.86));
}
html[data-size] .sheet {
  max-width: calc(480px / var(--app-zoom, 0.86));
  max-height: calc(90dvh / var(--app-zoom, 0.86));
}
/* seven places in the tab bar: it grows with the zoom only up to 110 % (its labels would touch) */
html[data-size] .tabbar {
  zoom: min(var(--app-zoom, 0.86), 1.1);
  max-width: calc(480px / min(var(--app-zoom, 0.86), 1.1));
}

/* the floating Quick trade's size (Settings → Quick trade button: 36 to 84 px) */
.qt-float {
  width: var(--qt-size, 56px);
  height: var(--qt-size, 56px);
  border-radius: calc(var(--qt-size, 56px) * 0.34);
}
.qt-float svg {
  width: calc(var(--qt-size, 56px) * 0.4);
  height: calc(var(--qt-size, 56px) * 0.4);
}
.qt-float small {
  font-size: calc(var(--qt-size, 56px) * 0.16);
}
.qt-float.small small {
  display: none;
}

/* ---------- Settings: the clouds' credits (2026-11-20) ---------- */
.cloud-row + .cloud-row {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.cloud-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.cloud-head b {
  font-size: 15px;
}
.cloud-head span {
  flex: 1;
  min-width: 0;
  font-size: 11.5px;
  color: var(--muted);
}
.cloud-head strong {
  font-size: 20px;
  font-weight: 750;
  letter-spacing: -0.02em;
}
.cloud-cells {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}
.cloud-cells div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgb(255 255 255 / 0.02);
}
.cloud-cells span {
  font-size: 10.5px;
  color: var(--muted);
}
.cloud-cells b {
  font-size: 14px;
  font-weight: 650;
}
.cloud-cells b.down {
  color: var(--down);
}
.cloud-row .note {
  margin: 6px 2px 0;
  font-size: 11px;
}

/* Wallets: the vault's free money, its convert and cold-wallet sheets (wallets.js, 2026-11-20) */
.vm-bal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.vm-bal > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--bg-hover);
}
.vm-bal .muted {
  font-size: 11.5px;
}
.vm-bal b {
  font-size: 17px;
}
.vm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}
.vm-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.vm-quote {
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  min-height: 40px;
}
.vm-get {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}
.vm-get b {
  font-size: 18px;
}
.vm-pools {
  margin-top: 8px;
  font-size: 12.5px;
}
.vm-pools summary {
  cursor: pointer;
  color: var(--muted);
  margin-bottom: 4px;
}

/* ---------- a friend's app (2026-11-21, html[data-app="friend"]): Home, Portfolio, Markets, Profits, Orders ---------- */
.tab[data-friend-only] {
  display: none;
}
html[data-app="friend"] .tab[data-tab="pool"],
html[data-app="friend"] .tab[data-tab="vault"],
html[data-app="friend"] .tab[data-tab="wallets"] {
  display: none;
}
html[data-app="friend"] .tab[data-friend-only] {
  display: flex;
}
html[data-app="friend"] .tabbar-inner,
html[data-finish="obsidian"][data-app="friend"] .tabbar-inner {
  grid-template-columns: repeat(2, minmax(0, 1fr)) 64px repeat(2, minmax(0, 1fr));
}
html[data-app="friend"] .tab[data-tab="home"] {
  order: 1;
}
html[data-app="friend"] .tab[data-tab="positions"] {
  order: 2;
}
html[data-app="friend"] .fab-slot {
  order: 3;
}
html[data-app="friend"] .tab[data-tab="profits"] {
  order: 4;
}
html[data-app="friend"] .tab[data-tab="orders"] {
  order: 5;
}
/* the login waiting for the owner's approval */
.pending-dot {
  width: 14px;
  height: 14px;
  margin: 4px auto 0;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgb(var(--accent-rgb, 245 184 63) / 0.5);
  animation: pendingPulse 1.6s ease-out infinite;
}
@keyframes pendingPulse {
  to {
    box-shadow: 0 0 0 16px rgb(var(--accent-rgb, 245 184 63) / 0);
  }
}
/* Settings → Friend's app: its phones */
.friend-dev {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
}
.friend-dev .grow {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.friend-dev .grow span {
  overflow: hidden;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  text-overflow: ellipsis;
}
.friend-dev.pending b::after {
  content: " · waiting";
  color: var(--accent);
  font-weight: 600;
}
