@layer legacy {
/* 发射平台沿用现有黑金主题、窄屏容器与四项固定底栏。 */
.launch-page main { padding-top: 22px; }
.launch-page #toast { bottom: calc(104px + env(safe-area-inset-bottom, 0px)); }
.launch-hero { padding: 12px 0 26px; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.launch-hero h1 { max-width: 320px; font-family: Georgia, 'Noto Serif TC', serif;
  font-size: clamp(29px, 8vw, 36px); font-weight: 500; line-height: 1.35; letter-spacing: -.8px; }
.launch-hero > p { margin: 14px 0 20px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.launch-hero > .button { min-height: 46px; padding-inline: 24px; }
.launch-path { display: flex; justify-content: space-between; gap: 8px; margin-top: 28px;
  color: var(--accent); font-size: 11px; }
.launch-search { display: flex; gap: 8px; }
.launch-search input { min-width: 0; flex: 1; }
.launch-search .button { flex-shrink: 0; }
.launch-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.launch-filters a { display: flex; align-items: center; padding: 10px 15px; min-height: 44px;
  border: 1px solid var(--soft-line); border-radius: 24px; color: var(--muted); font-size: 12px; }
.launch-filters a[aria-current] { background: var(--soft-surface); color: var(--accent);
  border-color: var(--accent); }
.launch-token-list { display: grid; gap: 12px; }
.launch-token { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 14px 12px;
  border: 1px solid var(--line); border-radius: 16px; padding: 18px 16px; background: var(--surface); }
.launch-token:hover { border-color: var(--accent); }
.launch-token-art { display: flex; align-items: center; justify-content: center; width: 56px; height: 62px;
  border: 1px solid var(--line); border-radius: 12px; color: var(--accent); background: var(--tonal); }
.launch-token-copy { min-width: 0; overflow-wrap: anywhere; }
.launch-token-copy h3 { font-size: 16px; line-height: 1.4; margin: 4px 0; }
.launch-token-symbol { font-size: 11px; color: var(--accent); letter-spacing: 1px; }
.launch-token-copy p, .launch-token-meta { font-size: 11px; color: var(--muted); line-height: 1.7; }
.launch-token-end { display: flex; flex-direction: column; align-items: end; justify-content: space-between; }
.launch-token-status { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; grid-column: 1 / -1;
  border-top: 1px solid var(--soft-line); padding-top: 12px; color: var(--accent); font-size: 11px; }
.launch-token-status > span:last-child { margin-left: auto; color: var(--muted); }
.launch-note { font-size: 12px; line-height: 1.8; color: var(--muted); margin-top: 18px; }
.launch-steps { display: flex; list-style: none; counter-reset: step; gap: 8px; padding: 0; margin: 24px 0; }
.launch-steps li { flex: 1; color: var(--muted); font-size: 11px; line-height: 1.6; }
.launch-steps li::before { counter-increment: step; content: '0' counter(step); display: block;
  color: var(--accent); border-top: 1px solid var(--line); padding-top: 10px; margin-bottom: 4px; }
.launch-requirements { display: flex; align-items: start; gap: 12px; padding: 18px 0;
  border-block: 1px solid var(--soft-line); margin-bottom: 22px; }
.launch-requirements > .icon { color: var(--accent); flex-shrink: 0; }
.launch-requirements strong { font-size: 13px; }
.launch-requirements p { font-size: 12px; line-height: 1.8; margin-top: 6px; color: var(--muted); }
.launch-page .asset-form { padding: 0; background: transparent; }
/* 创建页以图标上传为入口，发行条件收进辅助说明，避免挤占表单空间。 */
.launch-create-heading { margin-bottom: 20px; }
.launch-create-heading h1 { font-size: 26px; line-height: 1.3; }
.launch-create-heading p { margin-top: 6px; color: var(--muted); font-size: 12px; }
.token-icon-upload { position: relative; display: grid; grid-template-columns: 76px minmax(0, 1fr);
  gap: 10px 16px; align-items: center; padding: 16px; border: 1px dashed var(--line);
  border-radius: 12px; background: var(--soft-surface); margin-bottom: 22px; }
.token-icon-preview { display: flex; align-items: center; justify-content: center;
  width: 76px; height: 76px; border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; color: var(--muted); background: var(--surface); }
.token-icon-preview img { display: block; width: 100%; height: 100%; object-fit: cover; }
.token-icon-copy { min-width: 0; }
.token-icon-copy > label { font-size: 14px; font-weight: 600; }
.token-icon-copy > p { color: var(--muted); font-size: 10px; margin: 5px 0 10px; line-height: 1.6; }
.token-icon-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; }
.token-icon-actions .button { min-height: 36px; padding: 6px 12px; border-color: var(--accent);
  border-radius: 8px; font-size: 12px; }
.token-icon-actions .text-button { min-height: 36px; font-size: 11px; }
.token-icon-status { grid-column: 1 / -1; color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.token-icon-upload.has-error { border-color: var(--danger); }
.token-icon-upload.has-error .token-icon-status { color: var(--danger); }
.token-icon-upload:focus-within { border-color: var(--accent); }
.token-icon-upload input[type=file]:focus-visible ~ .token-icon-actions [data-icon-choose] {
  outline: 2px solid var(--accent); outline-offset: 3px; }
.token-icon-upload [hidden] { display: none; }
.launch-create-form .field-label { margin-top: 16px; }
.launch-create-form input:not([type=checkbox]):not([type=file]):not([type=hidden]),
.launch-create-form .select-trigger { min-height: 44px; padding: 10px 12px; font-size: 13px; }
.launch-asset-ready { display: flex; align-items: center; gap: 6px; color: var(--muted);
  font-size: 10px; margin-top: 7px; }
.launch-asset-ready .icon { color: var(--accent); flex-shrink: 0; }
.launch-create-form .optional-field { margin: 14px 0 10px; }
.launch-create-form .launch-confirmation { margin: 16px 0; font-size: 11px; }
.launch-create-form > button[type=submit] { min-height: 46px; border-radius: 10px; }
.launch-create-help { margin-top: 18px; color: var(--muted); font-size: 11px; }
.launch-create-help summary { cursor: pointer; min-height: 36px; }
.launch-create-help summary .icon { vertical-align: middle; }
.launch-create-help > p { line-height: 1.8; }
@media (max-width: 360px) {
  .token-icon-upload { grid-template-columns: 64px minmax(0, 1fr); padding: 12px; gap: 10px; }
  .token-icon-preview { width: 64px; height: 64px; }
}
.launch-page .empty-state p { line-height: 1.8; }
.launch-page .empty-state > .text-button { display: block; margin: 20px auto 0; }
.launch-page .empty-state > .button { margin-top: 20px; }
.launch-confirmation { display: flex; align-items: start; gap: 10px; margin: 20px 0;
  font-size: 12px; line-height: 1.7; color: var(--muted); }
.launch-confirmation input { flex-shrink: 0; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); }
.launch-holding-summary { border-block: 1px solid var(--line); padding: 24px 0; }
.launch-holding-summary > span, .launch-holding-summary p { color: var(--muted); font-size: 12px; }
.launch-holding-summary > strong { display: block; font-size: 38px; margin: 12px 0; color: var(--accent); }
.launch-holding-summary small { font-size: 13px; font-weight: 400; }
.launch-back { display: inline-flex; padding-block: 8px; margin-bottom: 20px; }
.launch-detail-heading { display: flex; align-items: center; gap: 12px; }
.launch-detail-heading > div { min-width: 0; flex: 1; overflow-wrap: anywhere; }
.launch-detail-heading h1 { font-size: 24px; line-height: 1.35; }
.launch-detail-heading > .launch-token-art { flex-shrink: 0; }
.launch-data-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px; border-block: 1px solid var(--line); padding: 22px 0; margin-top: 24px; }
.launch-data-grid span { display: block; color: var(--muted); font-size: 12px; margin-bottom: 7px; }
.launch-data-grid strong { font-size: 20px; overflow-wrap: anywhere; }
.launch-market-pending { padding: 35px 16px; text-align: center; background: var(--soft-surface);
  border-radius: 12px; margin-top: 20px; }
.launch-market-pending > span { color: var(--accent); font-size: 14px; }
.launch-market-pending p { font-size: 12px; color: var(--muted); line-height: 1.8; margin-top: 8px; }
.launch-detail-section { border-bottom: 1px solid var(--soft-line); padding: 22px 0; }
.launch-detail-section h2 { font-size: 16px; margin-bottom: 12px; }
.launch-detail-section > p { font-size: 13px; line-height: 1.8; color: var(--muted); }
.launch-trade-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.launch-trade-actions button:disabled { opacity: .45; cursor: not-allowed; }
.launch-asset-link { display: flex; align-items: center; gap: 8px; min-height: 44px; text-align: left;
  overflow-wrap: anywhere; }
.launch-description { white-space: pre-wrap; overflow-wrap: anywhere; }
.launch-page a:focus-visible, .launch-page button:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 4px;
}

/* 示例数据共用标记；列表、持仓和详情使用同一份价格及资产资料。 */
.launch-token-art { overflow: hidden; }
.launch-token-art img { width: 100%; height: 100%; object-fit: cover; }
.launch-card-market { grid-column: 1 / -1; display: flex; flex-wrap: wrap;
  gap: 10px; justify-content: space-between; font-size: 11px; color: var(--muted); }
.launch-card-market strong { color: var(--text); font-weight: 500; }
.launch-card-market label { width: 100%; line-height: 1.7; }
.launch-page progress { display: block; width: 100%; height: 5px; margin-block: 8px 3px;
  border: 0; border-radius: 10px; overflow: hidden; appearance: none;
  background: var(--soft-surface); accent-color: var(--accent); }
.launch-page progress::-webkit-progress-bar { background: var(--soft-surface); }
.launch-page progress::-webkit-progress-value { background: var(--accent); border-radius: 10px; }
.launch-page progress::-moz-progress-bar { background: var(--accent); }
.launch-source-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.launch-source-actions > * { min-height: 44px; display: inline-flex; align-items: center; gap: 6px; }
.launch-more { margin-top: 22px; }
.launch-holdings-list { margin-top: 22px; }
.launch-holding-card { border: 1px solid var(--line); border-radius: 14px; padding: 18px 16px;
  background: var(--surface); }
.launch-holding-card:hover { border-color: var(--accent); }
.launch-holding-card h2 { font-size: 16px; }
.launch-holding-card h2 small { font-size: 11px; color: var(--muted); font-weight: 400; }
.launch-holding-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.launch-holding-fields dt { font-size: 11px; color: var(--muted); }
.launch-holding-fields dd { margin: 6px 0 0; font-size: 14px; overflow-wrap: anywhere; }
.launch-page .is-gain { color: var(--accent); }
.launch-page .is-loss { color: var(--danger); }
.launch-trade-row { display: flex; gap: 12px; justify-content: space-between;
  padding: 16px 0; border-bottom: 1px solid var(--soft-line); }
.launch-trade-row > div:last-child { text-align: right; }
.launch-trade-row strong { font-size: 12px; font-weight: 500; }
.launch-trade-row small { display: block; margin-top: 6px; font-size: 10px; color: var(--muted); }
.launch-price-chart { margin: 24px 0 0; }
.launch-price-chart figcaption { font-size: 14px; }
.launch-price-chart figcaption > span { display: block; margin-top: 6px; font-size: 10px; color: var(--muted); }
.launch-price-chart svg { display: block; width: 100%; height: auto; margin-top: 14px; }
.launch-price-chart svg text { fill: var(--muted); font-size: 9px; }
.launch-chart-grid { stroke: var(--line); stroke-width: 1; }
.launch-price-chart details { color: var(--muted); font-size: 11px; margin-top: 8px; }
.launch-price-chart summary { cursor: pointer; min-height: 32px; }
.launch-price-chart table { width: 100%; text-align: left; border-collapse: collapse; }
.launch-price-chart td, .launch-price-chart th { padding: 6px; border-bottom: 1px solid var(--soft-line); }
.launch-progress-heading { display: flex; justify-content: space-between; font-size: 12px; color: var(--accent); }
.launch-data-grid strong small { font-size: 10px; color: var(--muted); }

/* 广场采用三列行情列表：单行约 78px，不重复展示发行说明与资产凭证。 */
.launch-market-dense { margin-top: -8px; }
/* 使用确认的完整设计图，链接热区随图片等比缩放，与图中按钮边界对齐。 */
.launch-banner-create { position: absolute; left: 47.5%; top: 76.4%; width: 46.5%;
  height: 12%; min-height: 44px; z-index: 1; border-radius: 12px; }
.launch-banner-create:hover { box-shadow: 0 0 16px color-mix(in srgb, var(--accent) 33%, transparent); }
.launch-banner-create:focus-visible { outline: 2px solid var(--accent-hover); outline-offset: 3px; }
.launch-market-intro { position: relative; margin-bottom: 16px; background: var(--bg); }
.launch-market-visual { position: relative; overflow: hidden; border-radius: 12px 12px 0 0; }
.launch-market-banner { display: block; width: 100%; height: auto; aspect-ratio: 1226 / 1283;
  object-fit: contain; object-position: center top; background: var(--bg); }
.launch-market-dense .launch-search { gap: 6px; }
.launch-market-dense .launch-search input { min-height: 40px; padding: 9px 11px; font-size: 12px; }
.launch-market-dense .launch-search .button { min-height: 40px; padding: 8px 12px; font-size: 12px; }
.market-controls { display: flex; align-items: center; justify-content: space-between; gap: 8px;
  border-bottom: 1px solid var(--line); margin-top: 8px; }
.market-stage-tabs { display: flex; gap: 12px; min-width: 0; }
.market-stage-tabs a { display: flex; align-items: center; min-height: 44px; font-size: 12px;
  color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.market-stage-tabs a[aria-current] { color: var(--accent); border-color: var(--accent); }
.market-sort { max-width: 120px; min-width: 0; }
.market-sort .select-trigger { color: var(--accent); }
.market-caption { display: flex; justify-content: space-between; gap: 8px; font-size: 10px;
  color: var(--muted); padding: 9px 0 5px; }
.market-table-head, .launch-market-row { display: grid;
  grid-template-columns: minmax(0, 1fr) 52px 83px 78px; gap: 8px; }
.market-table-head { font-size: 10px; color: var(--muted); padding: 8px 0;
  border-bottom: 1px solid var(--line); background: var(--bg); }
.market-table-head > span:not(:first-child) { text-align: right; }
.market-table-head > span:nth-child(2) { text-align: center; }
.market-chart { min-width: 0; align-self: center; color: var(--muted);
  --market-chart-shadow: color-mix(in srgb, var(--muted) 20%, transparent); }
.launch-page .market-chart.is-gain { color: var(--success);
  --market-chart-shadow: color-mix(in srgb, var(--success) 30%, transparent); }
.launch-page .market-chart.is-loss { color: var(--danger);
  --market-chart-shadow: color-mix(in srgb, var(--danger) 30%, transparent); }
.market-chart svg { display: block; width: 100%; height: 24px; }
.market-chart-area { fill: currentColor; opacity: .55;
  mask-image: linear-gradient(to bottom, #000 40%, rgb(0 0 0 / .8) 70%, transparent 100%); }
.market-chart-baseline { fill: none; stroke: var(--muted); stroke-opacity: .3;
  stroke-width: .6; stroke-dasharray: 1.5 2; }
.market-chart-line { fill: none; stroke: currentColor; stroke-width: 1.2;
  stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 1px 1px var(--market-chart-shadow)); }
.market-chart-dot { fill: currentColor; stroke: var(--bg); stroke-width: .8; }
.market-chart-empty { text-align: center; font-size: 12px; }
.launch-market-row { min-height: 78px; padding: 11px 0; border-bottom: 1px solid var(--soft-line);
  align-items: center; font-variant-numeric: tabular-nums; }
.launch-market-row:hover { background: var(--soft-surface); }
.market-identity { display: flex; gap: 8px; min-width: 0; align-items: center; }
.market-identity img { width: 32px; height: 32px; object-fit: cover; border-radius: 7px; flex-shrink: 0; }
.market-identity > div { min-width: 0; }
.market-identity strong { display: flex; align-items: center; gap: 4px; font-size: 13px; }
.market-ticker { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.market-name { display: block; max-width: 100%; overflow: hidden; white-space: nowrap;
  text-overflow: ellipsis; color: var(--muted); font-size: 11px; }
.market-volume { display: block; font-size: 10px; color: var(--muted); }
/* 平台币固定置顶，官方标签紧跟代币名称，与资产币区分。 */
.market-title { display: flex; align-items: center; gap: 6px; min-width: 0; }
.market-platform {
  flex-shrink: 0; padding: 0 6px; border: 1px solid var(--accent); border-radius: 999px;
  color: var(--accent); font-size: 10px; font-weight: 500; line-height: 1.6; white-space: nowrap;
}
.market-numbers, .market-movement { text-align: right; align-self: center; }
.market-numbers strong, .market-movement strong { display: block; font-size: 12px; font-weight: 550; }
.market-numbers > span, .market-movement > span { display: block; font-size: 11px; color: var(--muted); margin-top: 4px; }
.market-movement > .market-graduated { color: var(--accent); font-size: 10px; }
.market-movement progress { width: 46px; height: 3px; margin: 4px 0 0 auto; }
.launch-market-pagination { display: flex; justify-content: space-between; align-items: center; margin-top: 12px;
  font-size: 12px; }
.launch-market-pagination a, .launch-market-pagination > span { padding: 10px 12px; min-height: 44px; }
.launch-market-pagination a { border: 1px solid var(--line); border-radius: 8px; color: var(--accent); }
.launch-market-pagination [aria-disabled] { opacity: .45; }
@media (max-width: 360px) {
  .market-table-head, .launch-market-row {
    grid-template-columns: minmax(0, 1fr) 44px 72px 65px; gap: 6px; }
  .market-identity { gap: 6px; }
  .market-identity img { width: 26px; height: 26px; }
  .market-stage-tabs { gap: 8px; }
  .market-stage-tabs a { font-size: 11px; }
  .market-sort { max-width: 100px; }
}

}

/* 真实交易表单：买卖方向用分段选择，数量与滑点沿用原型输入框。 */
.launch-trade-form { display: grid; gap: 10px; }
.launch-trade-side { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.launch-trade-side label { position: relative; cursor: pointer; }
.launch-trade-side input { position: absolute; opacity: 0; pointer-events: none; }
.launch-trade-side span {
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 8px;
  border: 1px solid var(--line); border-radius: 10px; font-weight: 600;
}
.launch-trade-side small { font-size: 11px; font-weight: 400; color: var(--muted); }
.launch-trade-side input:checked + span {
  border-color: var(--accent); color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}
.launch-trade-side input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.launch-trade-form .launch-note { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
/* 真实存证与合约地址：长哈希在窄屏内换行。 */
.launch-chain-facts { display: grid; gap: 10px; margin: 12px 0; }
.launch-chain-facts div { display: grid; gap: 4px; min-width: 0; }
.launch-chain-facts dt { font-size: 12px; color: var(--muted); }
.launch-chain-facts dd { margin: 0; min-width: 0; }
.launch-chain-facts code { font-size: 11px; line-height: 1.6; word-break: break-all; }
