/* /launch — the coin launcher. Tokens from app.css; nothing here invents a colour. */

.lx-page {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.lx-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.lx-title {
  font-size: var(--fs-h2);
  letter-spacing: -0.01em;
}
/* Prose gets a measure: a lede across a 1600px screen is a line nobody finishes. */
.lx-lede {
  color: var(--ink-2);
  font-size: 14px;
  max-width: 66ch;
  margin-top: 4px;
}

.lx-closed {
  padding: 2.4rem 1.4rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.lx-closed .subnote {
  max-width: 58ch;
}

/* The form and the "what this creates" panel sit side by side, and the panel
   stays in view while the form is filled in. */
.lx-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: 1rem;
  align-items: start;
}

.lx-form,
.lx-preview {
  padding: 1.1rem 1.2rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.lx-preview {
  position: sticky;
  top: calc(var(--topbar-h, 60px) + 12px);
}

.lx-h2 {
  font-size: var(--fs-micro);
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 4px;
}
.lx-h2:first-child {
  margin-top: 0;
}

.lx-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.lx-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  position: relative;
}
.lx-label {
  font-size: var(--fs-micro);
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--ink-3);
}
.lx-hint {
  color: var(--ink-3);
  font-size: 12px;
  line-height: 1.5;
}
.lx-mut {
  color: var(--ink-3);
}

.lx-input {
  background: var(--panel);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  color: var(--text);
  font-family: var(--f-mono);
  font-size: 15px;
  padding: 10px 12px;
  width: 100%;
  min-height: 44px;
}
.lx-input.sans {
  font-family: var(--f-sans);
}
.lx-input:focus-visible {
  border-color: var(--green);
  outline: none;
}
.lx-input::placeholder {
  color: var(--ink-3);
  font-size: 13px;
  letter-spacing: var(--track);
}

/* --- the pair picker ------------------------------------------------- */

.lx-quick {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.lx-chip {
  background: none;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  color: var(--ink-2);
  cursor: pointer;
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: var(--track);
  min-height: 40px;
  padding: 0 14px;
}
.lx-chip.on {
  background: var(--green);
  border-color: var(--green);
  color: var(--on-green);
  font-weight: 700;
}
/* The stock row. These are the point of the launchpad, so they get a logo and
   sit on the surface rather than behind the search field. */
.lx-stocks {
  gap: 6px;
}
.lx-chip.lx-stock {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 11px 0 8px;
}
.lx-chip.lx-stock .tok-ico {
  border-radius: 50%;
  flex: 0 0 auto;
}
/* The chain spells some of these lowercase - "amc", "gld". A ticker is a ticker;
   uppercasing it here is presentation only and leaves the symbol itself alone. */
.lx-chip.lx-stock span {
  text-transform: uppercase;
}
/* The logo is a real company mark; a green wash over it would make it unreadable,
   so the selected state moves to the border and the label. */
.lx-chip.lx-stock.on {
  background: var(--green-dim);
  border-color: var(--green);
  color: var(--ink-bright);
}

/* Only rendered for a pair that is NOT on a chip, i.e. one typed or pasted in. */
.lx-chosen {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 13px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lx-drop {
  position: absolute;
  z-index: 40;
  left: 0;
  right: 0;
  top: 100%;
  margin-top: 4px;
  max-height: 320px;
  overflow-y: auto;
  background: var(--raised);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
}
.lx-hit {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  cursor: pointer;
  padding: 9px 12px;
  text-align: left;
  min-height: 44px;
}
.lx-hit:last-child {
  border-bottom: 0;
}
.lx-hit:hover {
  background: var(--raised);
}
.lx-hit-sym {
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: 13px;
}
.lx-hit-name,
.lx-hit-addr {
  color: var(--ink-3);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lx-hit-addr {
  font-family: var(--f-mono);
}
.lx-hit-none {
  color: var(--ink-3);
  font-size: 13px;
  padding: 12px;
}

/* --- segmented controls ---------------------------------------------- */

.lx-seg {
  display: flex;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  overflow: hidden;
}
.lx-segbtn {
  background: none;
  border: 0;
  border-right: 1px solid var(--line-2);
  color: var(--ink-2);
  cursor: pointer;
  flex: 1;
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: var(--track);
  min-height: 44px;
  padding: 0 10px;
}
.lx-segbtn:last-child {
  border-right: 0;
}
.lx-segbtn.on {
  background: var(--green);
  color: var(--on-green);
  font-weight: 700;
}

/* --- the preview ------------------------------------------------------ */

.lx-rows {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lx-rows li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
  font-size: 14px;
}
.lx-rows span {
  color: var(--ink-2);
  flex: 0 0 auto;
}
.lx-rows b {
  font-family: var(--f-mono);
  text-align: right;
  color: var(--ink-bright);
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.lx-rows i {
  color: var(--ink-3);
  font-family: var(--f-sans);
  font-size: 12px;
  font-style: normal;
  line-height: 1.4;
}

.lx-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.5;
  cursor: pointer;
}
.lx-check input {
  accent-color: var(--green);
  margin-top: 2px;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}
.lx-check em {
  display: block;
  color: var(--ink-3);
  font-size: 12px;
  font-style: normal;
  margin-top: 2px;
}

.lx-issues {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--neg);
  font-size: 13px;
}
.lx-issues li {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  line-height: 1.5;
}
.lx-issues svg {
  flex: 0 0 auto;
  margin-top: 3px;
}

.lx-go {
  width: 100%;
  min-height: 46px;
}
.lx-fine {
  color: var(--ink-3);
  font-size: 12px;
  line-height: 1.55;
}

/* The card that appears after a launch: what was made, and where its LP can go. */
.lx-done {
  padding: 1.1rem 1.2rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-color: var(--green-line);
  background: var(--green-tint);
}
.lx-done .lx-fine {
  font-size: 13px;
  max-width: 74ch;
}
.lx-done a {
  color: var(--green);
}

/* --- tabs and the explorer ------------------------------------------- */

.lx-tabs {
  align-self: flex-start;
  max-width: 100%;
}
.lx-tabs .lx-segbtn {
  flex: 0 0 auto;
  padding: 0 20px;
}

.lx-explore-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}
.lx-sortseg {
  flex: 0 0 auto;
}
.lx-sortseg .lx-segbtn {
  flex: 0 0 auto;
  padding: 0 14px;
}
.lx-nohits {
  padding: 14px 0 6px;
}
.lx-more {
  align-self: center;
  margin: 6px 0 12px;
  min-height: 44px;
}
.lx-empty {
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 1.3rem;
}
.lx-empty .subnote {
  max-width: 62ch;
}

@media (max-width: 720px) {
  .lx-explore-bar {
    grid-template-columns: 1fr;
  }
  .lx-sortseg .lx-segbtn {
    flex: 1 1 auto;
  }
  .lx-tabs {
    align-self: stretch;
  }
  .lx-tabs .lx-segbtn {
    flex: 1 1 auto;
    padding: 0 10px;
  }
}

/* --- the board -------------------------------------------------------- */

.lx-board {
  padding: 1.1rem 1.2rem 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lx-board-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  font-size: 13px;
}

.lx-rows-head,
.lx-row {
  display: grid;
  grid-template-columns:
    minmax(0, 1.6fr) minmax(0, 0.7fr) minmax(0, 0.9fr) minmax(0, 0.8fr)
    minmax(0, 1fr) minmax(0, 0.6fr) minmax(0, 0.8fr) minmax(0, 0.6fr);
  align-items: center;
  gap: 10px;
}
.lx-rows-head {
  border-bottom: 1px solid var(--line-2);
  color: var(--ink-3);
  font-size: var(--fs-micro);
  letter-spacing: var(--track);
  padding-bottom: 8px;
  text-transform: uppercase;
}
.lx-row {
  border-bottom: 1px solid var(--line);
  color: var(--text);
  min-height: 56px;
  text-decoration: none;
}
.lx-row:hover {
  background: var(--raised);
}
.lx-row-id {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.lx-row-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.lx-row-text b {
  font-family: var(--f-mono);
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lx-row-text .lx-mut {
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* Every cell clips rather than pushes its neighbour: a legal 16-byte ticker
   would otherwise overprint the price column. */
.lx-row-pair,
.lx-row-num {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lx-row-pair {
  color: var(--ink-3);
  font-family: var(--f-mono);
  font-size: 13px;
}
.lx-row-num {
  font-family: var(--f-mono);
  font-size: 13px;
  text-align: right;
}
.lx-row-num.pos {
  color: var(--pos);
}
.lx-row-num.neg {
  color: var(--neg);
}
/* The pill is centred in its cell, so its header has to be too - otherwise a
   left-aligned label crowds the right-aligned "In pool" beside it. */
.lx-row-mid {
  text-align: center;
}
.lx-row-tag {
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--ink-3);
  font-size: var(--fs-micro);
  letter-spacing: var(--track);
  padding: 3px 9px;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  justify-self: center;
}
.lx-row-tag.ok {
  border-color: var(--green);
  color: var(--green);
}

/* Shed columns rather than let the board scroll sideways. The phone keeps the
   coin, its pair, the price and whether the liquidity can be pulled — which is
   what the row is actually read for. */
@media (max-width: 1180px) {
  .lx-grid {
    grid-template-columns: 1fr;
  }
  .lx-preview {
    position: static;
  }
}
@media (max-width: 1024px) {
  .lx-hide-md {
    display: none;
  }
  .lx-rows-head,
  .lx-row {
    grid-template-columns:
      minmax(0, 1.6fr) minmax(0, 0.7fr) minmax(0, 0.9fr) minmax(0, 0.8fr)
      minmax(0, 1fr) minmax(0, 0.8fr) minmax(0, 0.6fr);
  }
}
@media (max-width: 720px) {
  .lx-hide-sm {
    display: none;
  }
  .lx-rows-head,
  .lx-row {
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 0.7fr) minmax(0, 1fr) minmax(0, 0.8fr) auto;
  }
  .lx-two {
    grid-template-columns: 1fr;
  }
  .lx-rows li {
    flex-direction: column;
    gap: 2px;
  }
  .lx-rows b {
    text-align: left;
    align-items: flex-start;
  }
}
