:root {
  color-scheme: light;
  --page: #f4eedf; --surface: #fcf8ed; --soft: #eae1cd; --ink: #3e3529;
  --muted: #746651; --line: #d9cdb5; --input-line: #978970;
  --accent: #715834; --accent-solid: #876a3e; --accent-soft: #e8dcc0;
  --on-accent: #fff9e9; --error: #a14634; --focus: #8b6935;
  font-family: "Aptos", "Microsoft YaHei UI", "PingFang SC", sans-serif;
  font-size: 16px; font-synthesis: none;
}
:root[data-theme="dark"] { color-scheme: dark; --page: #25211a; --surface: #2e281f; --soft: #3d3529; --ink: #f0e5cd; --muted: #c3b397; --line: #514634; --input-line: #8c7b60; --accent: #d5ba86; --accent-solid: #c4a168; --accent-soft: #463a27; --on-accent: #2b2113; --error: #efac92; --focus: #dfc68f; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 32px; }
body { margin: 0; background: var(--page); color: var(--ink); line-height: 1.5; }
button, input, select, textarea { font: inherit; }
button, a, summary { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled, input:disabled, select:disabled { cursor: not-allowed; opacity: .48; }
a { color: inherit; text-decoration: none; }
button, a { transition: background-color 150ms, color 150ms, border-color 150ms; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--focus); outline-offset: 1px; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
h1, h2, h3, p, dl { margin: 0; }
h2 { font-size: 1rem; font-weight: 600; }
h3 { font-size: .9375rem; font-weight: 600; }
small { font-size: .75rem; }
input, select, textarea { width: 100%; min-width: 0; min-height: 46px; border: 1px solid var(--input-line); border-radius: 3px; background: var(--surface); color: var(--ink); padding: 11px 13px; font-size: .875rem; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
input[readonly] { background: var(--soft); }
textarea { resize: vertical; }
select { cursor: pointer; }
.skip-link { position: fixed; top: -80px; left: 16px; padding: 12px 18px; z-index: 10; background: var(--accent); color: var(--on-accent); }
.skip-link:focus { top: 12px; }
.topbar { min-height: 72px; padding: 12px clamp(20px, 4vw, 64px); border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 28px; background: var(--page); }
.brand, .topbar-end { display: flex; align-items: center; gap: 12px; }
.brand svg { width: 27px; height: 27px; color: var(--accent-solid); }
.brand strong { font-size: 1.125rem; letter-spacing: -.04em; font-weight: 700; }
.brand > span { font-size: .625rem; color: var(--muted); letter-spacing: .15em; padding-left: 12px; border-left: 1px solid var(--line); }
.topnav { display: flex; align-items: center; gap: 24px; order: 3; width: 100%; font-size: .8125rem; color: var(--muted); }
.topnav a { padding: 8px 0; white-space: nowrap; }
.topnav a:hover, .topnav .active { color: var(--ink); }
.topnav .active { font-weight: 600; border-bottom: 1px solid var(--accent-solid); }
#logBadge { font-size: .6875rem; margin-left: 3px; }
.connection { font-size: .75rem; color: var(--muted); display: flex; align-items: center; gap: 7px; }
.connection i, .log-led, .loop-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--muted); flex: none; }
.connection i.connected, .log-led.complete, .loop-dot.running { background: var(--accent); }
.connection i.error, .log-led.failed { background: var(--error); }
.icon-button { width: 40px; height: 40px; padding: 8px; display: inline-flex; align-items: center; justify-content: center; background: transparent; border: 1px solid var(--line); border-radius: 3px; font-size: 1.25rem; color: var(--ink); }
.icon-button:hover { background: var(--soft); }
.page { max-width: 1320px; margin: 0 auto; padding: 40px 20px 20px; }
.page-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 36px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.eyebrow { font-size: .625rem; font-weight: 600; letter-spacing: .16em; color: var(--muted); margin-bottom: 10px; }
h1 { font-size: clamp(2rem, 4.5vw, 3.5rem); line-height: 1.2; font-weight: 650; letter-spacing: -.055em; }
h1 > span { color: var(--accent-solid); padding-left: 3px; }
.workspace-label { display: none; font-size: .75rem; color: var(--muted); }
.launch-layout { display: grid; gap: 32px; align-items: start; }
.editor, .review-column { min-width: 0; }
.form-section { padding-bottom: 24px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.section-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.section-heading > .text-button, .section-heading > .field-note { margin-left: auto; }
.section-number { font-size: .75rem; color: var(--accent); font-variant-numeric: tabular-nums; }
.field-group { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; min-width: 0; }
label, legend { font-size: .8125rem; font-weight: 500; }
.field-group > label { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.label-hint { font-size: .6875rem; font-weight: 400; color: var(--muted); }
.field-note { display: block; font-size: .75rem; line-height: 1.6; color: var(--muted); overflow-wrap: anywhere; }
.field-note a { text-decoration: underline; text-underline-offset: 3px; }
.wallet-balance { margin: -4px 0 22px; padding: 13px 0; border-block: 1px solid var(--line); }
.balance-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: .75rem; }
.balance-heading button { min-height: 44px; flex: none; }
.balance-values { display: flex; flex-wrap: wrap; gap: 6px 20px; align-items: baseline; margin-bottom: 6px; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.balance-values strong { font-size: 1.125rem; font-weight: 600; }
.balance-values > span { font-size: .875rem; }
.wallet-balance[data-status="zero"] #balanceNote, .wallet-balance[data-status="unavailable"] #balanceNote, .wallet-balance[data-status="warning"] #balanceNote { color: var(--error); }
.field-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 16px; }
.suffix-input { display: flex; align-items: center; min-width: 0; background: var(--surface); border: 1px solid var(--input-line); border-radius: 3px; }
.suffix-input:focus-within { outline: 2px solid var(--focus); outline-offset: 1px; }
.suffix-input input { border: 0; background: transparent; outline: 0; }
.suffix-input > span { color: var(--muted); font-size: .75rem; padding-right: 13px; white-space: nowrap; }
.mode-field { margin: 0; padding: 0; border: 0; min-width: 0; }
.mode-field legend { margin-bottom: 8px; }
.mode-switch { display: flex; gap: 0; border: 1px solid var(--input-line); border-radius: 3px; background: var(--surface); margin-bottom: 7px; }
.mode-switch label { flex: 1; position: relative; cursor: pointer; }
.mode-switch input { position: absolute; width: 1px; height: 1px; min-height: 0; opacity: 0; }
.mode-switch label > span { display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 44px; padding: 8px 12px; color: var(--muted); border: 1px solid transparent; }
.mode-switch small { font-size: .75rem; font-weight: 400; }
.mode-switch input:checked + span { color: var(--ink); background: var(--soft); border-bottom-color: var(--accent-solid); }
.mode-switch input:focus-visible + span { outline: 2px solid var(--focus); }
.mode-switch input:disabled + span { opacity: .45; cursor: not-allowed; }
.image-picker { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.image-picker-button { display: flex; align-items: center; gap: 15px; width: 100%; border: 1px dashed var(--input-line); border-radius: 3px; padding: 20px; cursor: pointer; background: var(--surface); }
.image-picker-button:hover { border-color: var(--accent); }
.image-picker-button svg { color: var(--muted); }
.image-picker-button small { display: block; font-weight: 400; color: var(--muted); margin-top: 3px; }
.image-selection { display: flex; align-items: center; gap: 12px; margin-top: 7px; overflow: hidden; }
.image-selection img { width: 56px; height: 56px; object-fit: cover; border-radius: 5px; }
.image-selection strong { display: block; font-size: .8125rem; overflow-wrap: anywhere; }
.image-selection small { color: var(--muted); }
.option-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 0; }
.option-row strong { display: block; font-size: .8125rem; font-weight: 500; }
.option-row small { display: block; font-weight: 400; margin-top: 4px; color: var(--muted); }
input[role="switch"] { appearance: none; flex: none; width: 38px; min-height: 22px; height: 22px; padding: 2px; border-radius: 20px; background: var(--line); border: 0; cursor: pointer; }
input[role="switch"]::before { content: ""; display: block; width: 18px; height: 18px; border-radius: 50%; background: var(--surface); transition: transform 150ms; }
input[role="switch"]:checked { background: var(--accent); }
input[role="switch"]:checked::before { transform: translateX(16px); background: var(--on-accent); }
.disclosure { border-top: 1px solid var(--line); }
.disclosure summary { list-style: none; min-height: 48px; padding: 14px 0; display: flex; align-items: center; gap: 12px; font-size: .8125rem; font-weight: 500; cursor: pointer; }
.disclosure summary::-webkit-details-marker { display: none; }
.disclosure summary::after { content: "+"; margin-left: auto; color: var(--muted); font-size: 1rem; font-weight: 400; }
.disclosure[open] > summary::after { content: "−"; }
.disclosure summary > span:last-child:not(:first-child) { font-size: .6875rem; color: var(--muted); font-weight: 400; }
.disclosure-body { padding: 12px 0 4px; }
#advancedSettings { border-top: 0; }
.review-panel { border: 1px solid var(--line); border-radius: 3px; background: var(--surface); padding: 28px; }
.review-panel > .eyebrow { margin-bottom: 20px; }
.review-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.mode-badge { background: var(--accent-soft); color: var(--accent); font-size: .75rem; padding: 3px 8px; border-radius: 2px; }
.review-platform { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.review-platform > span { font-size: 1.125rem; color: var(--ink); border: 1px solid var(--input-line); width: 40px; height: 40px; display: grid; place-items: center; border-radius: 2px; }
.review-platform strong { display: block; font-size: .9375rem; font-weight: 500; }
.review-platform small { color: var(--muted); }
.review-facts { display: grid; gap: 13px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.review-facts div { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: .8125rem; }
dt { color: var(--muted); }
dd { margin: 0; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.primary-actions { display: grid; gap: 10px; margin-top: 20px; }
.primary-button, .secondary-button { min-height: 48px; border: 1px solid var(--ink); border-radius: 3px; padding: 12px 16px; font-size: .875rem; font-weight: 600; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.primary-button { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.primary-button:hover:not(:disabled) { background: color-mix(in oklch, var(--accent), var(--ink) 18%); border-color: var(--accent); color: var(--on-accent); }
.secondary-button { border-color: var(--input-line); background: transparent; color: var(--ink); }
.secondary-button:hover:not(:disabled) { background: var(--soft); }
.text-button { border: 0; background: transparent; color: var(--accent); padding: 8px 0; min-height: 36px; font-size: .75rem; font-weight: 500; text-align: left; }
.text-button:hover { text-decoration: underline; text-underline-offset: 4px; }
#stepControls { margin-top: 20px; }
#stepControls summary { font-size: .75rem; color: var(--muted); padding-bottom: 0; }
.step-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 16px; }
.progress-panel { padding: 28px 24px 8px; }
.progress-panel header { display: flex; align-items: center; justify-content: space-between; }
.progress-panel h2 { font-size: .8125rem; }
#progressLabel { font-size: .6875rem; color: var(--muted); }
.pipeline { list-style: none; padding: 16px 0 0; margin: 0; }
.stage { display: flex; gap: 12px; align-items: center; min-height: 36px; position: relative; color: var(--muted); font-size: .75rem; }
.stage strong { font-weight: 400; }
.stage:not(:last-child)::after { content: ""; width: 1px; height: 14px; background: var(--line); position: absolute; left: 10px; top: 29px; }
.stage-index { width: 21px; height: 21px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; font-size: .625rem; }
.stage.current { color: var(--accent); }
.stage.current .stage-index { border-color: var(--accent); }
.stage.complete .stage-index { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.stage.failed { color: var(--error); }
.stage.failed .stage-index { border-color: var(--error); }
.loop-heading { display: flex; align-items: center; gap: 7px; margin: 18px 0; }
.loop-heading h3 { font-size: .8125rem; }
#loopState { margin-left: auto; font-size: .5625rem; }
.loop-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; font-size: .6875rem; margin-bottom: 16px; }
.loop-metrics dd { font-size: .8125rem; margin-top: 2px; }
.notice { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 16px; margin-bottom: 20px; background: var(--accent-soft); color: var(--accent); border-radius: 3px; font-size: .8125rem; }
.history-section { margin-top: 44px; padding: 28px 0; border-top: 1px solid var(--line); }
.history-section .section-heading { margin-bottom: 18px; }
.launch-feature { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
.launch-thumbnail { position: relative; background: var(--soft); color: var(--muted); width: 52px; height: 52px; border-radius: 8px; overflow: hidden; display: grid; place-items: center; font-size: 1.5rem; flex: none; }
.launch-thumbnail img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.launch-identity { flex: 1; min-width: 130px; }
.launch-identity p, .launch-identity small { font-size: .75rem; color: var(--muted); }
.launch-identity small { display: block; font-size: .625rem; overflow-wrap: anywhere; }
.token-facts { width: 100%; display: flex; flex-wrap: wrap; gap: 16px 24px; font-size: .6875rem; }
.token-facts dd { color: var(--ink); margin-top: 4px; font-size: .8125rem; }
.log-panel { border-bottom: 1px solid var(--line); }
.log-panel summary { min-height: 56px; }
.log-panel summary > span:first-child { display: flex; align-items: center; gap: 8px; }
.log-panel summary > span:nth-child(2) { margin-left: auto; }
.log-panel summary::after { margin-left: 4px; }
.log-toolbar { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: .6875rem; }
.log-toolbar .text-button { margin-left: 18px; }
.log-terminal { background: var(--soft); border-radius: 6px; padding: 14px; max-height: 300px; overflow: auto; margin-bottom: 20px; }
.log-line { display: flex; align-items: baseline; gap: 12px; font-size: .6875rem; line-height: 1.8; }
.log-line time { color: var(--muted); white-space: nowrap; flex: none; }
.log-line span { white-space: pre-wrap; overflow-wrap: anywhere; min-width: 0; }
.log-line.error { color: var(--error); }
.page-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 24px; color: var(--muted); font-size: .625rem; }
.page-footer > span:first-child { letter-spacing: .16em; }
dialog { border: 1px solid var(--input-line); border-radius: 4px; background: var(--surface); color: var(--ink); padding: 0; width: min(440px, calc(100% - 32px)); }
dialog::backdrop { background: #2b241bb3; }
.confirm-sheet { padding: 28px; overflow-wrap: anywhere; }
.notice > span { min-width: 0; overflow-wrap: anywhere; }
.notice > button { flex: none; }
.confirm-sheet h2 { font-size: 1.375rem; margin-bottom: 12px; }
.confirm-sheet > p:not(.eyebrow) { font-size: .8125rem; color: var(--muted); margin-bottom: 24px; }
.confirm-sheet > label { display: block; margin-bottom: 10px; }
.confirm-sheet strong { font-size: .75rem; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 12px); opacity: 0; pointer-events: none; background: var(--ink); color: var(--surface); padding: 12px 18px; border-radius: 7px; font-size: .8125rem; max-width: min(600px, calc(100% - 32px)); width: max-content; transition: opacity 150ms, transform 150ms; z-index: 50; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }
.wallet-controls { margin: 0 0 18px; }
.wallet-import { border-top: 1px solid var(--line); }
.wallet-consent { display: flex; align-items: center; gap: 10px; font-size: .75rem; margin: 8px 0 12px; }
.wallet-consent input { width: 18px; min-height: 18px; height: 18px; padding: 0; flex: none; accent-color: var(--accent); }
.wallet-error { color: var(--error); min-height: 20px; margin-bottom: 8px; }
.wallet-import .secondary-button { width: 100%; }
.wallet-import summary { color: var(--accent); }
.wallet-import[open] { margin-bottom: 16px; }
.wallet-import .disclosure-body { padding-bottom: 16px; }
.asset-picker { margin: 20px 0; }
.asset-picker h3 { margin-bottom: 14px; }
.asset-categories { display: flex; gap: 12px; margin-bottom: 16px; }
.asset-categories button { min-height: 44px; padding: 8px 16px; border: 1px solid var(--input-line); border-radius: 0; color: var(--ink); background: var(--surface); font-size: .8125rem; font-weight: 600; }
.asset-categories button[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.asset-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 14px; }
.asset-choice { display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 0; min-height: 48px; padding: 9px 7px; border: 1px solid var(--input-line); border-radius: 0; color: var(--ink); background: var(--surface); font-size: .8125rem; }
.asset-choice:hover:not(:disabled) { border-color: var(--accent); background: var(--soft); }
.asset-choice[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.asset-choice img { width: 20px; height: 20px; object-fit: contain; border-radius: 50%; flex: none; }
.asset-choice > span { min-width: 0; text-align: left; }
.asset-choice strong { display: block; font-weight: 600; }
.asset-choice small { display: block; font-size: .625rem; line-height: 1.35; color: var(--muted); }
.asset-picker > .field-note { margin-top: 13px; }
@media (max-width: 600px) { .asset-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.tax-allocation { margin: 26px 0 18px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.allocation-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.allocation-heading h3 { margin-bottom: 4px; }
.allocation-heading button { flex: none; }
.allocation-layout { display: grid; grid-template-columns: 1fr; gap: 20px; align-items: center; }
.tax-wheel { position: relative; width: 168px; aspect-ratio: 1; margin: 0 auto; }
.tax-wheel svg { display: block; width: 100%; height: 100%; transform: rotate(-90deg); }
.tax-ring-track, .tax-ring-segment { fill: none; stroke-width: 23; stroke-linecap: butt; }
.tax-ring-track { stroke: var(--soft); }
.tax-ring-segment { stroke: var(--allocation-color); }
.tax-marketing { --allocation-color: #7c8853; }
.tax-burn { --allocation-color: #968278; }
.tax-dividend { --allocation-color: #b17b43; }
.tax-lp { --allocation-color: #5f8779; }
:root[data-theme="dark"] .tax-marketing { --allocation-color: #a5b27e; }
:root[data-theme="dark"] .tax-burn { --allocation-color: #b39d92; }
:root[data-theme="dark"] .tax-dividend { --allocation-color: #d3a469; }
:root[data-theme="dark"] .tax-lp { --allocation-color: #8eafa1; }
.tax-wheel-label { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; }
.tax-wheel-label strong { font-size: 1.625rem; font-weight: 600; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.tax-wheel-label small { color: var(--muted); font-size: .6875rem; }
.tax-sliders { min-width: 0; }
.tax-slider + .tax-slider { margin-top: 9px; }
.tax-slider label { display: flex; align-items: center; justify-content: space-between; font-size: .75rem; gap: 10px; }
.tax-slider label span { display: flex; align-items: center; gap: 8px; }
.tax-slider i { width: 7px; height: 7px; border-radius: 50%; background: var(--allocation-color); flex: none; }
.tax-slider output { border: 1px solid var(--line); border-radius: 4px; padding: 2px 7px; min-width: 48px; text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); }
.tax-slider input[type="range"] { appearance: auto; accent-color: var(--allocation-color); border: 0; background: transparent; padding: 0; min-height: 36px; height: 36px; width: 100%; cursor: pointer; }
.tax-slider input[type="range"]:focus-visible { outline-offset: 0; }
@media (min-width: 560px) { .allocation-layout { grid-template-columns: 168px minmax(0, 1fr); gap: 24px; } }
@media (min-width: 680px) { .page { padding: 48px 36px 24px; } .workspace-label { display: block; } .token-facts { width: auto; margin-left: auto; } }
@media (min-width: 960px) { .topnav { order: 0; width: auto; } .launch-layout { grid-template-columns: minmax(0, 1fr) 352px; gap: 64px; } .review-column { position: sticky; top: 28px; } .page-heading { margin-bottom: 40px; } }
@media (max-width: 480px) { .brand > span { display: none; } .connection { font-size: .625rem; } .topbar-end { gap: 8px; } .field-grid { gap: 0 12px; } .review-panel { padding: 20px; } .section-heading { gap: 10px; } .image-picker-button { padding: 16px; } }
@media (pointer: coarse) { .text-button, .icon-button, .topnav a, .tax-slider input[type="range"] { min-height: 44px; } input, select, textarea { font-size: 1rem; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before { transition: none !important; } }
