/* ============================================================================
   PRRR launch tool — app shell + launch experience.
   A clean, dark, Bags-forward theme. Loaded AFTER base.css + launch.css so its
   token overrides + form overrides win. Scoped form tweaks live under
   .lx-form-mount so they only apply on the launch page.
   ========================================================================== */

:root {
  /* SOAR-style light theme: airy blue-tinted ground, white cards, vivid green. */
  --bg:          #eaf1f8;   /* light blue-gray page */
  --bg-2:        #ffffff;   /* cards / panels */
  --bg-elev:     #ffffff;   /* elevated surfaces (dropdowns) — white + shadow */
  --bg-input:    #f1f4f8;   /* inputs */
  --text:        #0f1419;   /* near-black */
  --muted:       #5b6472;
  --faint:       #909aa8;
  --border:      rgba(15, 23, 42, 0.09);
  --border-2:    rgba(15, 23, 42, 0.16);
  --hover:       rgba(15, 23, 42, 0.045);
  --hover-faint: rgba(15, 23, 42, 0.03);  /* override base.css (was a white tint for dark) */
  --green:       #16c784;   /* positive / gains / up (charts, +%, buy side) — NOT the brand */
  --text-2:      #5b6472;   /* muted text used by some shared components */
  --accent:      #2ba8f0;   /* ice blue — the BRRR brand color */
  --accent-2:    #1f97de;   /* ice blue hover */
  --accent-dim:  rgba(43, 168, 240, 0.14);
  --accent-ink:  #ffffff;   /* white text on ice blue */
  --danger:      #d92640;   /* 4.9:1 on white */
  --blue:        #2ba8f0;   /* secondary accent — aligned to the ice-blue brand */
  --r:           18px;
  --r-sm:        12px;
  --shadow:      0 14px 40px -18px rgba(15, 23, 42, 0.22);
  --font:        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Inter", sans-serif;
  --line:        var(--border);          /* table/list rules in shared components */
  --white-btn:   #eff3f4;                /* "white" pill button (base.css) */
  --white-btn-hover: #e2e7ea;
  --amber:       #b7791f;                /* warnings / "RH" chain tag */
  --topbar-bg:   rgba(255, 255, 255, 0.72);
  --checker-a:   #eef2f7;                /* preview image placeholder checkerboard */
  --checker-b:   #f7f9fc;
  --title-ink:   linear-gradient(180deg, #0f1419, #45505f); /* gate headline gradient */
  --danger-dim:  rgba(217, 38, 64, 0.10);
  --green-ink:   #06121c;                /* ink on the green fill (8.6:1) */
  --chain-sol:   #0a8f5a;                /* Discover rail chain dots (the brand greens are too light on white) */
  --chain-rh:    #0052ff;
  --chain-rh-ink: #ffffff;               /* glyph on the RH badge (5.7:1) */
  --green-text:  #0a7f52;                /* green as small TEXT (5.0:1 on white); --green stays for fills/bars */
  --scrollbar-thumb: #808a98;
  color-scheme: light;
}

/* ---------------- dark theme ----------------
   Same ice-blue brand on a deep navy ground. `data-theme` is set on <html>
   by js/theme.js (a saved choice, else the OS preference — applied before
   first paint by the inline script in index.html, so no light flash). */
:root[data-theme="dark"] {
  --bg:          #0b1119;
  --bg-2:        #121a25;
  --bg-elev:     #182231;
  --bg-input:    #0e151e;
  --text:        #e6edf5;
  --muted:       #97a4b5;
  --faint:       #8090a2;   /* ≥4.75:1 on every dark surface */
  --border:      rgba(148, 163, 184, 0.14);
  --border-2:    rgba(148, 163, 184, 0.28);
  --hover:       rgba(148, 163, 184, 0.09);
  --hover-faint: rgba(148, 163, 184, 0.05);
  --green:       #22d38b;
  --text-2:      #97a4b5;
  --text-2-elev: #a6b2c2;
  --accent:      #3fb4f5;
  --accent-2:    #62c4ff;
  --accent-dim:  rgba(63, 180, 245, 0.16);
  --accent-ink:  #06121c;                /* dark ink on ice blue: readable on a dark UI */
  --danger:      #ff5c72;
  --blue:        #3fb4f5;
  --blue-hover:  #62c4ff;
  --blue-a:      rgba(63, 180, 245, 0.12);
  --green-a:     rgba(34, 211, 139, 0.12);
  --overlay:     rgba(2, 6, 12, 0.6);
  --white-btn:   #e6edf5;
  --white-btn-hover: #d3dce8;
  --shadow:      0 14px 40px -18px rgba(0, 0, 0, 0.7);
  --line:        var(--border);
  --amber:       #f0b640;
  --topbar-bg:   rgba(11, 17, 25, 0.72);
  --checker-a:   #182231;
  --checker-b:   #121a25;
  --title-ink:   linear-gradient(180deg, #ffffff, #a9c6e2);
  --danger-dim:  rgba(255, 92, 114, 0.14);
  --green-ink:   #06121c;
  --chain-sol:   #14f195;
  --chain-rh:    #4d8dff;                /* the RH blue lifted for a dark ground (5.5:1) */
  --chain-rh-ink: #06121c;               /* white on #4d8dff is only 3.2:1 at 8px */
  --green-text:  var(--green);
  --scrollbar-thumb: #56687c;
  color-scheme: dark;
}
html { scrollbar-color: var(--scrollbar-thumb) transparent; }
:root[data-theme="dark"] body {
  background:
    radial-gradient(1200px 620px at 50% -220px, rgba(43, 168, 240, 0.14), transparent 62%),
    linear-gradient(180deg, #0b1119 0%, #0d141d 100%);
  background-attachment: fixed;
}
:root[data-theme="dark"] ::selection { background: rgba(63, 180, 245, 0.35); }

html, body { background: var(--bg); }
body {
  color: var(--text);
  min-height: 100vh;
  /* airy blue wash toward the top, like the SOAR hero */
  background:
    radial-gradient(1200px 620px at 50% -220px, rgba(56, 152, 255, 0.16), transparent 62%),
    linear-gradient(180deg, #eaf1f8 0%, #f4f7fb 100%);
  background-attachment: fixed;
}

.app-shell { display: block; max-width: none; }

/* ---------------- top bar ---------------- */
.lx-topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  height: 60px; padding: 0 clamp(16px, 4vw, 40px);
  border-bottom: 1px solid var(--border);
  background: var(--topbar-bg);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
/* Theme toggle (sun / moon) in the top bar. */
.lx-theme-btn {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  color: var(--muted); border: 1px solid var(--border); background: var(--bg-2);
}
.lx-theme-btn:hover { color: var(--text); border-color: var(--accent); }
.lx-theme-btn svg { width: 16px; height: 16px; }
.lx-theme-btn .lx-theme-moon { display: none; }
:root[data-theme="dark"] .lx-theme-btn .lx-theme-moon { display: block; }
:root[data-theme="dark"] .lx-theme-btn .lx-theme-sun { display: none; }
.lx-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.lx-brand-mark {
  width: 28px; height: 28px; flex: none; display: block; object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(63, 155, 239, 0.35));
}
.lx-brand-name { font-weight: 800; font-size: 19px; letter-spacing: 0.02em; }

.lx-topbar-right { display: flex; align-items: center; gap: 12px; }
.lx-connect-sm {
  height: 38px; padding: 0 18px; border-radius: 999px;
  font-weight: 700; font-size: 14px; color: var(--accent-ink);
  background: var(--accent);
}
.lx-connect-sm:hover { background: var(--accent-2); }

.lx-account { display: flex; align-items: center; gap: 10px; }
.lx-mylaunches {
  height: 34px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--border-2); color: var(--muted);
  font-size: 13px; font-weight: 700; cursor: pointer;
}
.lx-mylaunches:hover { color: var(--text); border-color: var(--accent); }
.lx-wallet {
  display: inline-flex; align-items: center; gap: 7px;
  height: 34px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--border-2); color: var(--muted);
  font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.lx-wallet:hover { color: var(--text); border-color: var(--accent); }
.lx-wallet.copied { color: var(--accent); border-color: var(--accent); }
.lx-wallet-bal { font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 700; }
.lx-wallet-bal:not(:empty)::before { content: "·"; margin: 0 6px 0 2px; color: var(--faint); }
.lx-wallet-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.lx-avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border-2); }
.lx-avatar-ph { display: grid; place-items: center; background: var(--bg-elev); color: var(--muted); font-weight: 700; font-size: 14px; }
.lx-logout { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--faint); border: 1px solid transparent; }
.lx-logout:hover { color: var(--danger); background: rgba(255,90,95,0.1); }

/* ---------------- main ---------------- */
.lx-main { display: block; width: 100%; }
.lx { width: 100%; }

/* ---------------- the door: waitlist landing (no shell) ---------------- */
.app-shell.is-gated { display: block; }
.app-shell.is-gated .lx-sidebar, .app-shell.is-gated .lx-topbar { display: none; }
.lx-landing { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 30px; padding: 24px 20px calc(24px + env(safe-area-inset-bottom)); text-align: center; }
.lx-landing-brand { display: inline-flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 14px; border: none; background: transparent; color: var(--text); cursor: pointer; }
.lx-landing-brand:hover { background: var(--hover); }
.lx-landing-brand .lx-brand-mark { width: 64px; height: 64px; filter: drop-shadow(0 10px 24px rgba(63, 155, 239, 0.45)); }
.lx-landing-brand .lx-brand-name { font-size: 28px; }
.lx-landing-title {
  font-size: clamp(38px, 7vw, 66px); line-height: 1.02; font-weight: 850; letter-spacing: -0.03em; margin: 0; max-width: 13ch;
  background: var(--title-ink); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.lx-landing-cta { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lx-landing-form { display: flex; gap: 8px; align-items: center; }
.lx-landing-form[hidden], .lx-landing-btn[hidden] { display: none; }
.lx-landing-form .lc-input { width: min(260px, 60vw); height: 52px; }
.lx-landing-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.lx-landing .lx-wait-status { min-height: 20px; margin: 0; font-size: 15px; color: var(--muted); }
.lx-landing .lx-wait-status:empty { display: none; }

/* ---------------- gate (logged out) ---------------- */
.lx-gate { min-height: calc(100vh - 60px); display: grid; place-items: center; padding: 40px 20px 80px; }
.lx-gate-inner { max-width: 640px; text-align: center; }
.lx-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 26px;
  border: 1px solid var(--border-2); background: var(--bg-elev);
  font-size: 13px; font-weight: 600; color: var(--muted);
}
.lx-badge-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: lx-pulse 2.4s ease-in-out infinite; }
@keyframes lx-pulse { 0%,100% { opacity: 1; } 50% { opacity: .4; } }
.lx-gate-title {
  font-size: clamp(38px, 7vw, 66px); line-height: 1.02; font-weight: 850;
  letter-spacing: -0.03em; margin: 0 0 20px;
  background: var(--title-ink);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.lx-gate-sub { font-size: clamp(16px, 2.4vw, 19px); line-height: 1.55; color: var(--muted); margin: 0 auto 34px; max-width: 520px; }
.lx-connect-btn {
  display: inline-flex; align-items: center; gap: 11px;
  height: 56px; padding: 0 34px; border-radius: 999px;
  font-size: 17px; font-weight: 800; color: var(--accent-ink);
  background: var(--accent); box-shadow: 0 14px 40px -12px var(--accent);
  transition: transform .12s ease, background .15s ease, box-shadow .15s ease;
}
.lx-connect-btn:hover { background: var(--accent-2); transform: translateY(-1px); box-shadow: 0 18px 48px -12px var(--accent); }
.lx-connect-btn:active { transform: translateY(0); }
.lx-gate-feats { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 34px; }
.lx-feat {
  font-size: 13px; font-weight: 600; color: var(--muted);
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg-2);
}
.lx-feat::before { content: "✓ "; color: var(--accent); font-weight: 800; }

/* ---------------- launch page (logged in): a row of panels ---------------- */
/* Discover | Create a coin | Live preview | Launch | Auto launch — flex, not
   grid, so a user-chosen `order` and per-panel widths both work, and panels
   wrap to the next row when the viewport can't fit them side by side. */
.lx-launch {
  display: flex; flex-wrap: wrap; align-items: flex-start; gap: 18px;
  padding: 18px clamp(12px, 1.6vw, 26px) 72px;
}
.lx-sub { color: var(--muted); font-size: 13.5px; margin: 0 0 14px; line-height: 1.45; }

/* ---- panel chrome ---- */
.pnl {
  position: relative; display: flex; flex-direction: column; min-width: 0; flex: 1 1 320px;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--shadow);
}
.pnl[hidden] { display: none; }
.pnl-head { display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 6px 8px 6px 14px; border-bottom: 1px solid var(--border); }
.pnl-title { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 14px; font-weight: 800; white-space: nowrap; }
.pnl-extra { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.pnl-tools { display: flex; align-items: center; gap: 2px; flex: none; }
.pnl-tools button {
  width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center;
  color: var(--faint); background: transparent; border: none; font-size: 17px; font-weight: 700; line-height: 1;
}
.pnl-tools button:hover { color: var(--text); background: var(--hover); }
.pnl-grip { cursor: grab; touch-action: none; }
.pnl-help { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: var(--faint); border: 1px solid var(--border); text-decoration: none; margin-right: 2px; }
.pnl-help:hover { color: var(--accent); border-color: var(--accent); }
.lx-settings-takeover.au-takeover { max-width: 1100px; }
.lx-settings-takeover.la-takeover { max-width: none; }
.pnl.is-dragging { opacity: .55; }
.pnl.is-dragging .pnl-grip, .lx-launch.is-reordering { cursor: grabbing; }
.lx-launch.is-reordering { user-select: none; }
/* drop markers are box-shadows on the panel itself: immune to a panel's own
   overflow clip (the rail hides overflow) and they add no scrollable area */
.pnl.drop-before { box-shadow: -4px 0 0 0 var(--accent), 0 0 12px var(--accent), var(--shadow); }
.pnl.drop-after { box-shadow: 4px 0 0 0 var(--accent), 0 0 12px var(--accent), var(--shadow); }
.pnl-body { padding: 14px; min-width: 0; }
/* A collapsed panel leaves the row: it lives on as a vertical tab in the dock
   (below) so its width goes to the panels still open. */
.pnl.is-collapsed { display: none; }
.lx-dock { order: -1; flex: 0 0 40px; align-self: flex-start; position: sticky; top: 76px; display: flex; flex-direction: column; gap: 6px; }
.lx-dock[hidden] { display: none; }
.lx-dock-tab {
  writing-mode: vertical-rl; transform: rotate(180deg);
  width: 40px; padding: 14px 0; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-2); color: var(--muted);
  font-size: 12px; font-weight: 800; letter-spacing: .02em; white-space: nowrap; box-shadow: var(--shadow); cursor: pointer;
}
.lx-dock-tab:hover { color: var(--text); background: var(--hover); }
.pnl-form { flex: 1.5 1 440px; }
.pnl-preview { flex: 1.15 1 380px; position: sticky; top: 76px; }
@media (min-width: 901px) { .lx-launch.preview-small .pnl-preview:not(.is-collapsed) { flex: 1 1 260px; } }
/* Not a scroll container: the market / stock-pair popovers inside would be
   clipped. Only the operator wallet list is allowed to scroll. */
.pnl-launch { flex: 1 1 320px; position: sticky; top: 76px; }
.pnl-auto { flex: 1 1 340px; max-width: 760px; }
.pnl-rail { flex: 0 0 360px; }
/* When the row wraps (5 panels at laptop widths), a sticky panel's containing
   block is the whole flex container, so it would slide over the second row:
   wirePanels flags wrapping and everything goes static. */
.lx-launch.is-wrapped .pnl-rail.dv-rail-launch, .lx-launch.is-wrapped .pnl-preview, .lx-launch.is-wrapped .pnl-launch { position: static; }
.lx-toolbar { flex: 0 0 100%; order: -1; display: none; align-items: center; justify-content: flex-end; gap: 10px; font-size: 12.5px; color: var(--muted); }
.lx-launch.is-custom-layout .lx-toolbar { display: flex; }
.lx-layout-reset { height: 28px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--border-2); background: transparent; color: var(--muted); font-size: 12px; font-weight: 700; }
.lx-layout-reset:hover { color: var(--text); border-color: var(--accent); }

/* ---- Launch panel internals: the form's lifted controls + wallet card + button ---- */
.pnl-launch .lc-part { display: flex; flex-direction: column; gap: 16px; }
.pnl-launch .lc-part[hidden] { display: none; }
.pnl-launch .lc-part .lc-field, .pnl-launch .lc-part .lc-bags { margin-bottom: 0; }
.pnl-launch .lx-wallet-mount:not(:empty) { margin-top: 16px; max-height: 50vh; overflow-y: auto; scrollbar-width: thin; }
.pnl-launch .lx-launch-actions:not(:empty) { margin-top: 16px; }
/* (three-class selectors: they must beat the later `.lx-form-mount .lc-*`
   sticky-bar rules, which share the two-class specificity) */
.pnl-launch .lx-form-mount .lc-actions { position: static; margin: 0; padding: 0; background: transparent; flex-direction: column; gap: 10px; }
.pnl-launch .lx-form-mount .lc-actions::before { display: none; }
.pnl-launch .lx-form-mount .lc-launch { flex: none; width: 100%; height: 52px; }
.pnl-launch .lx-form-mount .lc-intent { flex: none; order: 2; height: 40px; width: 100%; }
.pnl-launch .lc-error { margin: 0 0 12px; }
.pnl-launch .lc-fund { margin-bottom: 12px; }
/* Live preview: the card's own label duplicates the panel title. */
.pnl-preview .lxp-label { display: none; }
.lxp-size { display: flex; gap: 2px; padding: 2px; border-radius: 999px; border: 1px solid var(--border); }
.lxp-size button { width: 26px; height: 22px; border-radius: 999px; font-size: 11px; font-weight: 800; color: var(--faint); background: transparent; border: none; }
.lxp-size button:hover { color: var(--text); }
.lxp-size button.active { color: var(--accent-ink); background: var(--accent); }
/* small preview: image beside the text, clamped description, tighter rows */
.lx-launch.preview-small .lxp-card { display: flex; align-items: center; gap: 14px; padding: 14px; }
.lx-launch.preview-small .lxp-img { width: 96px; height: 96px; flex: none; margin: 0; border-radius: 14px; }
.lx-launch.preview-small .lxp-img-ph { font-size: 30px; }
.lx-launch.preview-small .lxp-body { min-width: 0; }
.lx-launch.preview-small .lxp-symbol { font-size: 20px; }
.lx-launch.preview-small .lxp-name { font-size: 14px; }
.lx-launch.preview-small .lxp-desc { font-size: 12.5px; margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.lx-launch.preview-small .lxp-rows { margin-top: 12px; }
.lx-launch.preview-small .lxp-row { padding: 8px 0; }
/* Auto launch panel: the shared settings card sits flat inside the panel. */
.pnl-auto .au-card.au-settings-embed { border: none; box-shadow: none; padding: 0; background: transparent; }
.pnl-auto .au-settings-embed .au-card-head h3 { display: none; }
/* Private transfer panel: wallet → wallet through a private swap (js/components/transfer-panel.js). */
.pnl-transfer { flex: 1 1 300px; max-width: 420px; }
.tp { display: flex; flex-direction: column; gap: 10px; }
.tp-field { display: flex; flex-direction: column; gap: 4px; }
.tp-k { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--faint); }
.tp-paste-row, .tp-amt-row { display: flex; align-items: center; gap: 8px; }
.tp-paste-row .tp-addr, .tp-amt-row .tp-sol { flex: 1; min-width: 0; }
.tp-addr { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; }
.tp-send { width: 100%; height: 44px; }
.tp-status { min-height: 16px; line-height: 17px; }
.tp-status.au-ok { color: var(--green-text, var(--green)); }
.tp-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tp-seg { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--border); border-radius: 999px; background: var(--bg-2); }
.tp-seg-btn { flex: 1; min-width: 0; height: 32px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .15s ease, background .15s ease; }
.tp-seg-btn:hover { color: var(--text); }
.tp-seg-btn.on { color: var(--accent-ink); background: var(--accent); }
.tp-card { display: flex; flex-direction: column; gap: 6px; padding: 12px; border: 1px solid var(--border-2); border-radius: 14px; background: var(--bg-2); }
.tp-copy-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: space-between; }
.tp-big { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.tp-payin { flex: 1; min-width: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; word-break: break-all; user-select: all; }
.tp-card-status { min-height: 16px; }
.tp-card-status.au-ok { color: var(--green-text, var(--green)); }
/* Wallets panel: every wallet with its live balance (js/components/wallet-list.js). */
.pnl-wallets { flex: 1 1 300px; max-width: 440px; }
.pnl-wallets .wl { max-height: 70vh; overflow-y: auto; scrollbar-width: thin; }
.wl-totals { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.wl-total { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg); min-width: 0; }
.wl-total b { font-size: 18px; font-variant-numeric: tabular-nums; }
.wl-k { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--faint); }
.wl-chips { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 4px; }
.wl-chip { height: 26px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--border-2); background: transparent; color: var(--muted); font-size: 12px; font-weight: 700; }
.wl-chip.active { color: var(--accent); border-color: var(--accent); }
.wl-stamp { margin-left: auto; }
.wl-group { margin-top: 10px; }
.wl-group-head { display: flex; align-items: baseline; gap: 6px; padding: 4px 0 6px; border-bottom: 1px solid var(--border); font-size: 12px; font-weight: 800; white-space: nowrap; }
.wl-group-head .au-hint { white-space: normal; min-width: 0; }
.wl-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.wl-row:last-child { border-bottom: none; }
.wl-row.is-muted { opacity: .6; }
.wl-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.wl-line { display: flex; align-items: center; gap: 6px; min-width: 0; }
.wl-addr { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; font-weight: 700; }
.wl-label { font-size: 11px; color: var(--muted); padding: 1px 6px; border-radius: 6px; background: var(--hover); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 120px; }
.wl-copy { width: 22px; height: 22px; border-radius: 6px; border: none; background: transparent; color: var(--faint); display: grid; place-items: center; }
.wl-copy:hover, .wl-copy.copied { color: var(--accent); background: var(--hover); }
.wl-meta { font-size: 11.5px; color: var(--muted); flex-wrap: wrap; }
.wl-pill { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; padding: 1px 6px; border-radius: 999px; border: 1px solid var(--border-2); color: var(--muted); }
.wl-pill.on { color: var(--green); border-color: var(--green); }
.wl-pill.off { color: var(--danger); border-color: var(--danger); }
.wl-bal { font-variant-numeric: tabular-nums; font-weight: 800; font-size: 14px; white-space: nowrap; }
.wl-row.is-dry .wl-bal { color: var(--danger); }
.wl-bal.is-unknown { color: var(--faint); }
.wl-unit { font-size: 11px; color: var(--muted); font-weight: 700; }
.wl-empty { padding: 8px 0; }
/* Market maker panel: the engine's live session (js/components/mm-agents.js). */
.pnl-mm { flex: 1 1 300px; max-width: 440px; }
.mma { display: flex; flex-direction: column; gap: 12px; }
.mma-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mma-engine.is-stale { color: var(--danger); }
.mma-agent { border: 1px solid var(--border); border-radius: 12px; padding: 12px; background: var(--bg); display: flex; flex-direction: column; gap: 10px; }
.mma-agent.is-running { border-color: color-mix(in srgb, var(--green) 55%, var(--border)); }
.mma-agent-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mma-agent-title { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.mma-kv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 10px; font-size: 12.5px; }
.mma-kv > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mma-kv .wl-addr { font-size: 12px; }
.mma-kv .wl-copy { width: 18px; height: 18px; font-size: 11px; margin-left: 2px; }
.mma-wallets { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; }
.mma-wallets-line { display: flex; align-items: center; gap: 8px; }
.mma-wallets-line .wl-bal { margin-left: auto; }
.mma-bar { height: 6px; border-radius: 999px; background: var(--hover); overflow: hidden; display: flex; }
.mma-bar i { display: block; height: 100%; }
.mma-bar .is-funded { background: var(--green); }
.mma-bar .is-low { background: #e6c200; }
.mma-feed .wl-group-head { margin-bottom: 4px; }
.mma-tick { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.mma-tick:last-child { border-bottom: none; }
.mma-side { font-size: 10.5px; font-weight: 800; letter-spacing: .04em; padding: 1px 6px; border-radius: 999px; border: 1px solid var(--border-2); }
.mma-tick.is-buy .mma-side { color: var(--green); border-color: var(--green); }
.mma-tick.is-sell .mma-side { color: var(--danger); border-color: var(--danger); }
.mma-tick .au-mini { margin-left: auto; }
.mma-foot { padding-top: 2px; }
.mma-advice { border: 1px solid var(--danger); border-radius: 12px; padding: 10px 12px; font-size: 12.5px; line-height: 1.5; background: color-mix(in srgb, var(--danger) 8%, transparent); }
.mma-advice b { display: block; margin-bottom: 4px; }
.mma-advice ol { margin: 0 0 6px; padding-left: 18px; }
.mma-advice li { margin: 2px 0; }
/* Recent auto launches panel: the console's launch rows as their own column; the list scrolls, the panel doesn't grow past the viewport. */
.pnl-recent { flex: 1 1 320px; max-width: 520px; }
.pnl-recent .au-recent { max-height: 70vh; overflow-y: auto; scrollbar-width: thin; }
.pnl-recent .au-recent-foot { margin-top: 10px; }
.lx-recent-refresh { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: var(--faint); background: transparent; border: 1px solid var(--border); font-size: 15px; font-weight: 700; line-height: 1; }
.lx-recent-refresh:hover { color: var(--text); background: var(--hover); }

/* ---- form container overrides (reused .lc form, page context) ---- */
.lx-form-mount .lc { width: 100%; max-width: none; padding: 0; }
.lx-form-mount .lc-title { display: none; } /* header lives in .lx-form-head */
.lx-form-mount .lc-body { display: flex; flex-direction: column; gap: 20px; padding-bottom: 0; } /* the sticky action bar it padded for now lives in the Launch panel */
.lx-form-mount .lc-input,
.lx-form-mount .lc-quote-btn,
.lx-form-mount .lc-feemode {
  background: var(--bg-input); border: 1px solid var(--border);
  border-radius: var(--r-sm); color: var(--text);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.lx-form-mount .lc-input:focus,
.lx-form-mount .lc-quote-btn:focus,
.lx-form-mount .lc-input:focus-within {
  border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); outline: none;
}
.lx-form-mount .lc-label { color: var(--muted); font-weight: 600; font-size: 13px; letter-spacing: .01em; }

/* contain absolutely-positioned unit glyphs (%, SOL) so they can't escape to
   the viewport edge at the wider page width */
.lx-form-mount .lc-fs-row,
.lx-form-mount .lc-buy-wrap,
.lx-form-mount .lc-num-wrap { position: relative; }

/* Bags options: turn the <details> into a clean card */
.lx-form-mount .lc-bags {
  border: 1px solid var(--border); border-radius: var(--r);
  background: var(--bg-2); padding: 4px 16px;
}
.lx-form-mount .lc-bags[open] { padding-bottom: 16px; }
.lx-form-mount .lc-bags-summary {
  padding: 14px 0; font-weight: 700; font-size: 14px; color: var(--text);
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
}
.lx-form-mount .lc-bags-summary::-webkit-details-marker { display: none; }
.lx-form-mount .lc-bags-summary::after { content: "▾"; color: var(--faint); transition: transform .15s ease; }
.lx-form-mount .lc-bags[open] .lc-bags-summary::after { transform: rotate(180deg); }

/* action row: sticky launch bar — solid bar with a short fade above so content
   recedes cleanly under it instead of peeking through. */
.lx-form-mount .lc-actions {
  position: sticky; bottom: 0; z-index: 5;
  display: flex; gap: 12px; margin: 8px -4px 0; padding: 14px 4px 18px;
  background: var(--bg);
}
.lx-form-mount .lc-actions::before {
  content: ""; position: absolute; left: 0; right: 0; top: -26px; height: 26px;
  background: linear-gradient(180deg, transparent, var(--bg)); pointer-events: none;
}
.lx-form-mount .lc-intent { flex: 0 0 auto; border-color: var(--border-2); color: var(--muted); border-radius: 999px; }
.lx-form-mount .lc-intent:hover { color: var(--text); border-color: var(--text); background: transparent; }
.lx-form-mount .lc-launch {
  flex: 1; height: 52px; font-size: 16px; font-weight: 800; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  box-shadow: 0 12px 34px -14px var(--accent);
}
.lx-form-mount .lc-launch:hover:not(:disabled) { background: var(--accent-2); }

/* success state */
.lx-form-mount .lc-done { background: var(--accent); color: var(--accent-ink); }

/* ---------------- launch wallet card inside the Launch panel (operators only) ---------------- */
.pnl-launch .lxw { margin: 0; padding: 12px 14px; }
.pnl-launch .lxw-head { flex-direction: column; align-items: stretch; gap: 8px; }
.pnl-launch .lxw-gens { justify-content: flex-start; }
.pnl-launch .lxw-row { gap: 8px 10px; padding: 8px 10px; }
.pnl-launch .lxw-actions { width: 100%; gap: 6px; }
.pnl-launch .lxw-main { min-width: 0; }
.lxp { display: flex; flex-direction: column; gap: 0; }
.lxp-label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin-bottom: 12px; }
.lxp-card {
  border: 1px solid var(--border); border-radius: var(--r);
  background: linear-gradient(180deg, var(--bg-elev), var(--bg-2));
  padding: 22px; box-shadow: var(--shadow);
}
.lxp-img {
  width: 100%; aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden;
  display: grid; place-items: center; margin-bottom: 18px;
  background: repeating-conic-gradient(from 0deg, var(--checker-a) 0deg 90deg, var(--checker-b) 90deg 180deg) 0 0 / 28px 28px;
  border: 1px solid var(--border);
}
.lxp-img.has-img { background: var(--bg); }
.lxp-img-real { width: 100%; height: 100%; object-fit: cover; }
.lxp-img-ph { font-size: 54px; font-weight: 800; color: var(--faint); text-transform: uppercase; }
.lxp-symbol { font-size: 26px; font-weight: 850; letter-spacing: -0.02em; line-height: 1.1; }
.lxp-name { font-size: 16px; color: var(--muted); margin-top: 2px; }
.lxp-desc { font-size: 14px; line-height: 1.5; color: var(--text); margin-top: 12px; word-break: break-word; }
.lxp-desc.is-muted { color: var(--muted); }
.lxp-clause { color: var(--accent); font-weight: 600; }

/* ---- Launch wallet card (operators): generate + fund a fresh wallet to launch from ---- */
.lxw { margin: 0 0 18px; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--r, 18px); background: var(--bg-2, #fff); }
.lxw-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.lxw-title { font-weight: 800; font-size: 14px; }
.lxw-sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.lxw-list { display: flex; flex-direction: column; gap: 6px; }
.lxw-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 12px; cursor: pointer; flex-wrap: wrap; }
.lxw-row.on { border-color: var(--accent); background: var(--accent-dim); }
.lxw-row input[type=radio] { accent-color: var(--accent); flex: none; }
.lxw-main { display: flex; flex-direction: column; min-width: 140px; flex: 1; }
.lxw-main code { font-size: 13px; font-weight: 700; }
.lxw-hint { font-size: 12px; color: var(--muted); }
.lxw-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.lxw-amt { width: 72px; padding: 4px 6px; border: 1px solid var(--border); border-radius: 8px; font-size: 12.5px; background: var(--bg-2, #fff); color: var(--text); }
.lxw-mini { font-size: 12px; padding: 4px 8px; border: 1px solid var(--border); border-radius: 8px; background: transparent; color: var(--text); cursor: pointer; }
.lxw-link { font: inherit; font-size: 12px; font-weight: 700; color: var(--accent); background: none; border: none; padding: 0; cursor: pointer; }
.lxw-link:hover { text-decoration: underline; }
.lxw-mini:hover { border-color: var(--accent); }
.lxw-mini:disabled { opacity: .5; cursor: not-allowed; }
.lxw-empty { font-size: 12.5px; color: var(--muted); }
.lxw-private { border-style: dashed; }
.lxw-cn { width: 100%; font-size: 12px; color: var(--muted); line-height: 1.4; }
.lxw-cn:empty { display: none; }
.lxw-cn.good { color: var(--green); }
.lxw-cn.bad { color: var(--danger); }
.lxw-cn.warn { color: var(--amber); }
.lxw-amt:disabled { opacity: .5; }
.lxw-gens { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.lxw-err { margin-top: 8px; font-size: 12px; color: var(--danger); }
.lxw-chain { display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: .04em; padding: 1px 6px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); vertical-align: middle; }
.lxw-chain.is-evm { color: var(--amber); border-color: var(--amber); }
.lxw-amt-wrap { display: inline-flex; align-items: center; gap: 4px; }
.lxw-unit { font-size: 11px; color: var(--muted); }

.lxp-rows { margin-top: 16px; border-top: 1px solid var(--border); }
.lxp-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--border); }
.lxp-row-k { font-size: 13px; color: var(--muted); }
.lxp-row-v { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.lxp-row-v.is-muted { color: var(--faint); font-weight: 500; }
.lxp-row-v a.lxp-link { color: var(--accent); text-decoration: none; display: inline-block; max-width: 210px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.lxp-row-v a.lxp-link:hover { text-decoration: underline; }
.lxp-market.is-stock { color: var(--accent); }
.lxp-hint { font-size: 12.5px; line-height: 1.5; color: var(--muted); margin: 14px 0 0; }

/* ---------------- right-column tabs (Preview | Pons) ---------------- */
.lx-tabs { display: flex; gap: 4px; padding: 4px; margin-bottom: 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--bg-2); }
.lx-tab {
  flex: 1; height: 34px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--muted);
  transition: color .15s ease, background .15s ease;
}
.lx-tab:hover { color: var(--text); }
.lx-tab.active { color: var(--accent-ink); background: var(--accent); }
.lx-pane.hidden { display: none; }

/* ---------------- Pons stream ---------------- */
.lx-pons { display: flex; flex-direction: column; }
.lx-pons-head { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--faint); margin-bottom: 12px; }
.lx-pons-head span { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--faint); }
.lx-pons-list { display: flex; flex-direction: column; gap: 8px; max-height: calc(100vh - 200px); overflow-y: auto; padding-right: 4px; }
.lx-pons-list::-webkit-scrollbar { width: 8px; }
.lx-pons-list::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 8px; }
.lx-pons-card {
  display: flex; align-items: center; gap: 12px; padding: 10px;
  border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--bg-elev);
  transition: border-color .15s ease;
}
.lx-pons-card:hover { border-color: var(--border-2); }
.lx-pons-img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; flex: 0 0 auto; background: var(--bg-2); border: 1px solid var(--border); }
.lx-pons-img.broken { visibility: hidden; }
.lx-pons-meta { flex: 1; min-width: 0; }
.lx-pons-sym { font-size: 14px; font-weight: 800; line-height: 1.2; }
.lx-pons-name { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lx-pons-stats { font-size: 11.5px; color: var(--faint); margin-top: 2px; font-variant-numeric: tabular-nums; }
.lx-pons-copy {
  flex: 0 0 auto; height: 30px; padding: 0 14px; border-radius: 999px; font-size: 12.5px; font-weight: 800;
  color: var(--accent); border: 1px solid var(--accent-dim); background: transparent; transition: all .13s ease;
}
.lx-pons-copy:hover { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.lx-pons-state { color: var(--faint); font-size: 14px; padding: 24px 8px; text-align: center; }

/* ---------------- responsive ---------------- */
/* Phone tab bar (js/components/launch-page.js wireTabs): hidden on desktop. */
.lx-tabs { display: none; }
@media (max-width: 900px) {
  /* stacked: every panel full width, in the user's order; nothing pins */
  .lx-launch { flex-direction: column; flex-wrap: nowrap; gap: 16px; padding-top: 14px; }
  /* tabs: one section at a time, the bar docked at the bottom like a native app */
  .lx-launch.has-tabs { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .lx-launch.has-tabs .pnl[data-tab-hidden] { display: none; }
  .lx-launch.has-tabs .lx-toolbar { display: none; }
  .lx-launch.has-tabs .pnl-grip, .lx-launch.has-tabs .pnl-min { display: none; }
  .lx-launch.has-tabs .pnl { border-radius: 16px; }
  .lx-launch.has-tabs .lx-tabs {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--bg-2) 88%, transparent);
    backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
    border-top: 1px solid var(--border);
  }
  .lx-tab {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 6px 2px 4px; border: none; background: transparent; color: var(--faint);
    font-size: 10.5px; font-weight: 700; letter-spacing: .01em; border-radius: 12px;
    transition: color .15s, transform .1s;
  }
  .lx-tab[hidden] { display: none; }
  .lx-tab:active { transform: scale(.94); }
  .lx-tab[aria-pressed="true"] { color: var(--accent); }
  .lx-tab svg { width: 24px; height: 24px; }
  .pnl, .pnl-rail, .pnl.is-collapsed, .pnl-auto, .pnl-recent, .pnl-transfer { flex: none; width: 100%; max-width: none; }
  /* Stacked: the transfer column always comes first, whatever the saved order (the toolbar sits at -1). */
  .pnl-transfer { order: -2 !important; }
  .pnl-preview, .pnl-launch { position: static; }
  .pnl.drop-before { box-shadow: 0 -4px 0 0 var(--accent), 0 0 12px var(--accent), var(--shadow); }
  .pnl.drop-after { box-shadow: 0 4px 0 0 var(--accent), 0 0 12px var(--accent), var(--shadow); }
  .lxp-card { padding: 18px; }
  .lx-launch:not(.preview-small) .lxp-img { max-width: 200px; margin-left: auto; margin-right: auto; }
}
@media (max-width: 560px) {
  .lx-gate-title { font-size: 40px; }
  .lx-form-mount .lc-launch { height: 50px; }
}

/* ---------------- "Launch on" chain toggle (Solana | Robinhood Chain) ---------------- */
.lc-chain-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lc-chain-btn {
  display: flex; flex-direction: column; align-items: flex-start; gap: 3px;
  padding: 12px 14px; text-align: left; border-radius: var(--r-sm);
  border: 1px solid var(--border); background: var(--bg-input); color: var(--muted);
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.lc-chain-btn:hover { border-color: var(--border-2); color: var(--text); }
.lc-chain-btn.active { border-color: var(--accent); background: var(--accent-dim); color: var(--text); box-shadow: 0 0 0 1px var(--accent) inset; }
.lc-chain-name { font-size: 14px; font-weight: 800; }
.lc-chain-sub { font-size: 12px; color: var(--faint); }
.lc-chain-btn.active .lc-chain-sub { color: var(--muted); }
@media (max-width: 480px) { .lc-chain-toggle { grid-template-columns: 1fr; } }

/* ---------------- "Fund with SOL" panel (Robinhood Chain gas) ---------------- */
.lc-fund {
  border: 1px solid rgba(62, 232, 127, 0.35); border-radius: var(--r);
  background: linear-gradient(180deg, rgba(62, 232, 127, 0.08), var(--bg-2));
  padding: 16px 18px; margin: 4px 0 8px;
}
.lc-fund.hidden { display: none; }
.lc-fund-head { font-size: 15px; font-weight: 800; margin-bottom: 6px; }
.lc-fund-sub { font-size: 13.5px; line-height: 1.5; color: var(--muted); margin: 0 0 12px; }
.lc-fund-sub b { color: var(--text); font-variant-numeric: tabular-nums; }
.lc-fund-addr { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 13px; }
.lc-fund-addr-k { color: var(--faint); font-weight: 600; }
.lc-fund-copy {
  display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px;
  border-radius: 999px; border: 1px solid var(--border-2); color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px;
}
.lc-fund-copy:hover { border-color: var(--accent); }
.lc-fund-copy-hint { font-family: var(--font); font-size: 11px; color: var(--faint); }
.lc-fund-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.lc-fund-btn {
  border-radius: 999px; font-weight: 800; color: var(--accent-ink); background: var(--accent);
  box-shadow: 0 10px 28px -12px var(--accent);
}
.lc-fund-btn:hover:not(:disabled) { background: var(--accent-2); }
.lc-fund-alt { font-size: 13px; color: var(--muted); }
.lc-fund-alt:hover { color: var(--accent); }
.lc-fund-status { margin-top: 12px; font-size: 13px; color: var(--muted); line-height: 1.45; }
.lc-fund-status.hidden { display: none; }

/* EVM wallet chip in the top bar (second dot = Robinhood Chain) */
.lx-wallet-dot-evm { background: #b48cff; box-shadow: 0 0 8px #b48cff; }

/* ---------------- top-bar page nav (phones) ---------------- */
.lx-opnav { display: flex; gap: 2px; padding: 3px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg-2); }
.lx-opnav[hidden] { display: none; }
.lx-opnav a { height: 30px; padding: 0 11px; display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: var(--muted); text-decoration: none; white-space: nowrap; }
.lx-opnav a[hidden] { display: none; }
.lx-opnav a svg { width: 16px; height: 16px; fill: none; }
.lx-opnav a:hover { color: var(--text); background: var(--hover); }
.lx-opnav a.active { color: var(--accent-ink); background: var(--accent); }
@media (max-width: 760px) { .lx-opnav-link-label { display: none; } .lx-opnav a { padding: 0 9px; } }

/* ---------------- sidebar (desktop): brand · pages · account + theme ---------------- */
.app-shell.has-sidebar { display: flex; align-items: flex-start; }
.lx-frame { flex: 1 1 auto; min-width: 0; }
.lx-sidebar {
  position: sticky; top: 0; flex: 0 0 236px; height: 100dvh; box-sizing: border-box;
  display: flex; flex-direction: column; gap: 6px; padding: 14px 12px 12px;
  border-right: 1px solid var(--border); background: var(--topbar-bg);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.lx-side-brand { padding: 6px 10px 14px; }
.lx-side-nav { display: flex; flex-direction: column; gap: 2px; }
.lx-side-link {
  display: flex; align-items: center; gap: 14px; height: 46px; padding: 0 14px; border-radius: 999px;
  font-size: 16px; font-weight: 700; color: var(--text); text-decoration: none; white-space: nowrap;
}
.lx-side-link[hidden] { display: none; }
.lx-side-link svg { width: 24px; height: 24px; flex: none; fill: none; }
.lx-side-link:hover { background: var(--hover); }
.lx-side-link.active { font-weight: 800; }
.lx-side-link.active svg { stroke-width: 2.4; color: var(--accent); }
.lx-side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; padding-top: 10px; border-top: 1px solid var(--border); }
.lx-side-tools { display: flex; justify-content: flex-end; }
.lx-side-account .lx-connect-sm { width: 100%; }
.lx-account.is-side { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 6px 2px; }
.lx-account.is-side .lx-avatar { width: 38px; height: 38px; }
.lx-account-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.lx-account-handle { font-size: 13.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lx-account.is-side .lx-wallet { height: auto; min-height: 26px; padding: 3px 8px; font-size: 11.5px; line-height: 1.25; justify-content: flex-start; flex-wrap: wrap; row-gap: 0; white-space: nowrap; max-width: 100%; }
.lx-account.is-side .lx-wallet-bal { flex-basis: 100%; padding-left: 13px; font-size: 12px; color: var(--text); }
.lx-account.is-side .lx-wallet-bal:not(:empty)::before { content: none; }
.lx-account-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.lx-account.is-side .lx-mylaunches { height: 26px; padding: 0 10px; font-size: 11.5px; }
.lx-account.is-compact { display: flex; align-items: center; gap: 10px; }
.lx-account.is-compact .lx-account-handle { display: none; }
.lx-account.is-compact .lx-account-main { flex-direction: row; gap: 8px; }
.lx-account.is-compact .lx-account-actions { flex-direction: row; }
/* Laptop widths: an icon rail (labels hidden; the account block shows the avatar only) */
@media (min-width: 901px) and (max-width: 1240px) {
  .lx-sidebar { flex-basis: 76px; padding: 14px 10px 12px; align-items: stretch; }
  .lx-side-brand .lx-brand-name, .lx-side-link-label, .lx-account-handle, .lx-account.is-side .lx-wallet, .lx-account.is-side .lx-mylaunches { display: none; }
  .lx-side-brand { justify-content: center; padding: 6px 0 14px; }
  .lx-side-link { justify-content: center; padding: 0; width: 52px; margin: 0 auto; }
  .lx-account.is-side { grid-template-columns: 1fr; justify-items: center; gap: 6px; }
  .lx-account-actions { align-items: center; }
  .lx-side-tools { justify-content: center; }
  .lx-side-account .lx-connect-sm { padding: 0 8px; font-size: 12px; }
}
/* Desktop: the sidebar is the chrome — no top bar, no "back" links; sticky panels start at the top */
@media (min-width: 901px) {
  .lx-topbar { display: none; }
  .lx-frame .lx-settings-takeover .lx-settings-back { display: none; }
  .pnl-preview, .pnl-launch, .lx-dock { top: 16px; }
}
/* Phones: the sidebar folds away; the top bar + the home tab bar are the chrome */
@media (max-width: 900px) {
  .lx-sidebar { display: none; }
  .app-shell.has-sidebar { display: block; }
}

/* ---------------- top-bar nav (Launch | Discover) ---------------- */
.lx-nav { display: flex; gap: 4px; padding: 3px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg-2); }
.lx-nav a { height: 30px; padding: 0 14px; display: inline-flex; align-items: center; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--muted); text-decoration: none; }
.lx-nav a:hover { color: var(--text); }
.lx-nav a.active { color: var(--accent-ink); background: var(--accent); }
@media (max-width: 560px) { .lx-nav a { padding: 0 10px; font-size: 12px; } }

/* ---------------- one-screen shell ---------------- */
/* The Discover rail is a panel inside the launch page now (draggable like the
   rest); the shell is just the stage. Logged out, the gate fills it. */
.lx-shell { display: block; }
.lx-stage { min-width: 0; }
.lx-stage .lx-gate { min-height: calc(100vh - 60px); }

/* ---------- waitlist landing (2026-09-23) ---------- */
.lx-wait { display: flex; flex-direction: column; align-items: center; gap: 10px; width: min(520px, 100%); margin: 0 auto 6px; }
.lx-wait-row { display: flex; gap: 8px; width: 100%; }
.lx-wait-row .lc-input { flex: 1 1 0; min-width: 0; background: var(--bg-input); border: 1px solid var(--border); border-radius: 999px; padding: 12px 16px; }
.lx-wait-status { min-height: 18px; font-size: 13px; color: var(--muted); margin: 0; }
.lx-signin-link { font: inherit; font-size: 13px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; margin-bottom: 12px; }
.lx-signin-link:hover { color: var(--text); }
button.lx-feat { cursor: pointer; }
@media (max-width: 520px) { .lx-wait-row { flex-direction: column; } }
.lx-checking { display: flex; justify-content: center; padding: 40px 0; }
