/* vibe-wallet-desk v32 */
.desk-page {
  width: min(1280px, calc(100% - 40px));
  margin: 16px auto 56px;
  display: grid;
  gap: 14px;
}
.desk-strip {
  position: relative;
  height: 78px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--purple, #9945ff) 32%, transparent);
  background: var(--bg);
}
.desk-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.desk-strip-title {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  padding: 8px 14px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--bg) 62%, transparent);
  color: var(--text);
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.desk-hero {
  background: var(--surface);
  border: 1px solid var(--line, rgba(255,255,255,0.06));
  border-radius: 22px;
  padding: 20px 22px 18px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}
.desk-hero-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
}
.desk-mark {
  width: 96px;
  height: 96px;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(153, 69, 255, 0.45));
}
.desk-hero-copy { min-width: 0; }
.desk-total-row {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 14px;
  margin: 10px 0 4px;
}
.desk-kicker {
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}
.desk-chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 32px;
  padding: 4px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--purple, #a855f7) 22%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--purple, #a855f7) 35%, transparent);
  color: inherit;
  font-weight: 700;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.desk-total {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(2.2rem, 4.4vw, 3.1rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1.05;
  margin: 0;
}
.desk-sol-eq {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(1.05rem, 2.1vw, 1.4rem);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: #c4b5fd;
  opacity: 0.92;
  margin: 0 0 0.18em;
  text-shadow: 0 0 12px rgba(168, 85, 247, 0.28);
}
.desk-sol-eq[hidden] { display: none; }
.desk-cta-btn#desk-hide[aria-pressed="true"] img { opacity: 0.7; }
.desk-chg {
  font-weight: 700;
  font-size: 14px;
  min-height: 1.2em;
}
.desk-chg.up { color: var(--mint, #14f195); }
.desk-chg.down { color: #fb7185; }
.desk-full-addr {
  display: block;
  margin: 8px 0 0;
  color: var(--muted, #a1a1aa);
  font-size: 13px;
  font-weight: 600;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  word-break: break-all;
  text-align: left;
}
.desk-sns {
  margin: 4px 0 0;
  color: var(--mint, #14f195);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.desk-page.guest .desk-sns { display: none; }
.desk-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.desk-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line, rgba(255,255,255,0.06));
  color: inherit;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
}
.desk-cta-btn img,
.desk-cta-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  object-fit: contain;
}
.desk-cta-btn:hover { border-color: color-mix(in srgb, var(--purple) 55%, transparent); background: color-mix(in srgb, var(--purple) 14%, var(--surface-2)); }
.desk-cta-btn.busy img,
.desk-cta-btn.busy svg { animation: desk-spin 0.7s linear infinite; }
.desk-cta-btn.on { color: var(--mint, #14f195); }
@keyframes desk-spin { to { transform: rotate(360deg); } }
.desk-alloc-viz {
  display: flex;
  align-items: center;
  gap: 16px;
}
.desk-donut-wrap {
  position: relative;
  width: 211px;
  height: 211px;
  flex-shrink: 0;
}
.desk-donut { width: 211px; height: 211px; display: block; }
.desk-donut-track {
  fill: none;
  stroke: var(--surface-2);
  stroke-width: 22;
}
.desk-donut-slice {
  fill: none;
  stroke-width: 22;
  stroke-linecap: butt;
  transform: rotate(-90deg);
  transform-origin: 110px 110px;
  cursor: pointer;
}
.desk-donut-label {
  position: absolute;
  inset: 34%;
  display: grid;
  place-content: center;
  text-align: center;
  pointer-events: none;
}
.desk-donut-label b {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}
.desk-donut-label span {
  color: var(--muted, #a1a1aa);
  font-size: 12px;
  font-weight: 700;
}
.desk-legend {
  display: grid;
  gap: 6px;
  min-width: 132px;
}
.desk-legend-hint {
  color: var(--muted, #a1a1aa);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.desk-legend-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  font-weight: 700;
  font-size: 13px;
  text-align: left;
}
.desk-legend-row i {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  flex-shrink: 0;
}
.desk-legend-row.on { color: var(--text, #f4f4f5); }
.desk-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.desk-stat {
  background: var(--surface);
  border: 1px solid var(--line, rgba(255,255,255,0.06));
  border-radius: 16px;
  padding: 14px 16px;
}
.desk-stat span {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted, #a1a1aa);
  margin-bottom: 8px;
}
.desk-stat b {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
}
.desk-stat b.up { color: var(--mint, #14f195); }
.desk-stat b.down { color: #fb7185; }
.desk-linux-note {
  margin: -2px 2px 6px;
  color: var(--muted, #a1a1aa);
  font-size: 13px;
  font-weight: 600;
}
.desk-card-flash {
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--mint, #14f195) 55%, transparent);
  transition: box-shadow 0.4s ease;
}
.desk-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
}
.desk-act-ico {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
}
.desk-act-count {
  position: absolute;
  top: -4px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--mint, #14f195);
  color: #050505;
  font-size: 11px;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
}
.desk-act-count[hidden] { display: none; }
.reclaim-sheet { width: min(440px, 100%); }
.reclaim-list {
  display: grid;
  gap: 4px;
  max-height: min(42vh, 360px);
  overflow: auto;
  margin: 12px 0 10px;
}
.reclaim-row {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 8px 8px;
  border-radius: 12px;
}
.reclaim-row:hover { background: color-mix(in srgb, var(--purple, #a855f7) 8%, transparent); }
.reclaim-row img {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  object-fit: cover;
}
.reclaim-row b { display: block; font-size: 14px; }
.reclaim-row small { color: var(--muted); font-size: 12px; }
.reclaim-row .reclaim-sol { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 13px; }
.reclaim-row.dust small { color: #f5c16c; font-weight: 700; }
.reclaim-sum { font-weight: 700; margin-bottom: 12px; }
.reclaim-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.reclaim-hero {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 8px;
  margin: 8px 0 16px;
}
.reclaim-hero h3 { margin: 0; font-family: "Space Grotesk", Inter, sans-serif; }
.reclaim-facts {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 14px;
  background: color-mix(in srgb, #ffffff 4%, var(--surface-2, #18181f));
  margin-bottom: 12px;
}
.reclaim-facts div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-weight: 700;
}
.reclaim-warn {
  margin: 0 0 16px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, #f5c16c 45%, transparent);
  color: #f5c16c;
  font-size: 13px;
  font-weight: 600;
}
.reclaim-sig a { color: var(--mint, #14f195); font-weight: 700; }
.desk-act {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 0;
  min-height: 72px;
  padding: 8px 12px;
  border-radius: 16px;
  background: color-mix(in srgb, #ffffff 4%, var(--surface-2, #18181f));
  border: 1px solid var(--line, rgba(255, 255, 255, 0.08));
  color: var(--text, #f4f4f5);
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  text-decoration: none;
  box-sizing: border-box;
  cursor: pointer;
  appearance: none;
}
.desk-act img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex-shrink: 0;
}
.desk-act:hover {
  background: color-mix(in srgb, var(--purple, #a855f7) 10%, var(--surface-2, #18181f));
  border-color: color-mix(in srgb, var(--purple, #a855f7) 45%, transparent);
}
.desk-act-primary {
  background: linear-gradient(90deg, var(--purple, #a855f7) 0%, var(--cyan, #22d3ee) 100%);
  border: 0;
  color: var(--bg, #0a0a0a);
  box-shadow: 0 10px 28px color-mix(in srgb, var(--purple, #a855f7) 28%, transparent);
}
.desk-act-primary:hover {
  background: linear-gradient(90deg, var(--purple, #a855f7) 0%, var(--mint, #14f195) 100%);
  border: 0;
  box-shadow: 0 12px 32px color-mix(in srgb, var(--cyan, #22d3ee) 28%, transparent);
}
.desk-page > .hold-disc { width: 100%; }
.desk-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: start;
}
.desk-card {
  background: var(--surface);
  border: 1px solid var(--line, rgba(255,255,255,0.06));
  border-radius: 20px;
  padding: 16px 16px 12px;
  min-width: 0;
}
.desk-card h2 {
  margin: 0 0 12px;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}
.desk-cols {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) 0.8fr 0.7fr 0.7fr 0.55fr;
  gap: 8px;
  padding: 0 6px 8px;
  color: var(--muted, #a1a1aa);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.desk-cols span:nth-child(n+2) { text-align: right; }
.desk-row .hold-coin { align-items: flex-start; }
.desk-upnl {
  margin-top: 2px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--muted, #a1a1aa);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.desk-upnl.up { color: #14f195; }
.desk-upnl.down { color: #fb7185; }
.desk-list { display: flex; flex-direction: column; gap: 2px; }
.desk-row {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) 0.8fr 0.7fr 0.7fr 0.55fr;
  gap: 8px;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 10px 6px;
  border-radius: 12px;
  color: inherit;
}
.desk-row:hover { background: var(--surface-2); }
.desk-row .hold-qty,
.desk-row .hold-solval,
.desk-usd,
.desk-pct {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: 13px;
}
.desk-pct { color: var(--mint, #14f195); font-weight: 700; }
.desk-alloc { display: grid; gap: 10px; }
.desk-bar {
  display: grid;
  grid-template-columns: 92px 1fr 48px;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
}
.desk-bar i {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
}
.desk-bar i em {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--purple), var(--cyan));
}
.desk-bar span:last-child { text-align: right; color: var(--muted, #a1a1aa); }
.desk-vee {
  display: none;
  width: min(280px, 46vw);
  height: auto;
  justify-self: center;
  filter: drop-shadow(0 18px 40px rgba(153, 69, 255, 0.38));
}
.desk-guest {
  text-align: center;
  padding: 8px 4px 4px;
  max-width: 34rem;
  margin-inline: auto;
}
.desk-guest-hi {
  margin: 0 0 10px;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.15;
  color: var(--text);
}
.desk-guest-sub {
  margin: 0 0 18px;
  color: var(--muted, #a1a1aa);
  font-size: 1.02rem;
  line-height: 1.5;
  font-weight: 500;
}
.desk-need { display: none; }
.desk-page.guest .desk-need { display: block; }
.desk-page.guest .desk-live { display: none; }
.desk-page.guest .desk-vee { display: block; }
.desk-page.guest .desk-hero {
  overflow: hidden;
  background:
    radial-gradient(520px 240px at 12% 80%, rgba(153, 69, 255, 0.22), transparent 62%),
    radial-gradient(420px 220px at 88% 10%, rgba(34, 211, 238, 0.1), transparent 58%),
    var(--surface);
}
.desk-page.guest .desk-total,
.desk-page.guest .desk-total-row,
.desk-page.guest .desk-chg,
.desk-page.guest .desk-chip,
.desk-page.guest .desk-full-addr { display: none; }
.desk-page.guest .desk-hero-main {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 28px 36px;
  min-height: 260px;
}
.desk-page.guest .desk-hero-copy {
  flex: 0 1 28rem;
  display: flex;
  justify-content: center;
}
.desk-hist-list { max-height: 480px; overflow: auto; }

@media (max-width: 960px) {
  .desk-hero-main { grid-template-columns: auto minmax(0, 1fr); }
  .desk-page.guest .desk-hero-main { justify-content: center; }
  .desk-alloc-viz { grid-column: 1 / -1; justify-content: center; }
  .desk-metrics { grid-template-columns: 1fr 1fr; }
  .desk-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .desk-cols,
  .desk-row { grid-template-columns: minmax(0, 1.4fr) 0.9fr 0.8fr; }
  .desk-cols span:nth-child(4),
  .desk-cols span:nth-child(5),
  .desk-usd,
  .desk-pct { display: none; }
}
@media (max-width: 767px) {
  .desk-page { width: min(1280px, calc(100% - 20px)); margin: 10px auto 24px; }
  .desk-cols { display: none; }
  .desk-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    padding: 12px;
    margin-bottom: 8px;
    background: var(--surface-2, #17171b);
    border-radius: 14px;
  }
  .desk-row .hold-coin { flex: 1 1 140px; min-width: 0; }
  .desk-row .hold-qty,
  .desk-row .desk-usd {
    display: block;
    text-align: right;
    font-size: 14px;
  }
  .desk-row .hold-solval,
  .desk-row .desk-pct { display: none; }
  .desk-hero-main {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .desk-hero-copy {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .desk-kicker { text-align: center; }
  .desk-total-row {
    justify-content: center;
    align-items: baseline;
  }
  .desk-chg,
  .desk-full-addr,
  .desk-sns { text-align: center; }
  .desk-cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-content: center;
    width: 100%;
    max-width: 360px;
  }
  .desk-cta-btn { width: 100%; justify-content: center; }
  .desk-alloc-viz,
  .desk-metrics,
  .desk-linux-note,
  .desk-stats-card { display: none !important; }
  .desk-page.guest .desk-hero-main { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .desk-guest { text-align: center; }
  .desk-vee { width: min(200px, 70vw); }
  .desk-mark { width: 72px; height: 72px; margin-inline: auto; }
  .desk-hero { padding: 16px 14px 14px; border-radius: 18px; }
  .desk-total { font-size: 2rem; }
  .desk-donut-wrap,
  .desk-donut { display: none !important; }
  .desk-actions { grid-template-columns: 1fr 1fr; }
  .desk-act { justify-content: center; }
  .desk-act { min-height: 64px; padding: 8px 10px; }
  .desk-act img { width: 40px; height: 40px; }
  .desk-strip { height: 64px; }
  .desk-strip-title { font-size: 16px; right: 10px; padding: 6px 10px; }
  .desk-cols,
  .desk-row { grid-template-columns: minmax(0, 1.2fr) 0.8fr 0.7fr; }
  .desk-cols span:nth-child(3),
  .desk-row .hold-solval { display: none; }
}
