/* Launch a coin: a compact form on the left and a sticky live coin preview on the right.
   Colours come from the shared tokens in style.css (mint on dark). */
.plant-main { max-width: 1240px; margin: auto; padding: 34px var(--gutter) 80px; }
.plant-intro { max-width: 680px; margin-bottom: 18px; }
.plant-intro-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.plant-intro h1 { font: 700 clamp(2.2rem, 4.4vw, 3rem)/1.04 var(--display); font-stretch: 85%; letter-spacing: -.045em; margin: 10px 0 12px; }
.plant-intro > p:last-child { max-width: 560px; font-size: 15px; line-height: 1.6; color: var(--muted); }
.eyebrow { margin: 0; font: 500 11px var(--mono); letter-spacing: .13em; color: var(--hype); }

.plant-status { display: flex; align-items: center; gap: 12px; margin: 18px 0; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; font-size: 13px; line-height: 1.6; color: var(--muted); }
.plant-status[data-state=ok] { color: var(--hype); }
.plant-status[data-state=error] { color: var(--danger); border-color: rgba(255, 159, 136, .35); background: rgba(255, 159, 136, .05); }
.plant-status[data-state=preview] { color: var(--preview); border-color: var(--preview-line); background: var(--preview-bg); }
.plant-disabled { display: grid; gap: 6px; margin: 18px 0; padding: 16px 18px; border: 1px dashed var(--preview-line); border-radius: 12px; background: var(--preview-bg); font-size: 13px; line-height: 1.65; color: #d9cfb8; }
.plant-disabled strong { color: var(--preview); font-weight: 600; }
.plant-disabled p { margin: 0; }

.plant-layout { display: grid; grid-template-columns: minmax(0, 1fr) 370px; gap: 24px; align-items: start; }
#plant-form { min-width: 0; }
.plant-step { margin-bottom: 16px; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--ground-2); }
.step-title { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.step-title > span { display: grid; place-items: center; flex: none; width: 27px; height: 27px; border: 1px solid var(--line); border-radius: 50%; font: 10px var(--mono); color: var(--hype); }
.plant-step h2 { margin: 0; font: 600 22px var(--display); letter-spacing: -.02em; }
.plant-step label:not(.reward-choice) { display: block; margin: 12px 0; font-size: 12px; color: var(--muted); }
.plant-step input:not([type=radio]):not([type=checkbox]), .plant-step textarea { display: block; width: 100%; margin-top: 6px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--ground); color: var(--text); font-family: inherit; font-size: 14px; transition: border-color .15s; }
.plant-step textarea { resize: vertical; min-height: 84px; }
.plant-step input:hover:not(:disabled), .plant-step textarea:hover:not(:disabled) { border-color: #3a4d40; }
.plant-step input:focus, .plant-step textarea:focus { outline: none; border-color: var(--hype); box-shadow: 0 0 0 3px rgba(124, 240, 203, .14); }
.plant-step small { display: block; margin-top: 6px; font-size: 11px; line-height: 1.6; color: var(--faint); }
.two-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.plant-note { font-size: 12px; line-height: 1.75; color: var(--muted); overflow-wrap: anywhere; }
.mono { font: 12px var(--mono); overflow-wrap: anywhere; }

/* Image upload */
.image-upload { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 4px 0 12px; }
.image-label { width: 100%; margin: 0; font-size: 12px; color: var(--muted); }
.image-square { position: relative; display: grid; place-items: center; flex: none; width: 104px; height: 104px; padding: 0; overflow: hidden; border: 1px dashed var(--faint); border-radius: 14px; background: var(--ground); color: var(--hype-hover); font: inherit; cursor: pointer; transition: border-color .15s, background .15s; }
.image-square:hover, .image-square.drag-over { border-color: var(--hype); background: var(--panel); }
.image-square:focus-visible { outline: 2px solid var(--hype); outline-offset: 4px; }
.image-square:disabled { cursor: wait; opacity: .6; }
.image-square > img { display: block; width: 100%; height: 100%; object-fit: contain; }
.image-square #image-placeholder { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.image-square strong { font-size: 12px; font-weight: 500; }
.image-change { position: absolute; inset: auto 0 0; padding: 6px; background: rgba(4, 28, 24, .82); color: var(--text); font-size: 11px; text-align: center; }
.image-upload #image-note { flex: 1; min-width: 160px; max-width: 280px; margin: 0; }

.optional-details { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.optional-details summary { font-size: 12px; color: var(--muted); cursor: pointer; }
.optional-details summary > span { margin-left: 8px; font: 10px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }

/* Pair */
.fixed-pair { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--hype); border-radius: 12px; background: var(--panel-2); box-shadow: inset 0 0 0 1px rgba(124, 240, 203, .35); }
.fixed-pair img { flex: none; border-radius: 9px; }
.fixed-pair strong { font-size: 16px; letter-spacing: -.02em; }
.fixed-pair p { margin: 3px 0 0; font-size: 11px; color: var(--muted); }
.pair-check { display: grid; place-items: center; flex: none; width: 19px; height: 19px; margin-left: auto; border-radius: 50%; background: var(--hype); color: var(--hype-ink); font-size: 11px; font-weight: 700; }
.plant-step > .text-link { display: inline-block; font-size: 12px; }

/* Rewards */
.reward-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; }
.reward-choice { display: flex; align-items: flex-start; gap: 12px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--ground); cursor: pointer; transition: border-color .15s, background .15s; }
.reward-choice:hover { border-color: rgba(124, 240, 203, .5); }
.reward-choice:has(input:checked) { border-color: var(--hype); background: var(--panel-2); }
.reward-choice:has(input:focus-visible) { outline: 2px solid var(--hype); outline-offset: 3px; }
.reward-choice input { margin-top: 3px; accent-color: var(--hype); }
.reward-choice strong { display: block; font-size: 14px; }
.reward-choice small { margin-top: 4px; font-size: 11px; line-height: 1.5; }
.fund-choice { grid-column: 1 / -1; }
.fund-choice-title { display: flex; align-items: center; gap: 6px; }
.fund-choice-title .hype-icon { width: 1.25em; height: 1.25em; vertical-align: 0; }
.reward-choice .fund-choice-note { display: block; color: var(--muted); }
.reward-choice .fund-availability { display: block; font-weight: 600; color: var(--hype); }
.reward-choice .fund-availability:empty { display: none; }
.fund-choice[data-available="false"] { cursor: not-allowed; opacity: .55; filter: grayscale(.6); }
.fund-choice[data-available="false"]:hover { border-color: var(--line); }
.fund-choice[data-available="false"] .fund-availability { color: var(--muted); }
#creator-payee { overflow-wrap: anywhere; color: var(--text); }

/* Dev buy, cost line and launch */
.dev-buy { margin: 14px 0 4px; }
.optional-label { margin-left: 6px; font-size: 11px; color: var(--faint); }
.dev-buy-input { display: flex; align-items: center; margin-top: 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--ground); transition: border-color .15s; }
.dev-buy-input:hover { border-color: #3a4d40; }
.dev-buy-input:focus-within { border-color: var(--hype); box-shadow: 0 0 0 3px rgba(124, 240, 203, .14); }
#plant-dev-buy { flex: 1; min-width: 0; margin: 0; border: 0; background: transparent; box-shadow: none; font-family: var(--mono); }
.dev-buy-input span { padding: 0 12px; font: 12px var(--mono); color: var(--muted); }
.dev-buy-presets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.dev-buy-presets button { min-width: 52px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--ground); color: var(--text); font: 12px var(--mono); cursor: pointer; transition: border-color .15s, background .15s; }
.dev-buy-presets button:hover:not(:disabled) { border-color: rgba(124, 240, 203, .5); }
.dev-buy-presets button[aria-pressed=true] { border-color: var(--hype); background: var(--panel-2); color: var(--hype-hover); }
.dev-buy-presets button:focus-visible { outline: 2px solid var(--hype); outline-offset: 2px; }
.dev-buy-presets button:disabled { cursor: not-allowed; opacity: .6; }
#dev-buy-balance { color: var(--muted); }
.launch-cost { margin: 14px 0 0; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--ground); font: 12px/1.6 var(--mono); color: var(--muted); overflow-wrap: anywhere; }
.launch-cost[data-state=ok] { color: var(--text); }
.launch-cost[data-state=error] { color: var(--danger); border-color: rgba(255, 159, 136, .35); }
.full { width: 100%; justify-content: center; }
#launch-plant:disabled { cursor: not-allowed; }

/* Live preview */
.plant-preview { position: sticky; top: 92px; min-width: 0; }
.preview-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 2px 12px; }
.preview-heading > span:last-child { font: 10px var(--mono); color: var(--muted); }
.preview-card { margin-bottom: 14px; padding: 22px; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: radial-gradient(120% 80% at 0 0, rgba(124, 240, 203, .07), transparent 60%), linear-gradient(145deg, var(--ground-2), var(--ground)); }
.preview-token-head { display: flex; align-items: center; gap: 16px; min-width: 0; }
.preview-token-head > div:last-child { min-width: 0; }
.preview-art { display: grid; place-items: center; flex: none; width: 84px; height: 84px; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--ground); }
.preview-art img { display: block; width: 84px; height: 84px; object-fit: contain; }
.preview-image-empty { display: grid; place-items: center; color: var(--faint); opacity: .7; }
.preview-card h2 { margin: 0 0 6px; font: 600 24px/1.15 var(--display); letter-spacing: -.02em; overflow-wrap: anywhere; }
.preview-token-head .mono { margin: 0; font-size: 11px; color: var(--muted); }
.preview-tag { display: inline-block; margin-top: 18px; padding: 5px 10px; border-radius: 999px; background: var(--panel-2); color: var(--hype-hover); font-size: 10px; line-height: 1.5; }
.preview-card #preview-description { max-height: 110px; margin: 14px 0 0; overflow: auto; font-size: 12px; line-height: 1.6; color: var(--muted); white-space: pre-line; overflow-wrap: anywhere; }
.preview-socials { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 18px; font-size: 11px; }
.preview-socials span { padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--text); }
.preview-socials span.invalid { border-color: rgba(255, 159, 136, .4); color: var(--danger); }
.preview-socials .value-missing { padding: 4px 0; border: 0; color: var(--faint); }
.preview-market { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding-top: 15px; border-top: 1px solid var(--line); }
.preview-market small { display: block; margin-bottom: 7px; font: 9px var(--mono); letter-spacing: .08em; color: var(--faint); }
.preview-market strong { font: 22px var(--mono); color: var(--faint); }
.preview-market > span { font-size: 10px; color: var(--muted); }
.preview-caption { margin: 16px 0 0; font-size: 10px; color: var(--faint); }
.preview-summary { margin-bottom: 14px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--ground-2); }
.preview-summary h3 { margin: 0 0 16px; font: 600 17px var(--display); }
.preview-summary dl { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 13px 15px; margin: 0; font-size: 12px; }
.preview-summary dt { color: var(--muted); }
.preview-summary dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.preview-pair { display: flex; align-items: center; justify-content: flex-end; gap: 7px; }
.preview-pair img { border-radius: 5px; }
.preview-summary p { margin: 16px 0 0; padding-top: 13px; border-top: 1px solid var(--line); font-size: 10px; line-height: 1.7; color: var(--faint); }
.preview-economics { padding: 16px 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--ground-2); }
.preview-economics > summary { font-size: 12px; color: var(--muted); cursor: pointer; }
.preview-economics h3 { margin: 18px 0 0; font: 600 18px/1.25 var(--display); }
.preview-economics dl { display: grid; grid-template-columns: 1fr auto; gap: 12px; margin: 16px 0; font-size: 11px; }
.preview-economics dt { color: var(--muted); }
.preview-economics dd { margin: 0; font-family: var(--mono); color: var(--hype); }
.preview-economics .plant-note { margin: 0 0 6px; font-size: 11px; }

.plant-success { margin-top: 22px; padding: 28px; border: 1px solid var(--hype); border-radius: 18px; background: var(--panel); }
.plant-success h2 { font-family: var(--display); }
.plant-success p { margin: 8px 0 12px; line-height: 1.75; color: var(--muted); }
.plant-success .button { margin: 6px 8px 0 0; }
[hidden] { display: none !important; }

@media (max-width: 1000px) {
  .plant-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; }
  .preview-card { padding: 18px; }
  .preview-token-head { gap: 12px; }
}
@media (max-width: 860px) {
  .reward-options { grid-template-columns: 1fr; }
  .two-fields { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .plant-layout { grid-template-columns: 1fr; }
  .plant-preview { position: static; }
}
@media (max-width: 640px) {
  .plant-main { padding: 24px 16px 48px; }
  .plant-step { padding: 18px; }
  .two-fields { grid-template-columns: 1fr 1fr; gap: 0 12px; }
  .preview-art, .preview-art img { width: 72px; height: 72px; }
  .preview-card h2 { font-size: 21px; }
  .plant-intro > p:last-child { font-size: 13px; }
}
@media (max-width: 380px) {
  .two-fields { grid-template-columns: 1fr; }
}
.fixed-pair + .plant-note { margin-top: 12px; }
.plant-disabled .text-link { justify-self: start; }
/* Real HYPE token logo on a rounded dark tile, so its mint-green shape reads on dark panels. */
.token-tile { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px; background: #0b1110; box-shadow: inset 0 0 0 1px rgba(124, 240, 203, .22); }
.token-tile img { display: block; object-fit: contain; border-radius: 0; }
.token-tile.small { width: 20px; height: 20px; border-radius: 6px; }
.fixed-pair .token-tile img { border-radius: 0; }
.preview-symbol-row { display: flex; align-items: center; gap: 7px; margin: 3px 0 0; }
.token-inline { display: inline-flex; align-items: center; gap: 4px; vertical-align: middle; }
.token-inline .token-tile.small { width: 16px; height: 16px; border-radius: 5px; }
.dev-buy-estimate { margin: 8px 0 2px; font: 12px/1.5 var(--mono); color: var(--hype-hover); }
.dev-buy-estimate:empty { display: none; }
