/* ==========================================================================
   Pountain flows (ui-flows): trade card, token buy card, run badge, flow sheets,
   /app/portfolio and /app/launch. Loads after tokens.css, base.css and shell.css.

   Trade card        .tp (on .card.card-trade)  .tp-amount .tp-unit .tp-lev .tp-go .tp-msg .tp-follow .tp-foot .tp-rule .tp-share
   Token buy card    .tb  .tb-side .tb-title
   Run badge         .rb  .rb-head .rb-main .rb-value .rb-pnl .rb-sub
   Flow sheets       .fl-confirm .fl-total .fl-legs .fl-leg .fl-rows .fl-row .fl-warn .fl-actions .fl-note
                     .fl-loading .fl-done .fl-share .fl-leglinks .fl-steps .fl-amount .fl-seg .fl-lead
   Portfolio         .pf-*        Launch   .ln-*
   ========================================================================== */

/* ---------------------------------------------------------------- trade card */
.tp, .tb { min-width: 0; }
.tp-amount { padding-right: 4px; }
.tp-amount .field-prefix { min-width: 0; }
.tp-unit {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  max-width: 55%;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font: 400 12px/16px var(--mono);
  white-space: nowrap;
  overflow: hidden;
  transition: background-color var(--dur-1), color var(--dur-1);
}
.tp-unit > span { overflow: hidden; text-overflow: ellipsis; }
@media (hover: hover) { .tp-unit:hover { background: var(--hover-wash); color: var(--ink-2); } }
.tp-lev { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.tp-go .icon { margin-right: 2px; }
.tp-msg {
  margin: -4px 0 0;
  font: 400 12px/16px var(--font);
  color: var(--danger-ink);
  overflow-wrap: anywhere;
}
.tp-msg[data-tone="muted"] { color: var(--muted); }
.tp-follow[aria-pressed="true"] { border-color: var(--accent-line); background: var(--accent-wash); color: var(--accent-soft); }
.tp-foot {
  font: 400 11.5px/15px var(--font);
  color: var(--muted);
  overflow-wrap: anywhere;
}
.tp-rule { margin: 0; }
.tp-share { display: flex; align-items: center; gap: 8px; }

/* ---------------------------------------------------------------- token buy */
.tb-title { display: flex; align-items: center; gap: 8px; font: 600 15px/20px var(--font); color: var(--ink); }
.tb-title .icon { color: var(--muted); }
.tb .fl-rows { margin: 0; }

/* ---------------------------------------------------------------- run badge */
.rb { display: flex; flex-direction: column; gap: 8px; padding: 14px 18px; border-radius: var(--radius-xl); }
.rb-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 20px; }
.rb-link { display: inline-flex; align-items: center; gap: 4px; font: 600 13px/18px var(--font); }
@media (max-width: 639.98px) {
  .rb-head { min-height: 40px; }
  .rb-link { min-height: 40px; padding-left: 12px; }
}
.rb-main { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.rb-value { font: 600 20px/26px var(--mono); color: var(--ink); }
.rb-pnl { font: 500 13px/18px var(--mono); }
.rb-sub { font: 400 12px/16px var(--font); color: var(--muted); overflow-wrap: anywhere; }

/* ---------------------------------------------------------------- flow sheets */
.fl-confirm { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.fl-lead { font: 400 14px/20px var(--font); color: var(--ink-2); }
.fl-loading { display: flex; align-items: center; gap: 10px; min-height: 64px; color: var(--muted); font: 400 14px/20px var(--font); }
.fl-total { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px 16px; background: var(--page); border: 1px solid var(--border); border-radius: var(--radius-lg); min-width: 0; }
.fl-total-amt { font: 600 24px/30px var(--mono); color: var(--ink); overflow-wrap: anywhere; }
.fl-total-sub { font: 400 13px/18px var(--font); color: var(--muted); min-height: 18px; }
.fl-legs { list-style: none; margin: 0; padding: 0; border: 1px solid var(--border); border-radius: var(--radius-lg); }
.fl-leg { display: flex; align-items: center; gap: 10px; padding: 10px 14px; min-width: 0; }
.fl-leg + .fl-leg { border-top: 1px solid var(--border); }
.fl-leg-main { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-width: 0; }
.fl-leg-top { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.fl-leg-sym { font: 600 14px/18px var(--font); color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.fl-leg-w { font: 400 12px/16px var(--mono); color: var(--ink-2); white-space: nowrap; }
.fl-leg-sub { font: 400 12px/16px var(--font); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.fl-leg-sub.mono { font-family: var(--mono); }
.fl-leg-out { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex: 0 1 auto; min-width: 0; max-width: 50%; text-align: right; }
.fl-leg-est { font: 500 13px/18px var(--mono); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.fl-leg-out > * { max-width: 100%; }
.fl-leg-main > * { max-width: 100%; }
.fl-leg-state { font: 600 12px/16px var(--font); color: var(--muted); }
.fl-leg-btn { flex: none; min-width: 96px; }
.fl-leg-btn[data-done] { color: var(--up); border-color: rgba(46, 226, 126, 0.3); opacity: 1; }
.fl-empty { padding: 14px; color: var(--muted); font: 400 14px/20px var(--font); }
.fl-rows { margin: 0; display: flex; flex-direction: column; }
.fl-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--border); min-width: 0; }
.fl-row:first-child { border-top: 1px solid var(--border); }
.fl-row dt { flex: none; font: 400 13px/18px var(--font); color: var(--muted); }
.fl-row dd { margin: 0; min-width: 0; text-align: right; font: 400 13px/18px var(--font); color: var(--ink); overflow-wrap: anywhere; }
.fl-row .mono { font-family: var(--mono); font-size: 12.5px; }
.fl-warn { display: flex; gap: 10px; padding: 12px 14px; border: 1px solid rgba(212, 85, 85, 0.35); background: var(--down-wash); border-radius: var(--radius-lg); color: var(--ink-2); font: 400 13px/19px var(--font); }
.fl-warn .icon { flex: none; margin-top: 2px; color: var(--down-ink); }
.fl-warn strong { color: var(--ink); font-weight: 600; }
.fl-actions { display: flex; flex-direction: column; gap: 10px; }
.fl-note { font: 400 12px/17px var(--font); color: var(--muted); }
.fl-seg { width: 100%; }
.fl-amount { width: 100%; }
.fl-amount-conv { flex: none; font: 400 12px/16px var(--mono); color: var(--muted); white-space: nowrap; }
.fl-done { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding-top: 4px; }
.fl-done-icon { color: var(--up); display: flex; }
.fl-done-title { font: 600 20px/26px var(--font); color: var(--ink); margin-top: 4px; }
.fl-done-line { font: 400 14px/20px var(--font); color: var(--ink-2); overflow-wrap: anywhere; }
.fl-done-line .link { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; }
.fl-done .fl-actions { width: 100%; margin-top: 12px; }
.fl-share { display: flex; flex-direction: column; gap: 8px; }
.fl-share-opt { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 0 16px; border: 1px solid var(--border); border-radius: var(--radius-md); font: 600 14px/18px var(--font); color: var(--ink); transition: border-color var(--dur-2), background-color var(--dur-2); }
@media (hover: hover) { .fl-share-opt:hover { border-color: var(--outline-hover); } }
.fl-share-opt .icon { color: var(--ink-2); }
.fl-leglinks { list-style: none; margin: 0; padding: 0; border: 1px solid var(--border); border-radius: var(--radius-lg); }
.fl-leglinks li + li { border-top: 1px solid var(--border); }
.fl-leglink { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 14px; min-width: 0; transition: background-color var(--dur-2); }
@media (hover: hover) { .fl-leglink:hover { background: var(--hover-wash); } }
.fl-leglink-main { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.fl-leglink-sym { font: 600 14px/18px var(--font); color: var(--ink); }
.fl-leglink-name { font: 400 12px/16px var(--font); color: var(--muted); }
.fl-leglink-w { font: 400 12px/16px var(--mono); color: var(--ink-2); }
.fl-leglink > .icon { color: var(--muted); }
.fl-steps { margin: 0; padding: 0 0 0 20px; color: var(--ink-2); font: 400 13px/20px var(--font); }
.fl-steps li.is-done { color: var(--up); }

/* ================================================================ portfolio */
.pf { display: flex; flex-direction: column; gap: 32px; }
.pf-head { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pf-title { font: 600 20px/26px var(--font); letter-spacing: -0.2px; color: var(--ink); }
.pf-sub { font: 400 15px/22px var(--font); color: var(--ink-2); }
.pf-section { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.pf-sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 24px; }
.pf-count { margin-left: 6px; font: 400 10.5px/14px var(--font); letter-spacing: 0; color: var(--ink-2); }

.pf-signin { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; max-width: 420px; width: 100%; margin: 8px auto 0; padding: 32px 24px 24px; }
.pf-signin-art { width: 96px; height: 96px; border-radius: var(--radius-lg); object-fit: cover; border: 1px solid var(--border); }
.pf-signin h2 { font: 600 20px/26px var(--font); color: var(--ink); margin-top: 4px; }
.pf-signin p { font: 400 14px/20px var(--font); color: var(--muted); max-width: 320px; }
.pf-signin .btn { margin-top: 8px; width: 100%; max-width: 320px; }

.pf-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.pf-stat { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; min-width: 0; }
.pf-stat + .pf-stat { border-left: 1px solid var(--border); }
.pf-stat-v { font: 600 18px/24px var(--mono); color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.pf-runs { display: flex; flex-direction: column; gap: 12px; }
.pf-run { padding: 16px; display: flex; flex-direction: column; gap: 14px; scroll-margin-top: 96px; }
.pf-run:target { border-color: var(--accent-line); }
.pf-run-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 44px; border-radius: var(--radius); }
.pf-run-title { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pf-run-name { font: 600 16px/21px var(--font); color: var(--ink); overflow-wrap: anywhere; }
@media (hover: hover) { .pf-run-head:hover .pf-run-name { text-decoration: underline; text-underline-offset: 3px; } }
.pf-run-meta { font: 400 13px/18px var(--font); color: var(--muted); }
.pf-run-foot .link { color: var(--ink-2); }
.pf-run-val { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; min-width: 0; text-align: right; }
.pf-run-value { font: 600 18px/24px var(--mono); color: var(--ink); white-space: nowrap; }
.pf-run-pnl { font: 500 12.5px/16px var(--mono); white-space: nowrap; }
.pf-legs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; }
.pf-leg { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; align-items: center; column-gap: 8px; row-gap: 6px; min-width: 0; }
.pf-leg-sym { font: 600 13px/18px var(--font); color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-leg-w { font: 400 12px/16px var(--mono); color: var(--ink-2); white-space: nowrap; }
.pf-leg-w .t-muted { color: var(--muted); }
.pf-leg.is-drift .pf-leg-w b { color: var(--danger-ink); font-weight: 500; }
.pf-leg-w b { font-weight: 500; color: var(--ink); }
.pf-bar { grid-column: 1 / -1; position: relative; height: 4px; border-radius: 2px; background: var(--border); }
.pf-bar > i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 2px; background: var(--ink-2); max-width: 100%; }
.pf-leg.is-drift .pf-bar > i { background: var(--danger-ink); }
.pf-bar > b { position: absolute; top: -3px; width: 2px; height: 10px; margin-left: -1px; border-radius: 1px; background: var(--ink); }
.pf-run-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.pf-run-actions .btn { flex: 0 0 auto; }
.pf-run-foot { font: 400 12px/16px var(--font); color: var(--muted); }

.pf-note { display: flex; gap: 12px; align-items: flex-start; padding: 16px; font: 400 14px/20px var(--font); color: var(--ink-2); }
.pf-note .icon { flex: none; margin-top: 2px; color: var(--muted); }
.pf-note strong { color: var(--ink); font-weight: 600; }

.pf-list { overflow: hidden; }
.pf-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 16px; min-height: 68px; transition: background-color var(--dur-row) var(--ease-out); }
.pf-row + .pf-row { border-top: 1px solid var(--border); }
@media (hover: hover) { a.pf-row:hover { background: var(--card); } }
.pf-row-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pf-row-name { font: 600 15px/20px var(--font); color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-row-sub { font: 400 13px/18px var(--font); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-row-ret { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; }
.pf-row-ret-v { font: 600 16px/20px var(--font); white-space: nowrap; }
.pf-empty { padding: 20px 16px; font: 400 14px/20px var(--font); color: var(--muted); }
.pf-empty a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }

.pf-earn { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 16px; }
.pf-earn-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pf-earn-v { font: 600 22px/28px var(--mono); color: var(--ink); overflow-wrap: anywhere; }
.pf-earn-sub { font: 400 13px/18px var(--font); color: var(--muted); }
.pf-mine { border-top: 1px solid var(--border); }

.pf-skel { height: 132px; border-radius: var(--radius-lg); }

@media (max-width: 719.98px) {
  .pf-legs { grid-template-columns: minmax(0, 1fr); }
  .pf-run-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pf-run-actions .btn { width: 100%; }
}
@media (max-width: 559.98px) {
  .pf-summary { grid-template-columns: minmax(0, 1fr); }
  .pf-stat + .pf-stat { border-left: 0; border-top: 1px solid var(--border); }
  .pf-stat { flex-direction: row; align-items: baseline; justify-content: space-between; gap: 12px; }
  .pf-run-head { grid-template-columns: auto minmax(0, 1fr); }
  .pf-run-val { grid-column: 1 / -1; flex-direction: row; align-items: baseline; justify-content: space-between; gap: 12px; }
}

/* ================================================================ launch */
.ln { display: flex; flex-direction: column; }
/* the reference launch page uses a 1100 container with 32 px sides (content x 202..1238 at 1440) */
.page.ln { max-width: 1100px; }
@media (min-width: 600px) { .page.ln { padding: 28px 32px 64px; } }
.ln-top { display: grid; grid-template-columns: minmax(0, 594fr) minmax(0, 422fr); gap: 20px; align-items: start; }
.ln-hero {
  position: sticky;
  top: calc(var(--header-h, 76px) + 21px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 479px;
  padding: 36px;
  overflow: hidden;
  isolation: isolate;
  background: #0B130F;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-2xl);
}
.ln-hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; border-radius: 15px; }
.ln-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ln-hero-dim { position: absolute; inset: 0; background: rgba(6, 14, 10, 0.66); }
.ln-hero-body { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; min-width: 0; }
.ln-lockup { display: flex; align-items: center; gap: 8px; height: 22px; }
.ln-lockup img { height: 18px; width: auto; }
.ln-lockup span { font: 600 13px/16px var(--font); letter-spacing: 1.44px; text-transform: uppercase; color: var(--ink); }
.ln-kicker { font: 600 11px/15px var(--font); letter-spacing: 2px; text-transform: uppercase; color: #CDEEDA; } /* #A9D8BC measured 4.06:1 over the hero photo; this clears 4.5 */
.ln-title { font: 600 54px/62px var(--font); letter-spacing: -1.2px; color: var(--ink); overflow-wrap: anywhere; }
.ln-subtitle { font: 400 17px/24px var(--font); color: #D9DCE0; }
.ln-pill { display: inline-flex; align-items: center; min-height: 36px; padding: 8px 12px; background: rgba(5, 12, 8, 0.5); border: 1px solid rgba(228, 228, 228, 0.3); border-radius: var(--radius-xs); font: 600 13px/18px var(--mono); letter-spacing: 0.5px; text-transform: uppercase; color: #E4E4E4; }

.ln-form { min-width: 0; }
.ln-form-head { display: flex; flex-direction: column; gap: 4px; }
.ln-form-title { font: 600 18px/24px var(--font); color: var(--ink); }
.ln-form-sub { font: 400 14px/19px var(--font); color: var(--muted); }
.ln-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; position: relative; }
.ln-field .textarea { font-size: 16px; }
.ln-field .textarea::placeholder { color: var(--muted); }
.ln-meta { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; min-height: 16px; }
.ln-meta .field-help, .ln-meta .field-error { min-width: 0; overflow-wrap: anywhere; }
.ln-count { flex: none; font: 400 11.5px/16px var(--mono); color: var(--muted); }
.ln-count.is-over { color: var(--danger-ink); }
.ln-input { font-size: 16px; }
.ln-slug { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; padding: 10px 12px; border: 1px dashed var(--border); border-radius: var(--radius); min-width: 0; }
.ln-slug-url { font: 400 12px/16px var(--mono); color: var(--muted); overflow-wrap: anywhere; min-width: 0; }
.ln-slug-url b { color: var(--ink); font-weight: 500; }
.ln-slug-state { display: inline-flex; align-items: center; gap: 6px; font: 600 12px/16px var(--font); color: var(--muted); white-space: nowrap; }
.ln-slug-state[data-tone="ok"] { color: var(--up); }
.ln-slug-state[data-tone="bad"] { color: var(--danger-ink); }

.ln-picker { position: relative; }
/* in the flow, not a popover, and never an inner scroll: it pushes the form down instead of covering
   or clipping anything (launch.js shows at most 6 matches) */
.ln-results {
  margin-top: 6px;
  padding: 4px;
  background: var(--page);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.ln-result { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 6px 10px; border-radius: var(--radius); text-align: left; }
.ln-result[aria-selected="true"], .ln-result:focus-visible { background: var(--elevated); outline: none; }
@media (hover: hover) { .ln-result:hover { background: var(--elevated); } }
.ln-result-main { display: flex; flex-direction: column; min-width: 0; }
.ln-result-sym { font: 600 13px/17px var(--font); color: var(--ink); }
.ln-result-name { font: 400 12px/16px var(--font); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ln-result-px { font: 400 12px/16px var(--mono); color: var(--ink-2); white-space: nowrap; }
.ln-result-none { padding: 12px 10px; font: 400 13px/18px var(--font); color: var(--muted); }

.ln-legs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius-md); }
.ln-legs:empty { display: none; }
.ln-leg { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 6px 6px 6px 12px; min-height: 52px; }
.ln-leg + .ln-leg { border-top: 1px solid var(--border); }
.ln-leg-main { display: flex; flex-direction: column; min-width: 0; }
.ln-leg-sym { font: 600 13px/17px var(--font); color: var(--ink); }
.ln-leg-name { font: 400 12px/16px var(--font); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ln-w { display: flex; align-items: center; gap: 2px; width: 76px; height: 42px; padding: 0 8px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--page); }
.ln-w input { width: 100%; min-width: 0; height: 100%; padding: 0; background: transparent; border: 0; outline: 0; text-align: right; font: 500 13px/17px var(--mono); color: var(--ink); }
.ln-w span { font: 400 12px/16px var(--mono); color: var(--muted); }
.ln-w.is-static { border-color: transparent; background: transparent; }
.ln-w:focus-within { border-color: var(--field-focus); }
.ln-rm { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius); color: var(--muted); }
@media (hover: hover) { .ln-rm:hover { background: var(--hover-wash); color: var(--ink); } }
.ln-legs-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; min-width: 0; }
.ln-switch { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; font: 400 13px/18px var(--font); color: var(--ink-2); cursor: pointer; user-select: none; }
.ln-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ln-switch i { position: relative; width: 32px; height: 18px; border-radius: 9px; background: var(--elevated); border: 1px solid var(--border); transition: background-color var(--dur-2); flex: none; }
.ln-switch i::after { content: ''; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--ink-2); transition: transform var(--dur-2) var(--ease-out), background-color var(--dur-2); }
.ln-switch input:checked + i { background: var(--accent); border-color: var(--accent); }
.ln-switch input:checked + i::after { transform: translateX(14px); background: var(--accent-ink); }
.ln-switch input:focus-visible + i { box-shadow: 0 0 0 2px var(--ring); }
.ln-total { font: 400 12px/16px var(--mono); color: var(--muted); }
.ln-total[data-tone="bad"] { color: var(--danger-ink); }
.ln-total[data-tone="ok"] { color: var(--ink-2); }

.ln-bold-help { font: 400 12px/17px var(--font); color: var(--muted); }
.ln-chart { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ln-chart-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.ln-chart-ret { font: 600 15px/20px var(--font); }
.ln-chart-box { position: relative; height: 120px; min-width: 0; border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.ln-chart-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 12px; text-align: center; font: 400 12px/17px var(--font); color: var(--muted); }
.ln-submit { display: flex; flex-direction: column; gap: 10px; }
.ln-go { height: 44px; border-radius: var(--radius-md); font-size: 15px; }
.ln-go .icon { margin-left: 2px; }
.ln-fine { font: 400 11px/17px var(--font); color: var(--muted); }

.ln-fees { margin-top: 32px; display: flex; flex-direction: column; gap: 16px; padding: 24px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-2xl); }
.ln-fees-row { display: flex; align-items: center; gap: 16px; min-width: 0; }
.ln-fees-label { flex: 0 0 160px; font: 600 12px/16px var(--font); letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.ln-fees-list { display: flex; flex-wrap: wrap; gap: 16px 40px; min-width: 0; }
.ln-fee { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ln-fee-v { font: 600 26px/32px var(--mono); color: var(--ink); }
.ln-fee-k { font: 400 12px/16px var(--font); color: var(--muted); }
.ln-fees-copy { padding-top: 16px; border-top: 1px solid var(--border); font: 400 14px/21px var(--font); color: var(--ink-2); }
.ln-small { margin-top: 0; padding: 32px 0 8px; max-width: 760px; font: 400 11px/17px var(--font); color: var(--muted); }

@media (max-width: 879.98px) {
  .ln-top { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .ln-hero { position: relative; top: auto; height: auto; min-height: 332px; padding: 24px; }
  .ln-title { font-size: 38px; line-height: 46px; }
  .ln-fees { margin-top: 24px; padding: 20px; gap: 12px; }
  .ln-fees-row { flex-direction: column; align-items: flex-start; gap: 12px; }
  .ln-fees-label { flex: none; }
  .ln-fees-list { gap: 12px 24px; }
  .ln-fee-v { font-size: 22px; line-height: 27px; }
  .ln-small { padding-top: 24px; }
}
@media (max-width: 599.98px) {
  .ln-form { padding: 20px; }
  .ln-lockup span { font-size: 11px; letter-spacing: 1.3px; }
}
@media (max-width: 359.98px) {
  .ln-title { font-size: 34px; line-height: 40px; }
  .ln-leg { grid-template-columns: 22px minmax(0, 1fr) auto; padding-right: 4px; }
  .ln-leg .ln-rm { grid-column: 3; grid-row: 1; }
  .ln-leg .ln-w { grid-column: 2 / 4; grid-row: 2; justify-self: start; margin-bottom: 4px; }
}
