/* Setup and one-tap signing pages (System A, money lane): QLocks, floor, flywheel, add-liquidity, pool fee share, safe
   drops, taps, arb, qWallets. The page modules render the steps; this file lays them on the open floor: one step after
   another on hairlines, the state of each step as a dot-and-text mark, one gold action in view, addresses that wrap. */

.mn-sign-page .mn-top { padding-top: 22px; }
.mn-h1--s { font-size: 34px; }
@media (min-width: 1100px) { .mn-h1--s { font-size: 52px; } .mn-sign-page .mn-top { padding-top: 48px; } }
.mn-lede--2 { margin-top: 6px; }
.mn-sub { max-width: 640px; }

/* ---------- module cards become open sections on hairlines ---------- */
.mn :is(.qlk-card, .qfl-card, .qpfs-step, .qwallet-panel) { margin: 0; padding: 22px 0 24px; border: 0; border-radius: 0; background: none; box-shadow: 0 -1px 0 var(--qa-rule); }
.mn .mn-flow { margin-top: 26px; }
.mn .qlk-card > .qlk-card, .mn .qlk-forms > .qlk-card:first-child { box-shadow: none; padding-top: 0; }
.mn :is(.qlk-card, .qpfs-step, .qwallet-panel, .qfl-card) > h2, .mn .qlk-forms h2 { margin: 0 0 10px; font-size: var(--qa-fs-display-s); line-height: 1.08; font-weight: 800; font-stretch: var(--qa-wd-head); letter-spacing: var(--qa-track-head); }
.mn main :is(p, li) { overflow-wrap: anywhere; }
.mn :is(.qtb-note, .qfl-note, .qal-note, .qpfs-label) { margin: 8px 0; font-size: 14px; line-height: 1.5; color: var(--qa-tx-2); }
.mn .qfl-note[data-tone="bad"], .mn .qfl-status[data-tone="bad"] { color: var(--qa-sell); }
.mn .qfl-status[data-tone="good"] { color: var(--qa-buy); }
.mn :is(.qas-status, .qtx-status, .qxa-status, .qfl-status, .mn-status, #qal-status, #fw-status) { margin: 12px 0 0; font-size: 14px; font-weight: 620; color: var(--qa-tx-2); }
.mn :is(.qas-status, .qtx-status, .qxa-status, .qfl-status, .mn-status):empty { display: none; }
.mn .qtx-alert { display: flex; gap: 8px; align-items: baseline; color: var(--qa-warn); font-weight: 620; }
.mn .qtx-alert::before, .mn .mn-mark::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: currentColor; transform: translateY(-1px); }
.mn .qlk-flash { padding: 12px 0; color: var(--qa-buy); font-weight: 680; }

/* actions: the module's go buttons are the one gold action; small ones are quiet */
.mn main .qtx-mini { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 14px; border: 0; border-radius: var(--qa-r-m); background: var(--qa-wash-2); color: var(--qa-tx); font: inherit; font-size: 14px; font-weight: 720; cursor: pointer; white-space: normal; text-align: center; transition: background-color var(--qa-t-quick) var(--qa-ease), transform var(--qa-t-tap) var(--qa-ease); }
.mn main .qtx-mini:hover { background: var(--qa-rule-2); }
.mn main .qtx-mini:active { transform: scale(.97); }
.mn main .qtx-mini.is-on { color: var(--qa-tx-on-gold); background: var(--qa-gold-metal); }
.mn main .qas-go { min-height: 52px; padding: 0 22px; border-radius: var(--qa-r-btn); font-size: 16px; font-weight: 760; white-space: normal; text-align: center; max-width: 100%; color: var(--qa-tx-on-gold); background: var(--qa-gold-metal); box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 8px 22px -10px rgba(210,173,114,.7); }
.mn main .qas-go:hover { background: var(--qa-gold-metal); filter: brightness(1.05); }
@media (max-width: 560px) { .mn main .qas-go { width: 100%; } }

/* facts: key/value rows on hairlines */
.mn :is(#qsd-root, #qfq-root, .qfl-card, #qft-root, .mn-arb__bot) > dl, .mn .qfl-facts, .mn .qal-balances { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); column-gap: 0; margin: 0 0 14px; }
.mn :is(#qsd-root, #qfq-root, .qfl-card, #qft-root, .mn-arb__bot) > dl > :is(dt, dd), .mn .qfl-facts > :is(dt, dd) { padding: 12px 0; box-shadow: 0 -1px 0 var(--qa-rule); font-size: 14.5px; line-height: 1.45; }
.mn :is(#qsd-root, #qfq-root, .qfl-card, #qft-root, .mn-arb__bot) > dl dt, .mn .qfl-facts dt { padding-right: 18px; color: var(--qa-tx-3); font-weight: 600; }
.mn :is(#qsd-root, #qfq-root, .qfl-card, #qft-root, .mn-arb__bot) > dl dd, .mn .qfl-facts dd { margin: 0; text-align: right; font-weight: 650; overflow-wrap: anywhere; }
@media (max-width: 560px) {
  .mn :is(#qsd-root, #qfq-root, .mn-arb__bot) > dl { grid-template-columns: minmax(0, 1fr); }
  .mn :is(#qsd-root, #qfq-root, .mn-arb__bot) > dl > dd { padding-top: 0; box-shadow: none; text-align: left; color: var(--qa-tx); }
}

/* fields: QLocks and the floor */
.mn :is(.qlk-top, .qtx-row, .qfl-row) { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px 18px; align-items: end; margin: 0 0 6px; }
.mn :is(.qlk-field, .qfl-field) { display: grid; gap: 4px; min-width: 0; padding: 10px 0 6px; }
.mn :is(.qlk-field, .qfl-field) > span { font-size: var(--qa-fs-small); font-weight: 650; color: var(--qa-tx-3); }
.mn :is(.qlk-field, .qfl-field) > small { font-size: 12px; color: var(--qa-tx-3); }
.mn .qfl-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.mn .qlk-top { margin-top: 26px; padding-bottom: 8px; }
.mn .qlk-top > .qtx-mini { align-self: end; margin-bottom: 8px; }
@media (min-width: 760px) {
  .mn .qlk-top { grid-template-columns: minmax(0, 220px) minmax(0, 1fr) auto; }
  .mn :is(.qtx-row, .qfl-row) { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
}

/* lists of locks and grants */
.mn .qtx-locks { display: grid; margin: 4px 0 0; padding: 0; list-style: none; }
.mn .qtx-locks > li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 13px 0; box-shadow: 0 1px 0 var(--qa-rule-row); }
.mn .qtx-locks > li > a { font-size: 16px; font-weight: 760; color: var(--qa-tx); }
.mn .qtx-locks > li > a:hover { color: var(--qa-gold-hi); }
.mn .qtx-meta { font-size: var(--qa-fs-small); color: var(--qa-tx-3); }
.mn .qtx-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.mn .qtx-details > summary { font-size: 14px; }
.mn .qlk-preview { padding: 12px 0; font-size: 14px; color: var(--qa-tx-2); }

/* step states (flywheel checks): a dot that turns green when the check passes */
.mn .mn-checks { display: grid; margin: 6px 0 22px; padding: 0; list-style: none; }
.mn .mn-checks > li { display: grid; grid-template-columns: 22px minmax(0, 1fr); column-gap: 12px; padding: 14px 0; box-shadow: 0 1px 0 var(--qa-rule-row); }
.mn .mn-checks > li::before { content: ""; grid-row: 1 / span 2; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--qa-tx-3); }
.mn .mn-checks > li[data-state="ok"]::before { box-shadow: none; background: var(--qa-buy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.3l2.6 2.6L13 6.5' fill='none' stroke='%2306180e' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }
.mn .mn-checks > li[data-state="bad"]::before { box-shadow: none; background: var(--qa-sell); }
.mn .mn-checks > li b { font-size: 15.5px; font-weight: 740; }
.mn .mn-checks > li span { font-size: 14px; line-height: 1.45; color: var(--qa-tx-2); }
.mn .mn-checks > li[data-state="bad"] span { color: var(--qa-sell); }
.mn .mn-done { margin-top: 14px; font-weight: 650; color: var(--qa-buy); }
.mn .mn-sign__go .qa-fine { margin-top: 14px; }

/* the readable sequence above a multi-step page (qWallets) */
.mn .mn-seq { display: flex; flex-wrap: wrap; gap: 6px 0; margin: 22px 0 0; padding: 0; list-style: none; counter-reset: mn-seq; }
.mn .mn-seq li { counter-increment: mn-seq; display: inline-flex; align-items: center; gap: 8px; padding-right: 12px; font-size: 13.5px; font-weight: 650; color: var(--qa-tx-2); }
.mn .mn-seq li::before { content: counter(mn-seq); width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--qa-gold-wash); color: var(--qa-gold-hi); font-size: 12px; font-weight: 780; }
.mn .mn-seq li + li::after { content: none; }
.mn .mn-seq li:not(:last-child) { margin-right: 4px; box-shadow: inset -1px 0 0 transparent; }

/* plain point lists */
.mn .mn-points { display: grid; gap: 0; margin: 6px 0 0; padding: 0; list-style: none; }
.mn .mn-points > li { position: relative; padding: 12px 0 12px 20px; font-size: 15px; line-height: 1.55; color: var(--qa-tx-2); box-shadow: 0 1px 0 var(--qa-rule-row); }
.mn .mn-points > li::before { content: ""; position: absolute; left: 2px; top: 21px; width: 6px; height: 6px; border-radius: 50%; background: var(--qa-gold); }

@media (prefers-reduced-motion: reduce) {
  .mn main *, .mn main *::before { transition: none !important; }
}
