/* Elysium launchpad app shell (pons-style layout). Light by default, dark via [data-theme=dark]. */

:root[data-theme="light"] {
  color-scheme: light;
  --canvas: #f4f4f2;
  --surface: #ffffff;
  --card: #f1f1ee;
  --control: #e9e9e5;
  --ink: #0f1712;
  --ink-secondary: #3a4640;
  --ink-muted: #6a746e;
  --ink-faint: #9aa29d;
  --line: rgba(15, 23, 18, .09);
  --line-light: rgba(15, 23, 18, .06);
  --hover: rgba(15, 23, 18, .045);
  --accent: #2563eb;
  --brand: #23d6a3;
  --brand-fg: #04181c;
  --up: #12a150;
  --down: #e5484d;
  --shadow: 0 1px 2px rgba(15, 23, 18, .04), 0 8px 28px rgba(15, 23, 18, .06);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --brand: #97fce4;
  --brand-fg: #04181c;
  --up: #3ccf91;
  --down: #ff6b6b;
  --shadow: 0 0 0 1px var(--line-light), 0 8px 24px rgba(0, 0, 0, .45);
}
.app-shell { background: var(--canvas); background-image: none; display: block; font-size: 14px; letter-spacing: -.1px; }
.app-shell .stat, .app-shell .card, .app-shell .table-card, .app-shell .chart-card { box-shadow: var(--shadow); }

/* ---------- sidebar ---------- */
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: 236px; z-index: 30; display: flex; flex-direction: column; gap: 14px;
  padding: 18px 14px; background: var(--canvas); border-right: 1px solid var(--line-light);
}
.sb-brand { display: flex; flex-direction: column; gap: 10px; padding: 0 6px; }
.sb-brand .logo { color: var(--ink); }
.sb-brand .logo svg { width: 132px; }
.sb-module { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; color: var(--ink); }
.sb-search {
  display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 10px; border-radius: 10px;
  background: var(--control); color: var(--ink-muted);
}
.sb-search input { all: unset; flex: 1; min-width: 0; color: var(--ink); font-size: 13px; }
.sb-search kbd { font: 11px/16px var(--font-text); padding: 0 6px; border-radius: 5px; box-shadow: 0 0 0 1px var(--line); color: var(--ink-muted); }
.sb-nav { display: grid; gap: 2px; }
.sb-nav a, .sb-theme, .sb-x {
  all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 10px; border-radius: 10px;
  color: var(--ink-secondary); font-weight: 500; cursor: pointer; position: relative;
}
.sb-nav a:hover, .sb-theme:hover, .sb-x:hover { background: var(--hover); color: var(--ink); }
.sb-nav a[aria-current="page"] { background: var(--control); color: var(--ink); }
.sb-nav a[aria-current="page"]::before { content: ""; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--brand); }
.sb-foot { margin-top: auto; display: grid; gap: 4px; }
.sb-switch { margin-left: auto; width: 34px; height: 20px; border-radius: 9999px; background: var(--control); position: relative; box-shadow: inset 0 0 0 1px var(--line); }
.sb-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--ink-muted); transition: transform .15s; }
:root[data-theme="dark"] .sb-switch::after { transform: translateX(14px); background: var(--brand); }
.sb-x { font-size: 12px; color: var(--ink-muted); height: 30px; }
.sb-x svg { width: 12px; height: 12px; }
.sidebar .wallet { margin: 4px 0; }
.sidebar .wallet-btn { width: 100%; justify-content: center; height: 40px; }
.sidebar .wallet-menu { top: auto; bottom: calc(100% + 8px); left: 0; right: auto; }
.sb-add .add-chain { width: 100%; justify-content: flex-start; height: 34px; background: transparent; box-shadow: 0 0 0 1px var(--line); }
.app-main { margin-left: 236px; padding: 34px 40px 80px; max-width: 1240px; min-height: 100vh; }

/* ---------- shared ---------- */
.app-shell h1.page-title { font-size: 46px; line-height: 52px; font-weight: 700; letter-spacing: -1.6px; margin: 0; font-family: var(--font-text); }
.app-shell .btn { color: var(--ink); background: var(--surface); box-shadow: 0 0 0 1px var(--line); border: 0; cursor: pointer; font: inherit; font-weight: 600; }
.app-shell .btn:hover { background: var(--card); }
.app-shell .btn-primary { background: var(--brand); color: var(--brand-fg); box-shadow: none; }
.app-shell .btn-primary:hover { background: var(--brand); filter: brightness(.95); }
.app-shell .btn[disabled] { opacity: .5; cursor: not-allowed; }
.up { color: var(--up); }
.down { color: var(--down); }
.muted { color: var(--ink-muted); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 9999px; background: var(--control); font-size: 12px; font-weight: 500; color: var(--ink-secondary); white-space: nowrap; }
.pill img { width: 14px; height: 14px; border-radius: 50%; }
.notice { padding: 12px 14px; border-radius: 12px; background: var(--card); color: var(--ink-secondary); font-size: 13px; line-height: 19px; }
.notice.warn { background: color-mix(in srgb, #f5a524 14%, transparent); color: var(--ink); }
.empty-state { padding: 48px 20px; text-align: center; color: var(--ink-muted); }
.empty-state b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 6px; }

/* token image: uploaded logo, or a letter tile tinted from the address */
.timg { --size: 40px; position: relative; flex: none; width: var(--size); height: var(--size); border-radius: calc(var(--size) * .22); overflow: hidden;
  display: grid; place-items: center; font-weight: 700; font-size: calc(var(--size) * .42); color: hsl(var(--hue) 70% 92%);
  background: linear-gradient(140deg, hsl(var(--hue) 60% 48%), hsl(calc(var(--hue) + 40) 65% 28%)); }
.timg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- launches (home) ---------- */
.lp-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.lp-head .btn-primary { height: 44px; padding: 0 22px; border-radius: 12px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin: 0 0 14px; }
.section-head h2 { margin: 0; font-size: 22px; letter-spacing: -.6px; font-weight: 700; }
.arrows { display: flex; gap: 8px; }
.arrows button { all: unset; cursor: pointer; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 0 0 1px var(--line); color: var(--ink-secondary); background: var(--surface); }
.arrows button:hover { color: var(--ink); }
.trending { display: grid; grid-auto-flow: column; grid-auto-columns: 184px; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; margin-bottom: 34px; scrollbar-width: none; }
.trending::-webkit-scrollbar { display: none; }
.tr-card { scroll-snap-align: start; text-decoration: none; display: grid; gap: 8px; }
.tr-card .timg { --size: 184px; border-radius: 18px; font-size: 64px; transition: transform .15s; }
.tr-card:hover .timg { transform: translateY(-2px); }
.tr-name { display: flex; gap: 6px; font-weight: 600; font-size: 15px; min-width: 0; }
.tr-name span:first-child { color: var(--ink-muted); }
.tr-name span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr-mc { font-size: 22px; font-weight: 700; letter-spacing: -.6px; display: flex; align-items: baseline; gap: 6px; }
.tr-mc small { font-size: 12px; font-weight: 500; letter-spacing: 0; }

.lp-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.lp-tabs { display: flex; gap: 18px; overflow-x: auto; scrollbar-width: none; }
.lp-tabs button { all: unset; cursor: pointer; padding: 12px 0; font-size: 15px; font-weight: 500; color: var(--ink-secondary); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.lp-tabs button[aria-selected="true"] { color: var(--ink); border-color: var(--ink); }
.lp-filters { display: flex; gap: 8px; align-items: center; padding: 6px 0; }
.lp-filters select { height: 34px; padding: 0 30px 0 12px; border-radius: 9999px; border: 0; background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--line); font: inherit; font-size: 13px; appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 15px) 15px, calc(100% - 10px) 15px; background-size: 5px 5px; background-repeat: no-repeat; }
.seg { display: inline-flex; padding: 3px; border-radius: 9999px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.seg button { all: unset; cursor: pointer; padding: 5px 9px; border-radius: 9999px; color: var(--ink-muted); display: grid; place-items: center; font-size: 13px; font-weight: 500; }
.seg button[aria-selected="true"] { background: var(--control); color: var(--ink); }

.lp-table { width: 100%; border-collapse: collapse; }
.lp-table th { text-align: left; font-size: 12px; font-weight: 500; color: var(--ink-muted); padding: 14px 10px; border-bottom: 1px solid var(--line-light); }
.lp-table th.num, .lp-table td.num { text-align: right; }
.lp-table td { padding: 12px 10px; border-bottom: 1px solid var(--line-light); vertical-align: middle; }
.lp-table tbody tr { cursor: pointer; }
.lp-table tbody tr:hover td { background: var(--hover); }
.lp-token { display: flex; align-items: center; gap: 14px; text-decoration: none; min-width: 0; }
.lp-token .timg { --size: 40px; }
.lp-token b { font-size: 16px; font-weight: 600; }
.lp-token .sym { color: var(--ink-muted); font-size: 14px; margin-left: 6px; }
.lp-sub { display: flex; gap: 10px; align-items: center; color: var(--ink-muted); font-size: 12px; margin-top: 3px; flex-wrap: wrap; }
.lp-sub .src { padding: 1px 7px; border-radius: 6px; background: var(--control); font-size: 11px; }
.lp-sub .src.ours { background: color-mix(in srgb, var(--brand) 26%, transparent); color: var(--ink); }
.lp-mc { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.spark { display: block; width: 120px; height: 34px; margin-left: auto; }
.spark path { fill: none; stroke-width: 1.6; stroke-linejoin: round; }
.lp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; padding-top: 18px; }
.lp-card { text-decoration: none; display: grid; gap: 10px; padding: 12px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }
.lp-card .timg { --size: 100%; aspect-ratio: 1; height: auto; width: 100%; border-radius: 12px; font-size: 56px; }
.lp-card .row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.progress { height: 6px; border-radius: 9999px; background: var(--control); overflow: hidden; }
.progress i { display: block; height: 100%; border-radius: 9999px; background: var(--brand); }

/* ---------- token page ---------- */
.crumb { color: var(--ink-muted); text-decoration: none; font-size: 13px; }
.crumb:hover { color: var(--ink); }
.tk-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin: 14px 0 26px; }
.tk-id { display: flex; gap: 16px; align-items: center; min-width: 0; }
.tk-id .timg { --size: 72px; border-radius: 18px; }
.tk-title { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.tk-title h1 { font-size: 40px; line-height: 44px; font-weight: 700; letter-spacing: -1.4px; margin: 0; }
.tk-title .sym { font-size: 22px; font-weight: 600; color: var(--ink-muted); }
.tk-meta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; color: var(--ink-muted); font-size: 13px; margin-top: 6px; }
.tk-meta a, .tk-meta button { all: unset; cursor: pointer; color: var(--ink-secondary); }
.tk-meta a:hover, .tk-meta button:hover { color: var(--ink); }
.tk-mc { text-align: right; }
.tk-mc span { display: block; color: var(--ink-muted); font-size: 13px; }
.tk-mc b { display: block; font-size: 36px; line-height: 42px; letter-spacing: -1.2px; }
.tk-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.tk-chart { padding: 0; }
.tk-chart-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.tk-price b { display: block; font-size: 30px; font-weight: 700; letter-spacing: -1px; }
.tk-price small { font-size: 13px; }
.tk-controls { display: flex; gap: 8px; flex-wrap: wrap; }
.chart-box { position: relative; height: 340px; }
.chart-box svg { display: block; width: 100%; height: 100%; }
.chart-box .grid { stroke: var(--line); }
.chart-box .axis { fill: var(--ink-muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.chart-box .line { fill: none; stroke: var(--brand); stroke-width: 2; }
.chart-box .c-up { fill: var(--up); stroke: var(--up); }
.chart-box .c-down { fill: var(--down); stroke: var(--down); }
.chart-box .vol { opacity: .28; }
.chart-box .cross { stroke: var(--ink-faint); stroke-dasharray: 3 3; }
.chart-box .tip { position: absolute; top: 4px; left: 8px; pointer-events: none; font-size: 12px; color: var(--ink-secondary); background: var(--surface); padding: 6px 9px; border-radius: 8px; box-shadow: var(--shadow); white-space: nowrap; }
.chart-box .hit { fill: transparent; cursor: crosshair; }
.chart-box .last { font-size: 11px; font-weight: 600; }
.tk-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 18px 0; }
.tk-stats span { display: block; color: var(--ink-muted); font-size: 13px; }
.tk-stats b { font-size: 22px; letter-spacing: -.6px; font-variant-numeric: tabular-nums; }
.tk-info { display: flex; gap: 40px; flex-wrap: wrap; margin-bottom: 22px; }
.tk-info span { display: block; color: var(--ink-muted); font-size: 13px; }
.tk-info a, .tk-info button { all: unset; cursor: pointer; font-weight: 500; border-bottom: 1px solid var(--ink-faint); }
.tk-about h3 { margin: 0 0 8px; font-size: 16px; }
.tk-about p { margin: 0 0 10px; color: var(--ink-secondary); line-height: 21px; white-space: pre-wrap; overflow-wrap: anywhere; }
.links { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.links a { padding: 6px 12px; border-radius: 9999px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); text-decoration: none; font-size: 13px; font-weight: 500; }
.grad { margin: 0 0 22px; }
.grad .row { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-muted); margin-bottom: 6px; }
.grad .row b { color: var(--ink); }
.tk-tabs { display: flex; gap: 18px; border-bottom: 1px solid var(--line); margin-top: 8px; }
.tk-tabs button { all: unset; cursor: pointer; padding: 10px 0; font-weight: 600; color: var(--ink-muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tk-tabs button[aria-selected="true"] { color: var(--ink); border-color: var(--ink); }
.tk-tabs .count { margin-left: auto; color: var(--ink-muted); font-size: 12px; font-weight: 500; padding: 12px 0; }
.tk-table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.tk-table th { text-align: left; color: var(--ink-muted); font-weight: 500; font-size: 12px; padding: 12px 8px; border-bottom: 1px solid var(--line-light); }
.tk-table td { padding: 10px 8px; border-bottom: 1px solid var(--line-light); }
.tk-table .num { text-align: right; }
.side-buy { color: var(--up); font-weight: 600; }
.side-sell { color: var(--down); font-weight: 600; }

/* trade panel */
.trade { position: sticky; top: 24px; padding: 18px; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); display: grid; gap: 14px; }
.trade-note { font-size: 12px; color: var(--ink-muted); line-height: 17px; }
.trade .seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--card); box-shadow: none; padding: 4px; }
.trade .seg button { justify-content: center; padding: 8px; font-size: 14px; }
.trade .seg button[aria-selected="true"] { background: var(--surface); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.pay { padding: 14px; border-radius: 16px; background: var(--card); display: grid; gap: 8px; }
.pay-top { display: flex; justify-content: space-between; color: var(--ink-muted); font-size: 13px; }
.pay-row { display: flex; align-items: center; gap: 10px; }
.pay-row input { all: unset; flex: 1; min-width: 0; font-size: 30px; font-weight: 600; letter-spacing: -.8px; font-variant-numeric: tabular-nums; }
.pay-row .cur { font-size: 20px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.pay-row .cur img, .pay-row .cur .timg { width: 22px; height: 22px; --size: 22px; border-radius: 50%; }
.chips { display: flex; gap: 6px; }
.chips button { all: unset; cursor: pointer; padding: 4px 12px; border-radius: 9999px; box-shadow: 0 0 0 1px var(--line); font-size: 12px; font-weight: 600; color: var(--ink-muted); }
.chips button:hover { color: var(--ink); background: var(--hover); }
.receive span { display: block; color: var(--ink-muted); font-size: 13px; }
.receive b { font-size: 22px; letter-spacing: -.5px; }
.trade-rows { display: grid; gap: 6px; font-size: 13px; color: var(--ink-muted); }
.trade-rows div { display: flex; justify-content: space-between; gap: 8px; }
.trade-rows b { color: var(--ink); font-weight: 500; }
.trade-rows button { all: unset; cursor: pointer; color: var(--ink); font-weight: 500; border-bottom: 1px dashed var(--ink-faint); }
.trade .btn-primary { height: 50px; border-radius: 14px; justify-content: center; font-size: 15px; }
.trade-msg { font-size: 12px; color: var(--down); min-height: 0; }
.trade-msg:empty { display: none; }

/* ---------- create ---------- */
.create-grid { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 28px; align-items: start; margin-top: 24px; }
.cr-lede { color: var(--ink-secondary); font-size: 15px; line-height: 22px; max-width: 640px; margin: 12px 0 0; }
.cr-card { padding: 24px; border-radius: 24px; background: var(--surface); box-shadow: var(--shadow); }
.steps { display: flex; gap: 18px; margin-bottom: 16px; font-size: 13px; color: var(--ink-muted); }
.steps span { display: inline-flex; align-items: center; gap: 8px; }
.steps i { font-style: normal; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; box-shadow: 0 0 0 1px var(--line); }
.steps .on { color: var(--ink); font-weight: 600; }
.steps .on i { background: var(--ink); color: var(--surface); box-shadow: none; }
.cr-card h2 { margin: 0 0 18px; font-size: 22px; letter-spacing: -.6px; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13px; color: var(--ink-secondary); }
.field input, .field textarea {
  font: inherit; font-size: 15px; color: var(--ink); background: var(--card); border: 0; border-radius: 12px; padding: 12px 14px;
  box-shadow: inset 0 0 0 1px var(--line-light);
}
.field input:focus, .field textarea:focus { outline: none; box-shadow: inset 0 0 0 1px var(--brand); }
.field textarea { min-height: 84px; resize: vertical; }
.field .count { font-size: 12px; color: var(--ink-faint); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.img-pick { display: flex; gap: 16px; align-items: center; margin-bottom: 18px; }
.img-drop { width: 72px; height: 72px; border-radius: 16px; display: grid; place-items: center; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-muted); overflow: hidden; cursor: pointer; }
.img-drop img { width: 100%; height: 100%; object-fit: cover; }
.img-pick small { display: block; color: var(--ink-muted); margin-bottom: 8px; }
.cr-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; }
.cr-actions .btn { height: 46px; padding: 0 26px; border-radius: 12px; }
.cr-actions .btn-primary { min-width: 200px; justify-content: center; }
.econ { display: grid; gap: 10px; margin-bottom: 18px; }
.econ div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-light); font-size: 14px; }
.econ span { color: var(--ink-muted); }
.preview-label { color: var(--ink-muted); font-size: 13px; margin: 0 0 8px; }
.preview { padding: 20px; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); }
.preview-head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.preview-head .timg { --size: 56px; border-radius: 14px; }
.preview-head b { display: block; font-size: 20px; }
.preview-head .pill { margin-left: 6px; }
.preview p { color: var(--ink-secondary); margin: 0 0 14px; overflow-wrap: anywhere; }
.preview dl { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; margin: 0; }
.preview dt { color: var(--ink-muted); font-size: 12px; }
.preview dd { margin: 2px 0 0; font-weight: 500; }

/* ---------- transaction modal ---------- */
.tx-modal { width: min(440px, calc(100vw - 32px)); border: 0; border-radius: 20px; padding: 22px; background: var(--surface); color: var(--ink); box-shadow: 0 24px 64px rgba(0, 0, 0, .35); }
.tx-modal::backdrop { background: rgba(10, 14, 12, .45); }
.tx-modal h3 { margin: 0 0 4px; font-size: 18px; }
.tx-modal > p { margin: 0 0 16px; color: var(--ink-muted); font-size: 13px; }
.tx-steps { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; }
.tx-steps li { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 12px; background: var(--card); font-size: 13px; color: var(--ink-secondary); }
.tx-steps li i { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 12px; background: var(--control); color: var(--ink-muted); }
.tx-steps li.active i { background: var(--brand); color: var(--brand-fg); }
.tx-steps li.done i { background: var(--up); color: #fff; }
.tx-steps li.fail i { background: var(--down); color: #fff; }
.tx-steps b { display: block; color: var(--ink); font-size: 14px; margin-bottom: 2px; }
.tx-steps a { color: var(--ink); }
.tx-actions { display: flex; justify-content: flex-end; gap: 8px; }
.tx-actions .btn { height: 40px; padding: 0 18px; border-radius: 10px; }

/* pending transactions (sidebar) */
.pending-dock { display: grid; gap: 6px; padding: 10px; border-radius: 12px; background: var(--card); font-size: 12px; }
.pending-dock:empty { display: none; }
.pending-dock b { font-size: 12px; }
.pending-dock div { display: flex; justify-content: space-between; gap: 8px; color: var(--ink-muted); }
.pending-dock .ok { color: var(--up); }
.pending-dock .bad { color: var(--down); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .tk-grid, .create-grid { grid-template-columns: minmax(0, 1fr); }
  .trade { position: static; }
  .tk-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .sidebar { position: static; width: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 16px; border-right: 0; border-bottom: 1px solid var(--line-light); }
  .sb-brand { flex-direction: row; align-items: center; gap: 12px; padding: 0; }
  .sb-brand .logo svg { width: 116px; }
  .sb-search { order: 5; flex-basis: 100%; }
  .sb-nav { order: 6; flex-basis: 100%; display: flex; overflow-x: auto; scrollbar-width: none; }
  .sb-nav a { height: 34px; flex: none; }
  .sb-nav a[aria-current="page"]::before { display: none; }
  .sb-foot { margin: 0 0 0 auto; display: flex; align-items: center; gap: 6px; }
  .sb-foot .sb-x, .sb-foot .sb-add, .sb-foot .pending-dock { display: none; }
  .sb-theme span, .sb-theme .sb-switch { display: none; }
  .sb-theme { width: 36px; padding: 0; justify-content: center; }
  .sidebar .wallet-btn { width: auto; height: 36px; }
  .sidebar .wallet-menu { top: calc(100% + 8px); bottom: auto; left: auto; right: 0; }
  .app-main { margin-left: 0; padding: 22px 16px 60px; }
  .app-shell h1.page-title { font-size: 34px; line-height: 40px; }
  .lp-head .btn-primary { height: 40px; padding: 0 16px; }
  .tr-card { grid-template-columns: 1fr; }
  .trending { grid-auto-columns: 148px; }
  .tr-card .timg { --size: 148px; }
  .lp-table .col-graph, .lp-table .col-pair { display: none; }
  .tk-title h1 { font-size: 30px; line-height: 34px; }
  .tk-mc { text-align: left; }
  .tk-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chart-box { height: 260px; }
  .row2, .row3 { grid-template-columns: 1fr; }
  .cr-actions { flex-direction: column-reverse; }
  .cr-actions .btn { width: 100%; justify-content: center; }
}
.trade { grid-template-columns: minmax(0, 1fr); }
.lp-name { text-decoration: none; }
.lp-sub a { color: var(--ink-muted); }
/* The Elysium logomark is white (for dark UIs); on the light theme show it dark. */
:root[data-theme="light"] img[src$="/elysium/brand/elysium.svg"], :root[data-theme="light"] img[src$="/chains/elysium.svg"] { filter: invert(1) brightness(.35); }
.pay { grid-template-columns: minmax(0, 1fr); }
.pay-row input { width: 100%; }
.row2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.row3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field input, .field textarea { width: 100%; min-width: 0; box-sizing: border-box; }
@media (max-width: 860px) { .row2, .row3 { grid-template-columns: minmax(0, 1fr); } }
.tr-card .timg { width: 100%; height: auto; aspect-ratio: 1; }
.tr-card { min-width: 0; }
.tr-mc { flex-wrap: wrap; row-gap: 0; }
.cr-lede .chain-logo { display: inline-block; vertical-align: -3px; margin: 0 2px; }

/* how-it-works box (create page), first-launch empty state, docs */
.how { margin-top: 18px; padding: 20px; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); }
.how h3 { margin: 0 0 10px; font-size: 16px; }
.how ol { margin: 0 0 12px; padding-left: 20px; display: grid; gap: 8px; color: var(--ink-secondary); font-size: 13px; line-height: 19px; }
.how b { color: var(--ink); }
.how a { font-weight: 600; font-size: 13px; }
.first-launch { padding: 48px 24px; text-align: center; border-radius: 24px; background: var(--surface); box-shadow: var(--shadow); margin-top: 18px; }
.first-launch b { display: block; font-size: 22px; letter-spacing: -.5px; margin-bottom: 10px; }
.first-launch p { color: var(--ink-secondary); max-width: 560px; margin: 0 auto 20px; line-height: 21px; }
.first-launch div { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.first-launch .btn { height: 44px; padding: 0 22px; border-radius: 12px; }
.col-vol div { font-weight: 600; }
.doc-toc { display: flex; gap: 8px; flex-wrap: wrap; margin: 22px 0 8px; }
.doc-toc a { padding: 6px 12px; border-radius: 9999px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); text-decoration: none; font-size: 13px; font-weight: 500; }
.doc { max-width: 820px; }
.doc section { padding: 26px 0; border-bottom: 1px solid var(--line-light); scroll-margin-top: 16px; }
.doc h2 { margin: 0 0 12px; font-size: 24px; letter-spacing: -.6px; }
.doc p, .doc li { color: var(--ink-secondary); line-height: 23px; font-size: 15px; }
.doc b { color: var(--ink); }
.doc ol, .doc ul { padding-left: 22px; display: grid; gap: 6px; }
.doc-table { max-width: 620px; margin: 8px 0; }
.doc-table tr.hl td { background: color-mix(in srgb, var(--brand) 18%, transparent); font-weight: 600; }
.doc .kv dd { font-size: 12px; overflow-wrap: anywhere; }
@media (max-width: 860px) { .lp-table .col-vol { display: none; } }

/* ---------- the queue (launches and trades waiting for the next batch) ---------- */
.q-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #f5a524; box-shadow: 0 0 0 4px color-mix(in srgb, #f5a524 22%, transparent); flex: none; }
.queue-panel { padding: 20px 22px; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); margin: 0 0 30px; min-width: 0; }
.queue-panel.empty { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-radius: 14px; color: var(--ink-secondary); font-size: 13px; }
.q-head { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.q-head h2 { margin: 0 0 6px; font-size: 22px; letter-spacing: -.6px; font-weight: 700; display: flex; align-items: center; gap: 12px; }
.q-head p { margin: 0; color: var(--ink-secondary); font-size: 13px; line-height: 19px; max-width: 560px; }
.q-stats { display: flex; gap: 26px; }
.q-stats b { display: block; font-size: 22px; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.q-stats span { color: var(--ink-muted); font-size: 12px; }
.q-launches { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 10px; margin-top: 18px; }
.q-card { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 14px; background: var(--card); text-decoration: none; color: inherit; min-width: 0; }
.q-card:hover { background: var(--control); }
.q-card > div { min-width: 0; }
.q-card b { font-size: 15px; }
.q-card .sym { margin-left: 6px; color: var(--ink-muted); font-size: 13px; }
.q-card .timg { --size: 44px; border-radius: 12px; flex: none; }
.q-sub { color: var(--ink-muted); font-size: 12px; margin-top: 3px; overflow-wrap: anywhere; }
.q-tag { display: inline-block; padding: 1px 7px; border-radius: 9999px; background: var(--control); color: var(--ink-secondary); font-size: 11px; font-weight: 600; }
.q-tag.in { background: color-mix(in srgb, var(--up) 16%, transparent); color: var(--ink); }
.q-hot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.q-label { color: var(--ink-muted); font-size: 12px; font-weight: 600; margin-right: 4px; }
.q-hot a { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px 5px 6px; border-radius: 9999px; background: var(--card); text-decoration: none; color: var(--ink); font-size: 13px; }
.q-hot a:hover { background: var(--control); }
.q-hot a span { color: var(--ink-muted); font-size: 12px; }
.q-hot .timg { --size: 22px; border-radius: 50%; font-size: 11px; }
.lp-sub .src.queued, .q-pill { background: color-mix(in srgb, #f5a524 20%, transparent); color: var(--ink); }
.tk-queue { margin: 0 0 24px; padding: 16px 18px; border-radius: 16px; background: var(--card); min-width: 0; }
.q-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.q-title h3 { margin: 0; font-size: 16px; display: flex; align-items: center; gap: 10px; }
.q-title .count { color: var(--ink-muted); font-size: 13px; }
.tk-queue > p { margin: 8px 0 10px; font-size: 13px; line-height: 19px; }
.tk-queue tr.mine td { background: color-mix(in srgb, var(--brand) 12%, transparent); }
.chart-wait { height: 100%; display: grid; place-content: center; text-align: center; gap: 6px; border-radius: 16px; background: var(--card); padding: 20px; }
.chart-wait b { font-size: 16px; }
.chart-wait span { color: var(--ink-muted); font-size: 13px; max-width: 380px; }
.dock-deliver { all: unset; cursor: pointer; color: var(--accent); font-weight: 600; }
.dock-deliver:hover { text-decoration: underline; }
.seg button:disabled { opacity: .45; cursor: not-allowed; }
@media (max-width: 640px) {
  .queue-panel { padding: 16px; }
  .q-stats { gap: 18px; }
  .q-stats b { font-size: 18px; }
}
