/* MerryLaunch. Warm, communal, chunky: a warm white page, ink outlines, coral and sunflower.
   One family (Nunito), lining tabular figures everywhere, light theme only. */
:root {
  --cream: #fffdf7; --card: #ffffff; --ink: #2b2118; --ink-2: #5b4a3d; --mute: #8a7868;
  --soft: #f6ead2; --soft-2: #fbf4e6; --line-soft: #e9dcc3;
  --coral: #ff6f61; --sun: #ffc93c; --sky: #4fb3ff; --walnut: #7a4a2a;
  --coral-soft: #ffe3df; --sun-soft: #fff0bf; --walnut-soft: #f1e3d6;
  --up: #e4574a; --down: #7a4a2a;
  --r-card: 20px; --r-btn: 12px; --shadow: 4px 4px 0 var(--ink); --w: 1180px;
  --bunting: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='128' height='32' viewBox='0 0 128 32'%3E%3Cpath d='M0 2C30 11 98 11 128 2' fill='none' stroke='%232b2118' stroke-width='2'/%3E%3Cg stroke='%232b2118' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M6 5h26L19 27z' fill='%23ff6f61'/%3E%3Cpath d='M38 8h26L51 30z' fill='%23ffc93c'/%3E%3Cpath d='M70 8h26L83 30z' fill='%23ff6f61'/%3E%3Cpath d='M102 5h26L115 27z' fill='%23ffc93c'/%3E%3C/g%3E%3C/svg%3E");
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font-family: Nunito, "Segoe UI", system-ui, -apple-system, sans-serif; font-weight: 600; font-size: 15.5px; line-height: 1.55;
  font-variant-numeric: lining-nums tabular-nums; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
h1, h2, h3, h4 { margin: 0 0 10px; line-height: 1.12; letter-spacing: -0.01em; }
h1 { font-weight: 900; font-size: clamp(32px, 4.4vw, 46px); line-height: 1.05; }
h2 { font-weight: 900; font-size: clamp(24px, 3vw, 30px); }
h3 { font-weight: 800; font-size: 18px; }
p { margin: 0 0 12px; }
a { color: inherit; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
code { font-family: inherit; }
button { font-family: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
img { max-width: 100%; }
.ml-mute { color: var(--mute); }
.ml-up { color: var(--up); }
.ml-down { color: var(--down); }
.ml-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ml-eyebrow { color: var(--coral); font-weight: 800; font-size: 13px; margin: 0 0 6px; }
.ml-lede { font-size: 17px; color: var(--ink-2); max-width: 54ch; margin: 0 0 20px; }
.ml-note { font-size: 14px; color: var(--ink-2); font-weight: 600; }
.ml-state { font-weight: 700; color: var(--ink-2); margin: 8px 0; min-height: 1.4em; }
.ml-state:empty { display: none; }

/* ---- header ---------------------------------------------------------------- */
.ml-top { position: sticky; top: 0; z-index: 30; background: rgba(255, 253, 247, 0.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 2px solid var(--ink); }
.ml-top-in { max-width: var(--w); margin: 0 auto; padding: 0 20px; height: 64px; display: flex; align-items: center; gap: 12px; }
.ml-brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 900; font-size: 21px; text-decoration: none; letter-spacing: -0.01em; }
.ml-brand svg { width: 36px; height: 36px; flex: none; }
.ml-nav { display: flex; gap: 4px; margin-left: 10px; }
.ml-nav a { text-decoration: none; font-weight: 800; font-size: 15px; padding: 7px 14px; border-radius: 999px; color: var(--ink-2); border: 2px solid transparent; }
.ml-nav a:hover { background: var(--soft); color: var(--ink); }
.ml-nav a.is-on { background: var(--coral); color: var(--ink); border-color: var(--ink); }
.ml-tools { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.ml-btn.ml-burger { display: none; padding: 7px 9px; }

/* ---- buttons ---------------------------------------------------------------- */
.ml-btn, .tp-btn, .ip-btn, .ml-copy {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 14px;
  border: 2px solid var(--ink); border-radius: var(--r-btn); background: var(--card); color: var(--ink);
  font-family: inherit; font-weight: 800; font-size: 14px; line-height: 1.2; cursor: pointer; text-decoration: none; white-space: nowrap;
  box-shadow: 2px 2px 0 var(--ink); transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.ml-btn:hover, .tp-btn:hover, .ip-btn:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--ink); }
.ml-btn:active, .tp-btn:active, .ip-btn:active { transform: translate(1px, 1px); box-shadow: 0 0 0 var(--ink); }
.ml-btn:disabled, .tp-btn:disabled, .ip-btn:disabled { opacity: 0.45; cursor: default; transform: none; box-shadow: 2px 2px 0 var(--ink); }
.ml-btn-primary, .tp-btn-primary { background: var(--coral); }
.ml-btn-primary:hover { background: #ff7d70; }
.ml-btn-sun { background: var(--sun); }
.ml-btn-sky { background: var(--sky); }
.ml-btn-lg { padding: 12px 20px; font-size: 16px; border-radius: 14px; }
.ml-btn-sm, .ml-copy, .ip-btn, .tp-btn-max { padding: 5px 10px; font-size: 13px; box-shadow: none; }
.ml-btn-sm:hover, .ml-copy:hover, .ip-btn:hover, .tp-btn-max:hover { transform: none; box-shadow: none; background: var(--sun-soft); }
.ml-btn-sm:active, .ml-copy:active, .ip-btn:active { transform: translate(1px, 1px); }
.ml-copy.is-ok, .ml-btn.is-ok { background: var(--sun); }
.ml-btn.is-connected { background: var(--sun-soft); }
.ml-btn-ghost, .ip-btn-ghost { border-color: transparent; background: transparent; box-shadow: none; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.ml-btn-ghost:hover, .ip-btn-ghost:hover { transform: none; box-shadow: none; background: var(--soft); }
.ml-btn svg, .ml-copy svg, .tp-btn svg { flex: none; }

/* ---- layout ------------------------------------------------------------------ */
.ml-main { max-width: var(--w); margin: 0 auto; padding: 22px 20px 64px; }
.ml-bunting { height: 32px; background: var(--bunting) repeat-x left top; margin: 6px 0 4px; }
.ml-sec { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 26px 0 14px; }
.ml-sec h2 { margin: 0; }
.ml-sec .ml-eyebrow { margin-bottom: 4px; }
.ml-two { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; align-items: start; }
.ml-two-eq { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ml-col { display: grid; gap: 16px; min-width: 0; align-content: start; }
.ml-page-head { margin: 8px 0 18px; }
.ml-page-head h1 { margin-bottom: 8px; }
.ml-page-head .ml-lede { margin-bottom: 0; }

/* ---- cards, chips, stats ------------------------------------------------------- */
.ml-card { background: var(--card); border: 2px solid var(--ink); border-radius: var(--r-card); padding: 18px; position: relative; min-width: 0; }
.ml-card > h3:first-child { margin-top: 0; }
a.ml-card { display: block; text-decoration: none; color: inherit; }
.ml-card.is-lift { transition: transform 0.14s ease, box-shadow 0.14s ease; }
.ml-card.is-lift:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow); }
.ml-card.is-fresh { animation: ml-tremble 0.55s ease; box-shadow: 0 0 0 4px var(--sun); }
@keyframes ml-tremble { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-4px) rotate(-0.4deg); } 40% { transform: translateX(4px) rotate(0.4deg); } 60% { transform: translateX(-3px); } 80% { transform: translateX(3px); } }
.ml-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.ml-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 800; line-height: 1.5; background: var(--soft); color: var(--ink); white-space: nowrap; }
.ml-chip-coral { background: var(--coral); }
.ml-chip-sun { background: var(--sun); }
.ml-chip-sky { background: var(--sky); }
.ml-chip-ink { background: var(--ink); color: var(--cream); }
.ml-chip-up { background: var(--coral); color: var(--ink); }
.ml-chip-down { background: var(--walnut-soft); color: var(--walnut); }
.ml-chip-soft { background: var(--sun-soft); }
.ml-chip-outline { background: transparent; border: 2px solid var(--ink); padding: 1px 8px; }
.ml-chip svg { width: 12px; height: 12px; }
.ml-stat b { display: block; font-size: 15px; font-weight: 900; line-height: 1.2; }
.ml-stat span { font-size: 12px; color: var(--mute); font-weight: 700; }
.ml-logo { width: 56px; height: 56px; border-radius: 16px; border: 2px solid var(--ink); object-fit: cover; background: var(--sun-soft); display: grid; place-items: center; font-weight: 900; font-size: 22px; color: var(--ink); flex: none; overflow: hidden; }
.ml-logo-lg { width: 84px; height: 84px; border-radius: 24px; font-size: 34px; }
.ml-logo-sm { width: 40px; height: 40px; border-radius: 12px; font-size: 16px; }
.ml-empty { border: 2px dashed var(--ink); border-radius: var(--r-card); padding: 30px 20px; text-align: center; color: var(--ink-2); font-weight: 700; }
.ml-empty svg { width: 64px; height: 64px; display: block; margin: 0 auto 8px; }
.ml-empty p { margin: 0 0 12px; }
.ml-stamp { display: inline-block; transform: rotate(-6deg); border: 3px solid var(--coral); color: var(--coral); border-radius: 8px; padding: 1px 10px; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; font-size: 13px; background: rgba(255, 255, 255, 0.85); pointer-events: none; line-height: 1.5; }
.ml-stamp-fixed { position: fixed; right: 14px; top: 76px; z-index: 25; transform: rotate(6deg); box-shadow: 2px 2px 0 var(--coral); }
.ml-meter-row { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; font-weight: 800; color: var(--ink-2); margin: 0 0 5px; }
.ml-meter-row .is-leader { color: var(--coral); }
.ml-meter { height: 14px; border: 2px solid var(--ink); border-radius: 999px; background: var(--card); overflow: hidden; }
.ml-meter-fill { height: 100%; width: 0; background: var(--sun); border-radius: 999px; transition: width 0.6s ease; }
.ml-meter-fill.is-leader { background: var(--coral); }
.ml-meter-fill.is-coral { background: var(--coral); }

/* ---- hero: the fire ------------------------------------------------------------ */
.ml-hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 28px; align-items: center; padding: 22px 0 8px; }
.ml-hero h1 { font-size: clamp(36px, 4.9vw, 58px); margin-bottom: 12px; }
.ml-hero-acts { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.ml-counts { display: flex; gap: 8px; flex-wrap: wrap; min-height: 34px; }
.ml-count { display: inline-flex; align-items: baseline; gap: 6px; padding: 5px 12px; border: 2px solid var(--ink); border-radius: 999px; background: var(--card); font-weight: 800; font-size: 13px; color: var(--ink-2); }
.ml-count b { font-size: 15px; color: var(--ink); font-weight: 900; }
.ml-fire { position: relative; width: 100%; max-width: 560px; margin: 0 auto; aspect-ratio: 480 / 300; }
.ml-fire > svg { width: 100%; height: 100%; display: block; }
.ml-seat { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 4px; text-decoration: none; width: 84px; }
.ml-seat-img { width: 60px; height: 60px; border-radius: 50%; border: 2px solid var(--ink); background: var(--card); object-fit: cover; display: grid; place-items: center; font-weight: 900; font-size: 22px; box-shadow: 2px 2px 0 var(--ink); overflow: hidden; color: var(--ink); }
a.ml-seat:hover .ml-seat-img { background: var(--sun-soft); transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--ink); }
.ml-seat.is-empty .ml-seat-img { border-style: dashed; box-shadow: none; background: transparent; color: var(--mute); font-size: 24px; font-weight: 700; }
.ml-seat-lbl { font-size: 12px; font-weight: 800; background: var(--sun); border-radius: 999px; padding: 1px 8px; white-space: nowrap; max-width: 92px; overflow: hidden; text-overflow: ellipsis; }
.ml-seat.is-empty .ml-seat-lbl { background: transparent; color: var(--mute); font-weight: 700; }
.ml-spark { transform-box: fill-box; transform-origin: center; animation: ml-spark 2.6s ease-in infinite; opacity: 0; }
.ml-spark:nth-child(2) { animation-delay: 0.6s; }
.ml-spark:nth-child(3) { animation-delay: 1.3s; }
.ml-spark:nth-child(4) { animation-delay: 1.9s; }
.ml-spark:nth-child(5) { animation-delay: 0.3s; }
@keyframes ml-spark { 0% { transform: translateY(0) scale(1); opacity: 0; } 12% { opacity: 1; } 100% { transform: translateY(-64px) scale(0.5); opacity: 0; } }
.ml-flame-in { transform-box: fill-box; transform-origin: 50% 100%; animation: ml-flick 1.7s ease-in-out infinite; }
@keyframes ml-flick { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(0.9) scaleX(1.06); } }

/* ---- feed ------------------------------------------------------------------------ */
.ml-switch { display: inline-flex; border: 2px solid var(--ink); border-radius: 999px; background: var(--card); padding: 3px; gap: 2px; }
.ml-switch button { font-family: inherit; font-weight: 800; font-size: 14px; padding: 6px 14px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.ml-switch button span { font-weight: 800; font-size: 12px; background: var(--soft); border-radius: 999px; padding: 0 7px; color: var(--ink-2); }
.ml-switch button.is-on { background: var(--coral); color: var(--ink); }
.ml-switch button.is-on span { background: var(--card); color: var(--ink); }
.ml-tok-top { display: flex; gap: 12px; align-items: center; min-width: 0; }
.ml-tok-id { min-width: 0; flex: 1; }
.ml-tok-name { font-weight: 900; font-size: 18px; line-height: 1.15; text-decoration: none; color: inherit; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ml-tok-name:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.ml-tok-sub { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 5px; font-size: 12px; color: var(--mute); font-weight: 700; }
.ml-tok-price { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 14px 0 4px; }
.ml-tok-price b { font-size: 22px; font-weight: 900; line-height: 1.1; word-break: break-all; }
.ml-tok-price small { font-weight: 800; color: var(--ink-2); font-size: 13px; margin-left: 4px; }
.ml-tok-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; margin: 8px 0 12px; }
.ml-tok-foot { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.ml-tok-foot .ml-fees { margin-left: auto; font-size: 12px; color: var(--mute); font-weight: 700; }
.ml-drop-banner { height: 84px; border: 2px solid var(--ink); border-radius: 14px; margin: -4px 0 12px; overflow: hidden; background: var(--sun-soft) var(--bunting) repeat-x left 8px; }
.ml-drop-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ml-drop-live { margin: 0; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-weight: 700; font-size: 14px; }

/* ---- token and collection pages ---------------------------------------------------- */
.ml-tokpage { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; align-items: start; }
.ml-head { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.ml-head-id { min-width: 0; flex: 1 1 260px; }
.ml-head h1 { margin: 0; font-size: clamp(26px, 3.4vw, 38px); display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.ml-head .ml-tick { font-weight: 800; color: var(--mute); font-size: 0.6em; }
.ml-links { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.ml-addr { font-size: 12px; font-weight: 700; color: var(--ink-2); background: var(--soft-2); border: 2px solid var(--line-soft); border-radius: 8px; padding: 2px 8px; word-break: break-all; }
.ml-plate { background: var(--sun); border: 2px solid var(--ink); border-radius: var(--r-card); padding: 18px 22px 20px; box-shadow: var(--shadow); display: flex; flex-wrap: wrap; align-items: flex-end; gap: 6px 18px; }
.ml-plate-lbl { width: 100%; font-weight: 800; font-size: 13px; color: var(--ink-2); }
.ml-plate-price { font-size: clamp(30px, 4vw, 46px); font-weight: 900; line-height: 1; letter-spacing: -0.01em; word-break: break-all; }
.ml-plate-unit { font-size: 17px; font-weight: 800; margin-left: 6px; }
.ml-plate-usd { font-size: 15px; font-weight: 800; color: var(--ink-2); }
.ml-plate .ml-chip { margin-left: auto; font-size: 14px; padding: 3px 12px; }
.ml-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.ml-fact { background: var(--card); border: 2px solid var(--ink); border-radius: 16px; padding: 12px 14px; min-width: 0; }
.ml-fact b { display: block; font-size: 17px; font-weight: 900; line-height: 1.2; word-break: break-word; }
.ml-fact span { display: block; font-size: 12px; font-weight: 700; color: var(--mute); margin-top: 3px; }
.ml-embed { width: 100%; height: 440px; border: 0; border-radius: 14px; background: #1b1612; display: block; }
.ml-spark-svg { width: 100%; height: auto; display: block; }
.ml-stall { background: var(--card); border: 2px solid var(--ink); border-radius: var(--r-card); overflow: hidden; box-shadow: var(--shadow); }
.ml-awning { display: block; width: 100%; height: 40px; }
.ml-stall-in { padding: 12px 16px 16px; }
.ml-stall-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 10px; }
.ml-stall-title h3 { margin: 0; font-size: 18px; }
.ml-supply-bar { display: flex; height: 16px; border: 2px solid var(--ink); border-radius: 999px; overflow: hidden; margin: 8px 0 6px; }
.ml-supply-bar i { display: block; height: 100%; }
.ml-legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; font-weight: 700; color: var(--ink-2); }
.ml-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; border: 1.5px solid var(--ink); margin-right: 4px; vertical-align: -1px; }
.ml-earn-line { display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; margin: 0 0 8px; }
.ml-earn-line b { font-weight: 900; }
.ml-kv { display: grid; gap: 6px; font-size: 14px; }
.ml-kv div { display: flex; justify-content: space-between; gap: 10px; }
.ml-kv dt { color: var(--mute); font-weight: 700; }
.ml-kv dd { margin: 0; font-weight: 800; text-align: right; }

/* trade panel (PadTrade) */
.tp-tabs { display: flex; gap: 4px; margin: 0 0 12px; border: 2px solid var(--ink); border-radius: 999px; padding: 3px; background: var(--card); }
.tp-tab { flex: 1; font-family: inherit; font-weight: 800; font-size: 14px; padding: 7px 10px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); cursor: pointer; }
.tp-tab.is-on { background: var(--coral); color: var(--ink); }
.tp-leg { border: 2px solid var(--ink); border-radius: 16px; padding: 10px 12px; background: var(--soft-2); }
.tp-leg-get { background: var(--card); }
.tp-mid { height: 12px; position: relative; z-index: 1; }
.tp-mid::after { content: ""; position: absolute; left: 50%; top: -8px; width: 28px; height: 28px; margin-left: -14px; border: 2px solid var(--ink); border-radius: 50%; background: var(--sun) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232b2118' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M6 13l6 6 6-6'/%3E%3C/svg%3E") center / 14px no-repeat; }
.tp-leg-top { display: flex; gap: 8px; align-items: center; font-size: 12px; font-weight: 800; color: var(--ink-2); }
.tp-bal { margin-left: auto; font-weight: 700; color: var(--mute); text-align: right; }
.tp-amt { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.tp-input { flex: 1 1 0; width: 0; min-width: 0; font-family: inherit; font-weight: 900; font-size: 24px; border: 0; outline: 0; background: transparent; color: var(--ink); padding: 0; }
.tp-input::placeholder { color: var(--mute); }
.tp-out { flex: 1; font-weight: 900; font-size: 24px; min-width: 0; word-break: break-all; }
.tp-asset { font-weight: 900; font-size: 13px; background: var(--sun); border: 2px solid var(--ink); border-radius: 999px; padding: 3px 10px; flex: none; }
.is-dim { color: var(--mute); }
.tp-facts { display: grid; gap: 5px; margin: 12px 0; font-size: 13px; font-weight: 700; }
.tp-fact { display: flex; justify-content: space-between; gap: 10px; }
.tp-fact dt { color: var(--mute); }
.tp-fact dd { margin: 0; text-align: right; word-break: break-word; }
.tp-fact dd.is-down { color: var(--down); }
.tp-hint { font-size: 12px; color: var(--ink-2); margin: 0 0 10px; font-weight: 700; }
.tp-slip { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; color: var(--ink-2); flex-wrap: wrap; }
.tp-seg { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.tp-seg button { font-family: inherit; font-weight: 800; font-size: 12px; padding: 3px 9px; border: 2px solid var(--ink); background: var(--card); border-radius: 999px; cursor: pointer; }
.tp-seg button.is-on { background: var(--coral); }
.tp-custom { display: flex; gap: 8px; align-items: center; margin-top: 8px; font-size: 13px; font-weight: 700; }
.tp-custom input { width: 84px; font-family: inherit; font-weight: 800; font-size: 14px; padding: 6px 8px; border: 2px solid var(--ink); border-radius: 10px; }
.tp-steps { display: flex; gap: 8px; align-items: center; justify-content: space-between; font-size: 13px; margin: 10px 0 0; font-weight: 700; background: var(--sun-soft); border-radius: 12px; padding: 8px 10px; flex-wrap: wrap; }
.tp-steps i { font-style: normal; }
.tp-act { margin-top: 12px; }
.tp-act .tp-btn { width: 100%; padding: 12px; font-size: 16px; border-radius: 14px; background: var(--coral); }
.tp-note { font-size: 13px; font-weight: 700; color: var(--ink-2); margin: 10px 0 0; }
.tp-note.is-warn { color: var(--down); }
.tp-cap { display: flex; gap: 8px; align-items: center; justify-content: space-between; font-size: 12px; font-weight: 700; margin-top: 10px; flex-wrap: wrap; background: var(--sun-soft); border-radius: 12px; padding: 8px 10px; }
.tp-cap i { font-style: normal; }
.tp-foot { font-size: 13px; font-weight: 800; margin: 10px 0 0; }
.tp-empty { font-weight: 700; color: var(--ink-2); margin: 0; }

/* ---- collection page ------------------------------------------------------------------ */
.ml-banner { height: 210px; border-radius: 16px; border: 2px solid var(--ink); overflow: hidden; background: var(--sun-soft) var(--bunting) repeat-x left 10px; }
.ml-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ml-phase { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; padding: 12px 0; border-bottom: 2px solid var(--line-soft); align-items: center; }
.ml-phase:last-child { border-bottom: 0; padding-bottom: 0; }
.ml-phase b { font-size: 16px; font-weight: 900; }
.ml-phase .ml-phase-meta { grid-column: 1 / -1; font-size: 13px; color: var(--ink-2); font-weight: 700; }
.ml-stepper { display: inline-flex; align-items: center; border: 2px solid var(--ink); border-radius: 999px; overflow: hidden; background: var(--card); }
.ml-stepper button { width: 42px; height: 38px; border: 0; background: transparent; font-family: inherit; font-weight: 900; font-size: 20px; cursor: pointer; color: var(--ink); }
.ml-stepper button:hover { background: var(--sun-soft); }
.ml-stepper b { min-width: 46px; text-align: center; font-size: 17px; font-weight: 900; }
.ml-mint-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 10px 0 12px; }
.ml-table-wrap { overflow-x: auto; }
.ml-table { width: 100%; border-collapse: collapse; font-size: 14px; font-weight: 700; }
.ml-table th { text-align: left; font-size: 12px; color: var(--mute); font-weight: 800; padding: 6px 8px; border-bottom: 2px solid var(--ink); white-space: nowrap; }
.ml-table td { padding: 9px 8px; border-bottom: 2px solid var(--line-soft); vertical-align: middle; white-space: nowrap; font-variant-numeric: lining-nums tabular-nums; }
.ml-table-wrap { max-width: 100%; }
.ml-table tr:last-child td { border-bottom: 0; }

/* ---- forms -------------------------------------------------------------------------- */
.ml-form { display: grid; gap: 14px; min-width: 0; }
.ml-fs { border: 2px solid var(--ink); border-radius: var(--r-card); padding: 6px 18px 18px; margin: 0; background: var(--card); min-width: 0; }
.ml-fs legend { font-weight: 900; font-size: 15px; padding: 2px 12px; background: var(--sun); border: 2px solid var(--ink); border-radius: 999px; }
.ml-fs-help { margin: 8px 0 4px; color: var(--ink-2); font-size: 14px; font-weight: 600; }
.ml-field { display: flex; flex-direction: column; gap: 5px; margin: 12px 0 0; min-width: 0; }
.ml-field label, .ml-lbl { font-weight: 800; font-size: 14px; }
.ml-field label small, .ml-lbl small { font-weight: 700; color: var(--mute); font-size: 12px; }
.ml-field input, .ml-field textarea, .ml-field select, .ml-input, .tp-custom input, [data-urlwrap] input { font-family: inherit; font-weight: 700; font-size: 15px; padding: 9px 12px; border: 2px solid var(--ink); border-radius: 12px; background: var(--card); color: var(--ink); width: 100%; min-width: 0; }
.ml-field input:focus, .ml-field textarea:focus, .ml-field select:focus, .ml-input:focus, [data-urlwrap] input:focus { outline: 3px solid var(--coral); outline-offset: 1px; }
.ml-field select { appearance: none; -webkit-appearance: none; background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232b2118' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 10px center / 16px no-repeat; padding-right: 34px; }
textarea { resize: vertical; }
input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--coral); margin: 0; }
.ml-check { display: inline-flex; gap: 8px; align-items: center; font-weight: 800; font-size: 14px; cursor: pointer; }
.ml-hint { font-size: 12px; color: var(--mute); font-weight: 700; }
.ml-err { color: var(--down); font-size: 12px; font-weight: 800; min-height: 1em; }
.ml-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.ml-cols-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 14px; }
.ml-form-act { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.ml-sheet { position: sticky; top: 84px; }
.ml-sheet-name { font-size: 22px; font-weight: 900; margin: 0 0 2px; word-break: break-word; }
.ml-sheet-list { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 8px; }
.ml-sheet-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; font-weight: 700; color: var(--ink-2); }
.ml-sheet-list li b { color: var(--ink); font-weight: 900; }
.ml-sheet-list svg { flex: none; margin-top: 3px; }
.ml-phase-fs { border: 2px solid var(--ink); border-radius: 16px; padding: 4px 14px 14px; margin: 12px 0 0; background: var(--soft-2); min-width: 0; }
.ml-phase-fs legend { display: flex; align-items: center; gap: 8px; font-weight: 900; font-size: 14px; padding: 2px 10px; background: var(--card); border: 2px solid var(--ink); border-radius: 999px; }
.ml-phase-fs .ml-hint { display: block; margin: 6px 0 2px; }
.ml-phase-fs .ml-field { margin-top: 8px; }
.ml-phase-fs .ml-check { margin-top: 12px; }

/* picture picker (PadImagePick) */
.ip-drop { border: 2px dashed var(--ink); border-radius: 16px; padding: 12px; display: flex; gap: 12px; align-items: center; background: var(--soft-2); }
.ip-drop.is-over { background: var(--sun-soft); border-style: solid; }
.ip-prev { width: 76px; height: 76px; border-radius: 16px; object-fit: cover; background: var(--card); border: 2px solid var(--ink); display: grid; place-items: center; color: var(--mute); flex: none; }
.ip-main { min-width: 0; flex: 1; }
.ip-title { font-weight: 900; }
.ip-sub { font-size: 12px; color: var(--mute); font-weight: 700; }
.ip-acts { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.ip-err { color: var(--down); font-size: 12px; font-weight: 800; min-height: 1em; }

/* ---- launch chooser ---------------------------------------------------------------------- */
.ml-choose { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ml-choose .ml-card { padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.ml-choose svg.ml-badge { width: 72px; height: 72px; margin-bottom: 6px; }
.ml-choose h2 { margin: 0; }
.ml-choose p { color: var(--ink-2); margin: 0 0 6px; }
.ml-choose .ml-row { margin-bottom: 10px; }
.ml-choose .ml-btn { align-self: flex-start; margin-top: auto; }

/* ---- dashboard ---------------------------------------------------------------------------- */
.ml-dash { display: grid; gap: 12px; }
.ml-dash-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.ml-dash-row .ml-tok-stats { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); margin: 6px 0 0; }
.ml-dash-acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

/* ---- learn ----------------------------------------------------------------------------------- */
.ml-learn { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 20px; align-items: start; }
.ml-learn-nav { position: sticky; top: 84px; display: grid; gap: 6px; }
.ml-learn-nav a { display: block; padding: 10px 14px; border: 2px solid var(--ink); border-radius: 14px; text-decoration: none; font-weight: 800; background: var(--card); font-size: 14px; }
.ml-learn-nav a:hover { background: var(--sun-soft); }
.ml-learn-nav a[aria-current="page"] { background: var(--coral); box-shadow: 2px 2px 0 var(--ink); }
.ml-article { background: var(--card); border: 2px solid var(--ink); border-radius: var(--r-card); padding: 26px 28px; }
.ml-article h1 { margin: 0 0 14px; font-size: clamp(26px, 3vw, 32px); }
.ml-article p { font-size: 16px; line-height: 1.65; margin: 0 0 14px; color: var(--ink-2); font-weight: 600; }
.ml-article p:last-of-type { margin-bottom: 0; }
.ml-article-next { margin-top: 18px; padding-top: 14px; border-top: 2px solid var(--line-soft); font-weight: 800; }

/* ---- footer, toast, 404 ------------------------------------------------------------------------ */
.ml-footer { margin-top: 40px; border-top: 2px solid var(--ink); background: var(--card); }
.ml-footer-in { max-width: var(--w); margin: 0 auto; padding: 22px 20px 28px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; align-items: center; font-weight: 700; font-size: 14px; color: var(--ink-2); }
.ml-footer nav { display: flex; gap: 16px; flex-wrap: wrap; }
.ml-footer nav a { text-decoration: none; font-weight: 800; color: var(--ink); }
.ml-footer nav a:hover { text-decoration: underline; }
.ml-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 16px); opacity: 0; background: var(--ink); color: var(--cream); padding: 11px 16px; border-radius: 14px; font-weight: 800; font-size: 14px; transition: 0.2s; z-index: 60; max-width: 92vw; border: 2px solid var(--sun); pointer-events: none; }
.ml-toast.is-show { opacity: 1; transform: translate(-50%, 0); }
.ml-lost { text-align: center; padding: 40px 0 20px; max-width: 520px; margin: 0 auto; }
.ml-lost svg { width: 140px; height: 140px; }

/* ---- responsive ------------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .ml-two, .ml-two-eq, .ml-learn, .ml-choose { grid-template-columns: minmax(0, 1fr); }
  .ml-tokpage { display: flex; flex-direction: column; gap: 16px; }
  .ml-tokpage > .ml-col { display: contents; }
  .ml-tokpage > .ml-col > * { width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; }
  .ml-tokpage [data-order="1"] { order: 1; } .ml-tokpage [data-order="2"] { order: 2; } .ml-tokpage [data-order="3"] { order: 3; }
  .ml-tokpage [data-order="4"] { order: 4; } .ml-tokpage [data-order="5"] { order: 5; } .ml-tokpage [data-order="6"] { order: 6; }
  .ml-tokpage [data-order="7"] { order: 7; } .ml-tokpage [data-order="8"] { order: 8; } .ml-tokpage [data-order="9"] { order: 9; }
  .ml-learn-nav { position: static; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .ml-sheet { position: static; }
  .ml-hero { grid-template-columns: 1fr; gap: 18px; }
  .ml-fire { max-width: 460px; }
}
@media (max-width: 760px) {
  .ml-top-in { height: 60px; }
  .ml-nav { display: none; position: absolute; left: 0; right: 0; top: 60px; background: var(--cream); border-bottom: 2px solid var(--ink); flex-direction: column; padding: 12px 16px 16px; gap: 6px; margin: 0; }
  .ml-nav.is-open { display: flex; }
  .ml-nav a { font-size: 17px; padding: 11px 14px; }
  .ml-btn.ml-burger { display: inline-flex; }
  .ml-main { padding: 18px 16px 48px; }
  .ml-cols, .ml-cols-3 { grid-template-columns: 1fr; }
  .ml-embed { height: 340px; }
  .ml-dash-row { grid-template-columns: auto minmax(0, 1fr); }
  .ml-dash-acts { grid-column: 1 / -1; justify-content: flex-start; }
  .ml-article { padding: 20px 18px; }
  .ml-seat { width: 68px; }
  .ml-seat-img { width: 48px; height: 48px; font-size: 18px; }
  .ml-seat-lbl { font-size: 11px; max-width: 70px; }
  .ml-plate { padding: 16px 18px; }
  .ml-addr { font-size: 11px; letter-spacing: -0.01em; }
  .ml-stamp-fixed { top: 70px; }
}
@media (prefers-reduced-motion: reduce) {
  .ml-spark, .ml-flame-in, .ml-card.is-fresh { animation: none; }
  .ml-spark { opacity: 0.8; }
  .ml-btn, .tp-btn, .ip-btn, .ml-card.is-lift, .ml-meter-fill, .ml-toast { transition: none; }
}
