.launch { padding-block: 40px 96px; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; margin-bottom: 40px; transition: color .2s; }
.back:hover { color: var(--text); }
.launch-head h1 { font-size: clamp(40px, 5.4vw, 72px); line-height: .98; letter-spacing: -.045em; margin-top: 4px; }
.launch-head h1 em { color: var(--muted); }
.launch-head .section-lede { max-width: 56ch; }

.notice {
  display: flex; gap: 10px; align-items: baseline; margin-top: 32px; padding: 14px 18px; border-radius: 10px; font-size: 14px; color: var(--muted);
  border: 1px solid var(--line); background: var(--bg-2);
}
.notice[hidden] { display: none; }
.notice b { color: var(--text); font-weight: 500; }

.launch-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, .8fr); gap: 32px; margin-top: 32px; align-items: start; }

/* Form sections */
.panel { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; margin-bottom: 16px; background: var(--bg); }
.panel-title { display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 500; letter-spacing: -.02em; margin-bottom: 24px; }
.panel-title span { font: 500 12px var(--mono); color: var(--green); }
.field-wrap { margin-bottom: 18px; }
.field-wrap:last-child { margin-bottom: 0; }
.label { display: flex; align-items: baseline; gap: 8px; font-size: 13px; font-weight: 500; margin-bottom: 8px; color: var(--text); }
.label .count { margin-left: auto; font: 400 11px var(--mono); color: var(--faint); }
.opt { font: 400 11px var(--mono); color: var(--faint); }
.hint { color: var(--muted); font-size: 13px; margin-top: 8px; }
.error { color: var(--danger); font-size: 13px; margin-top: 8px; }
.error:empty { display: none; }
.error .warn { color: var(--gold); }
textarea.field { resize: vertical; min-height: 96px; line-height: 1.5; }
.field.is-invalid, .drop.is-invalid { border-color: rgba(248, 113, 113, .7); }

.affix { display: flex; align-items: stretch; }
.affix span { display: grid; place-items: center; padding: 0 12px; background: var(--panel); border: 1px solid var(--line-2); color: var(--muted); font: 500 14px var(--mono); border-radius: 8px 0 0 8px; border-right: 0; }
.affix .field { border-radius: 0 8px 8px 0; }

/* Image drop zones */
.image-row { display: grid; grid-template-columns: 168px 1fr; gap: 24px; margin-bottom: 18px; }
.drop {
  position: relative; display: grid; place-items: center; aspect-ratio: 1; border-radius: 10px; cursor: pointer; overflow: hidden;
  border: 1px dashed var(--line-2); background: var(--bg-2); transition: border-color .2s, background .2s;
}
.drop:hover, .drop.is-over { border-color: rgba(125, 238, 159, .6); background: rgba(125, 238, 159, .03); }
.drop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.drop.has-file { border-style: solid; border-color: var(--line); }
.drop.has-file .drop-empty { opacity: 0; }
.drop.has-file:hover::after { content: "Replace"; position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, .6); font-size: 13px; font-weight: 500; }
.drop-empty { display: grid; justify-items: center; gap: 4px; text-align: center; padding: 16px; color: var(--muted); transition: opacity .2s; }
.drop-empty svg { width: 20px; height: 20px; color: var(--muted); margin-bottom: 6px; }
.drop-empty b { color: var(--text); font-size: 13px; font-weight: 500; }
.drop-empty small { font-size: 12px; line-height: 1.4; color: var(--faint); }
.drop-banner { aspect-ratio: 3 / 1; }
.image-side .link-btn { margin-top: 2px; }

.socials-box { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 18px; }
.socials-box summary { cursor: pointer; font-weight: 500; font-size: 14px; list-style: none; display: flex; align-items: center; gap: 10px; color: var(--muted); }
.socials-box summary:hover { color: var(--text); }
.socials-box summary::-webkit-details-marker { display: none; }
.socials-box summary::before { content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); transition: transform .2s var(--ease); }
.socials-box[open] summary::before { transform: rotate(45deg); }
.socials-box[open] summary { margin-bottom: 18px; color: var(--text); }
.socials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.socials-grid .field-wrap { margin-bottom: 0; }

/* Pairing and fees */
.pair-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.pair-row .label { margin-bottom: 0; }
.pair-chip { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; font: 500 13px var(--mono); color: var(--text); border: 1px solid var(--line-2); border-radius: 7px; }
.pair-chip svg { width: 14px; height: 14px; color: var(--muted); }
.split { padding-top: 20px; }
.split-head { margin-bottom: 14px; }
.split-head .label { margin-bottom: 0; }
.split-bar { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: var(--panel-2); gap: 2px; }
.split-pad { width: 70%; background: var(--green); }
.split-you { flex: 1; background: var(--line-2); }
.split-legend { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.split-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 8px; }
.split-legend b { font: 500 13px var(--mono); margin-left: 6px; color: var(--text); }
.sw-pad { background: var(--green); }
.sw-you { background: var(--line-2); }

/* Agree + launch */
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 14px; color: var(--muted); }
.check input { position: absolute; opacity: 0; }
.check-ui { flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: 5px; border: 1px solid var(--line-2); background: var(--bg-2); display: grid; place-items: center; transition: background .2s, border-color .2s; }
.check input:checked + .check-ui { background: var(--green); border-color: var(--green); }
.check input:checked + .check-ui::after { content: ""; width: 4px; height: 8px; border: solid var(--green-ink); border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }
.check input:focus-visible + .check-ui { outline: 2px solid var(--green); outline-offset: 3px; }
.launch-actions { margin-top: 24px; }
.btn-launch { width: 100%; height: 52px; font-size: 16px; }

/* Preview aside */
.aside-sticky { position: sticky; top: 88px; }
.preview-label { font: 500 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--faint); margin: 20px 0 10px; }
.aside-sticky .kicker { margin-bottom: 0; }
.avatar.has-img, .pf-img.has-img { background-size: cover; background-position: center; border-color: var(--line); }

.pf-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel); }
.pf-banner { aspect-ratio: 3 / 1; background-size: cover; background-position: center; border-bottom: 1px solid var(--line); }
.pf-row { display: flex; gap: 14px; padding: 14px; }
.pf-img { flex: none; width: 88px; height: 88px; border-radius: 8px; display: grid; place-items: center; font: 500 22px var(--mono); color: var(--muted); background: var(--panel-2); border: 1px solid var(--line); }
.pf-text { min-width: 0; font-size: 13px; }
.pf-name { font-weight: 500; font-size: 15px; overflow-wrap: anywhere; }
.pf-name span { color: var(--muted); font-weight: 400; }
.pf-meta { color: var(--muted); font: 400 11px var(--mono); margin-top: 4px; }
.pf-cap { color: var(--green); font: 400 12px var(--mono); margin-top: 3px; }
.pf-desc { color: var(--muted); margin-top: 8px; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pf-desc.is-empty { color: var(--faint); }

.ready { list-style: none; padding: 0; margin: 24px 0 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--faint); }
.ready li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); transition: color .2s; }
.ready i { width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: background .2s, border-color .2s; }
.ready .is-ok { color: var(--text); }
.ready .is-ok i { background: var(--green); border-color: var(--green); }
.ready .is-ok i::after { content: ""; width: 3px; height: 7px; border: solid var(--green-ink); border-width: 0 1.5px 1.5px 0; transform: translateY(-1px) rotate(45deg); }

/* Launch flow dialog */
.flow-preview { display: inline-flex; font: 500 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line-2); border-radius: 6px; padding: 4px 8px; margin-bottom: 16px; }
#flow-title { font-size: 24px; font-weight: 600; letter-spacing: -.03em; }
.pay { margin-top: 20px; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); }
.pay-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.pay-label { font-size: 13px; color: var(--muted); }
.pay-amount { font: 500 28px var(--mono); letter-spacing: -.02em; color: var(--green); }
.pay-addr { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 10px 10px 10px 14px; border: 1px solid var(--line-2); border-radius: 9px; background: var(--bg); }
.pay-addr code { flex: 1; min-width: 0; font: 400 13px var(--mono); overflow-wrap: anywhere; color: var(--text); }
.pay-open { width: 100%; margin-top: 10px; }
.pay .hint b { color: var(--text); font-family: var(--mono); font-weight: 500; }
.flow-steps { list-style: none; padding: 0; margin: 20px 0 0; }
.flow-steps li { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--faint); transition: color .2s; }
.flow-steps li:last-child { border-bottom: 0; }
.flow-steps b { display: block; color: inherit; font-size: 14px; font-weight: 500; }
.flow-steps small { display: block; font-size: 13px; margin-top: 1px; }
.fs-icon { flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; }
.flow-steps .is-active { color: var(--text); }
.flow-steps .is-active small { color: var(--muted); }
.is-active .fs-icon { border-color: var(--green); border-top-color: transparent; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.flow-steps .is-done { color: var(--muted); }
.is-done .fs-icon { background: var(--green); border-color: var(--green); }
.is-done .fs-icon::after { content: ""; width: 3px; height: 7px; border: solid var(--green-ink); border-width: 0 1.5px 1.5px 0; transform: translateY(-1px) rotate(45deg); }
.flow-steps .is-failed { color: var(--danger); }
.is-failed .fs-icon { border-color: var(--danger); }
.is-failed .fs-icon::after { content: "!"; font: 500 11px var(--mono); }
.flow-done { text-align: center; margin: 4px 0 20px; }
.flow-check { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(125, 238, 159, .5); color: var(--green); font-size: 20px; }
.flow-done h3 { margin-top: 16px; }
.flow-done p { color: var(--muted); margin-top: 8px; font-size: 15px; }
.flow-done + .pay-addr { margin-bottom: 14px; }
.flow-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 22px; flex-wrap: wrap; }

@media (max-width: 960px) {
  .launch-grid { grid-template-columns: 1fr; }
  .aside-sticky { position: static; }
  .socials-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .panel { padding: 20px; }
  .image-row { grid-template-columns: 1fr; }
  .drop:not(.drop-banner) { width: 150px; }
  .pair-row { flex-direction: column; align-items: flex-start; }
  .flow-actions .btn { flex: 1; }
}
