/* Launch-only design layer. Shared styles, routes and execution stay unchanged. */
#launch-view {
  max-width: 1248px;
  margin-inline: auto;
  padding-bottom: 40px;
  color: var(--ink);
}
/* Override the older viewport-height fit grid, including its first-paint route rule. */
#launch-view:is(:not([hidden]), html[data-route=launch] *) {
  display: block;
  min-height: 0;
}
#launch-view > .title-row {
  margin: 48px 0 24px;
  align-items: flex-end;
  gap: 24px;
}
#launch-view .title-row .eyebrow { margin: 0 0 16px; color: var(--accent); font-size: 11px; letter-spacing: .16em; }
#launch-view .title-row h1 { max-width: 17ch; margin: 0 0 16px; font-size: clamp(36px, 4.4vw, 60px); line-height: 1.06; letter-spacing: -.045em; font-weight: 730; }
#launch-view .title-row .subtitle { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.6; }
#launch-view .title-row > .text-link { display: inline-flex; align-items: center; flex-shrink: 0; gap: 8px; }
#launch-view .launch-about { display: block; }
#launch-view #launch-availability { margin: 0 0 32px; padding: 14px 18px; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 0 12px 12px 0; background: var(--card); font-size: 13px; line-height: 1.6; }
#launch-view .launch-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; }
#launch-view #launch-form { display: block; padding: 32px; border-radius: 16px; background: var(--card); border-color: var(--line); box-shadow: none; min-width: 0; }
#launch-view #edit-fields { display: block; }
#launch-view .panel label { margin: 24px 0; font-size: 14px; font-weight: 550; }
#launch-view .panel small { margin-top: 8px; font-size: 12px; line-height: 1.6; font-weight: 400; color: var(--muted); }
#launch-view :is(input:not([type=file]), textarea, select) { min-height: 48px; min-width: 0; max-width: 100%; padding: 12px 14px; background: var(--bg); color: var(--ink); border: 1px solid var(--line); border-radius: 10px; font-size: 16px; }
#launch-view :is(input, textarea)::placeholder { color: var(--muted); opacity: 1; }
#launch-view #edit-fields > label[for=token-description] textarea { height: 128px; min-height: 128px; line-height: 1.6; }
#launch-view .field-pair { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; }
#launch-view #edit-fields > .upload { height: 176px !important; margin: 0 0 8px !important; padding: 20px; justify-content: center; background: var(--bg); border: 1px dashed var(--muted); border-radius: 12px; }
#launch-view #edit-fields > .upload #upload-copy { display: grid; grid-template-columns: 56px auto; column-gap: 20px; align-items: center; text-align: left; }
#launch-view #edit-fields > .upload .upload-symbol { grid-row: span 2; margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
#launch-view .upload strong { font-size: 15px; font-weight: 600; }
#launch-view #edit-fields > .upload img { width: 132px; height: 132px; }
#launch-view #edit-fields > .launch-policy { display: block; margin: 32px 0; padding: 28px 0 0; background: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; }
#launch-view .launch-policy > legend { padding: 0 12px 0 0; color: var(--muted); font-size: 12px; letter-spacing: .08em; }
#launch-view .choice-heading { margin: 0 0 20px; gap: 12px; align-items: flex-start; }
#launch-view .choice-number { width: 32px; height: 32px; color: var(--accent); background: var(--bg); border-color: var(--line); border-radius: 10px; }
#launch-view .choice-heading h3 { margin: 0 0 4px; font-size: 17px; line-height: 1.4; letter-spacing: -.02em; }
#launch-view .choice-heading p { margin: 0; color: var(--muted); font-size: 13px; }
#launch-view .pair-selection { display: block; }
#launch-view .launch-policy .pair-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 0 18px; }
#launch-view .launch-policy .pair-cards button { display: flex; flex-direction: row; align-items: center; gap: 12px; padding: 20px 30px 20px 16px; min-height: 100px !important; height: auto !important; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; box-shadow: none; }
#launch-view .launch-policy .pair-cards strong { font-size: 14px; line-height: 1.4; }
#launch-view .launch-policy .pair-cards small { font-size: 12px; margin-top: 4px; color: var(--muted); }
#launch-view .launch-policy .pair-mark, #launch-view .launch-policy .mode-icon { transform: none; margin: 0; background: var(--card); border-color: var(--line); width: 36px; height: 36px; border-radius: 10px; }
#launch-view .launch-policy .choice-check { top: 12px; right: 10px; transform: none; background: var(--bg); width: 18px; height: 18px; }
#launch-view .choice-check svg { width: 18px; height: 18px; }
#launch-view .fee-heading { margin-top: 28px; }
#launch-view .fee-mode-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 16px; }
#launch-view .launch-policy .fee-mode-cards button { display: flex; flex-direction: column; align-items: flex-start; text-align: left; gap: 10px; min-height: 144px !important; height: auto !important; padding: 18px 14px; background: var(--bg); border-color: var(--line); border-radius: 12px; box-shadow: none; }
#launch-view .fee-mode-cards strong { font-size: 14px; }
#launch-view .launch-policy .fee-mode-cards small { white-space: normal; overflow: visible; margin: 0; color: var(--muted); line-height: 1.5; }
#launch-view .fee-mode-cards button[aria-pressed=true]::before { background: var(--bg); }
#launch-view .launch-policy :is(.pair-cards, .fee-mode-cards) button[aria-pressed=true] { background: var(--card) !important; border-color: var(--accent) !important; box-shadow: inset 0 0 0 1px var(--accent); }
#launch-view :is(.fine, .mode-explanation, .pair-availability) { color: var(--muted); font-size: 12px; line-height: 1.7; }
#launch-view .launch-policy :is(.mode-explanation, .pair-availability, #pair-policy) { margin: 14px 0; min-height: 0; font-size: 12px; line-height: 1.7; color: var(--muted); }
#launch-view .quote-inspection { margin: 12px 0 0; padding: 0 0 16px; border-bottom: 1px solid var(--line); }
#launch-view .quote-inspection summary { cursor: pointer; color: var(--ink); font-size: 13px; padding-block: 12px; }
#launch-view .policy-explainer { margin: 4px 0 0; font-size: 13px; color: var(--accent); }
#launch-view #edit-fields > .links { margin: 28px 0; padding: 24px 0; }
#launch-view .links .links-title { margin-bottom: 16px; font-size: 14px; }
#launch-view .links .links-title span { font-size: 12px; }
#launch-view #edit-fields .links-fields { grid-template-columns: 1fr; gap: 16px; }
#launch-view #edit-fields .links-fields label { margin: 0; font-size: 13px; }
#launch-view .form-actions { gap: 12px; margin-top: 24px; }
#launch-view :is(button, a, summary) { min-height: 44px; }
#launch-view a { display: inline-flex; align-items: center; gap: 6px; }
#launch-view :is(button, input, textarea, select, summary, a, .upload) { transition: background-color 180ms, border-color 180ms, color 180ms, box-shadow 180ms; }
#launch-view :is(button, a, input, textarea, select, summary):focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
#launch-view .upload:focus-within { outline: 3px solid var(--accent); outline-offset: 4px; }
#launch-view :is(button, summary, a):active:not(:disabled) { box-shadow: inset 0 0 0 1px var(--accent); }
#launch-view :is(button:not(.button), summary, .upload):hover:not(:disabled) { background-color: var(--card); border-color: var(--muted); }
#launch-view a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
#launch-view .button { min-height: 50px; padding: 14px 24px; border-radius: 10px; background: var(--accent); color: var(--bg); box-shadow: none; font-size: 14px; }
#launch-view .button:hover:not(:disabled) { background: var(--ink); border-color: var(--ink); }
#launch-view .button:active:not(:disabled) { background: var(--accent); }
#launch-view button:disabled { opacity: 1; background: var(--card); color: var(--muted); border-color: var(--line); box-shadow: none; cursor: not-allowed; }
#launch-view .text-button { padding: 12px 16px; border: 1px solid var(--line); color: var(--muted); border-radius: 10px; }
#launch-view .preview-column { position: static; min-width: 0; order: 0; }
#launch-view .preview-column > .eyebrow { display: block; margin: 0 0 16px; color: var(--muted); font-size: 11px; }
#launch-view .preview-card { display: flex; min-height: 300px; padding: 24px; background: var(--card); border: 1px solid var(--line); border-top: 2px solid var(--accent); border-radius: 16px; box-shadow: none; }
#launch-view .preview-card .card-head img { width: 80px; height: 80px; }
#launch-view .preview-card .badge { display: inline-block; color: var(--muted); background: var(--bg); border-color: var(--line); font-size: 11px; }
#launch-view .preview-card h2 { margin: 24px 0 8px; font-size: 26px; }
#launch-view .preview-card p { display: -webkit-box; margin: 16px 0 24px; font-size: 13px; min-height: 0; overflow-wrap: anywhere; }
#launch-view .preview-card .card-bottom { display: flex; font-size: 11px; flex-wrap: wrap; }
#launch-view .launch-mechanics { margin-top: 32px; }
#launch-view .launch-mechanics > h2 { font-size: 16px; margin: 0 0 20px; letter-spacing: -.02em; }
#launch-view .launch-steps { display: grid; grid-template-columns: 1fr; gap: 0; margin: 0; }
#launch-view .launch-steps li { padding: 18px 0; gap: 8px; background: transparent; border: 0; border-top: 1px solid var(--line); border-radius: 0; }
#launch-view .launch-steps strong { font-size: 14px; }
#launch-view .launch-steps strong::before { margin-right: 12px; content: '0' counter(step); font-size: 11px; }
#launch-view .launch-steps span { display: block; overflow: visible; -webkit-line-clamp: unset; line-clamp: unset; font-size: 12px; line-height: 1.75; color: var(--muted); }
#launch-view .launch-steps .text-link { color: var(--accent); }
#launch-view :is(#form-error, #launch-status, .review-row) { font-size: 13px; line-height: 1.7; }
#launch-view :is(#form-error, #launch-status):empty { display: none; }
@media (max-width: 1000px) {
  #launch-view .launch-layout { grid-template-columns: minmax(0, 1fr) 260px; gap: 24px; }
  #launch-view #launch-form { padding: 24px; }
  #launch-view .launch-policy .pair-cards { grid-template-columns: 1fr; }
  #launch-view .fee-mode-cards { grid-template-columns: 1fr; }
  #launch-view .launch-policy .fee-mode-cards button { display: grid; grid-template-columns: 36px 1fr; column-gap: 14px; min-height: 88px !important; }
  #launch-view .fee-mode-cards .mode-icon { grid-row: span 2; }
  #launch-view .field-pair { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 700px) {
  #launch-view > .title-row { margin: 32px 0 20px; flex-direction: column; align-items: flex-start; gap: 12px; }
  #launch-view .title-row h1 { max-width: 15ch; }
  #launch-view .title-row .subtitle { font-size: 15px; }
  #launch-view #launch-availability { margin-bottom: 24px; }
  #launch-view .launch-layout { grid-template-columns: 1fr; gap: 32px; }
  #launch-view #launch-form { padding: 20px; }
  #launch-view #edit-fields > .upload #upload-copy { column-gap: 12px; grid-template-columns: 40px auto; }
  #launch-view .upload-symbol { width: 40px; height: 48px; }
  #launch-view .upload strong { font-size: 14px; }
  #launch-view .form-actions > .button { flex: 1; }
  #launch-view .preview-card { min-height: 280px; }
}
@media (prefers-reduced-motion: reduce) {
  #launch-view *, #launch-view *::before, #launch-view *::after { transition: none !important; animation: none !important; }
}
/* Clear named areas inherited from fit.css before placing the new two-column layout. */
#launch-view :is(#launch-form, .preview-column, .launch-steps) { grid-area: auto; }
#launch-view .launch-form-title { margin: 0 0 24px; font-size: 20px; line-height: 1.4; letter-spacing: -.025em; }

/* Unified custom pair picker; all styles remain Launch-scoped. */
#launch-view .launch-policy .pair-cards { grid-template-columns: repeat(3,minmax(0,1fr)); }
#launch-view #custom-pair-picker { color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 16px; width: min(680px,calc(100vw - 32px)); max-height: 85dvh; margin: auto; padding: 24px; overflow: auto; box-sizing: border-box; }
#launch-view #custom-pair-picker::backdrop { background: rgb(0 0 0 / 75%); backdrop-filter: blur(6px); }
#launch-view .custom-picker-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
#launch-view .custom-picker-header h2 { font-size: 24px; margin: 0; }
#launch-view .custom-categories { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; margin: 20px 0; }
#launch-view #custom-pair-picker button { min-height: 44px; cursor: pointer; }
#launch-view #custom-pair-picker button[aria-pressed=true] { border-color: var(--accent); color: var(--accent); }
#launch-view #custom-pair-picker #pair-catalog { margin: 0; padding: 0; border: 0; }
#launch-view #custom-pair-picker #pair-dropdown { border: 0; background: transparent; padding: 0; }
#launch-view #custom-pair-picker #catalog-results { max-height: 42dvh; overflow: auto; }
#launch-view #custom-pair-picker .quote-card { width: 100%; text-align: left; border: 1px solid var(--line); padding: 14px; margin-bottom: 8px; border-radius: 12px; background: var(--bg); color: var(--ink); }
#launch-view #custom-pair-picker :is(code,small,p) { overflow-wrap: anywhere; }
#launch-view #custom-pair-picker .quote-card code { font-size: 11px; }
#launch-view #custom-pair-result:not(:empty) { padding: 16px; margin: 12px 0; border: 1px solid var(--line); border-radius: 12px; }
#launch-view #custom-pair-picker :focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
#launch-view .pair-mark img { object-fit: contain; border-radius: 50%; }
@media(max-width:600px) {
  #launch-view .launch-policy .pair-cards { grid-template-columns: 1fr; }
  #launch-view #custom-pair-picker { width: 100%; max-height: 90dvh; margin: auto 0 0; border-radius: 16px 16px 0 0; padding: 18px; }
  #launch-view .custom-categories { gap: 4px; }
  #launch-view .custom-categories button { font-size: 12px; padding: 8px 4px; }
}
#launch-view #custom-pair-picker button { background: #202020; color: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; transition: background 180ms, border-color 180ms; }
#launch-view #custom-pair-picker button:hover { background: #2b2b2b; border-color: var(--muted); }
#launch-view #custom-pair-picker button[aria-pressed=true] { background: #302014; border-color: var(--accent); color: var(--accent); }
#launch-view #custom-pair-picker label[for=catalog-search] { display: grid; gap: 10px; margin: 20px 0 12px; font-size: 13px; }
#launch-view #custom-pair-picker #catalog-search { width: 100%; box-sizing: border-box; min-height: 48px; }
#launch-view #custom-pair-picker #inspect-custom-pair { margin-bottom: 16px; }
#launch-view #custom-pair-picker .quote-card { background: var(--bg); }
@media(prefers-reduced-motion:reduce) { #launch-view #custom-pair-picker button { transition: none; } }
@media(max-width:600px) { #launch-view #custom-pair-picker .custom-categories button { padding: 10px 4px; } }

/* Compact pair choices: retain comfortable targets without tall cards. */
#launch-view .launch-policy .pair-cards { gap: 8px; }
#launch-view .launch-policy .pair-cards button { min-height: 68px !important; padding: 10px 26px 10px 12px; gap: 10px; border-radius: 10px; }
#launch-view .launch-policy .pair-cards .pair-mark { width: 28px; height: 28px; flex: 0 0 28px; border-radius: 8px; }
#launch-view .pair-cards .pair-mark svg { width: 18px; height: 18px; }
#launch-view .pair-cards .pair-mark img { width: 24px; height: 24px; }
#launch-view .launch-policy .pair-cards small { margin-top: 2px; line-height: 1.35; }
#launch-view .launch-policy .pair-cards .choice-check { top: 10px; right: 8px; width: 14px; height: 14px; }
#launch-view .pair-cards .choice-check svg { width: 14px; height: 14px; }
#launch-view .custom-categories { gap: 6px; margin: 14px 0; }
#launch-view #custom-pair-picker .custom-categories button { min-height: 44px; padding: 6px 10px; border-radius: 8px; font-size: 12px; line-height: 1.3; }
#launch-view #custom-pair-picker .quote-card { padding: 10px 12px; margin-bottom: 6px; border-radius: 10px; gap: 4px 10px; }
@media(max-width:600px) {
  #launch-view #custom-pair-picker .custom-categories button { padding: 6px 4px; }
}
@media(min-width:601px) and (max-width:1000px) {
  #launch-view .launch-policy .pair-cards { grid-template-columns: 1fr; }
}

/* Match reward-mode choices to the compact pair controls. */
#launch-view .fee-mode-cards { gap: 8px; }
#launch-view .launch-policy .fee-mode-cards button { display: grid; grid-template-columns: 28px minmax(0,1fr); align-content: center; align-items: center; gap: 2px 10px; min-height: 68px !important; padding: 10px 12px; border-radius: 10px; }
#launch-view .fee-mode-cards .mode-icon { grid-row: span 2; width: 28px; height: 28px; border-radius: 8px; }
#launch-view .fee-mode-cards .mode-icon svg { width: 18px; height: 18px; }
#launch-view .launch-policy .fee-mode-cards small { line-height: 1.35; }
/* Audit 2026-10-24: the launch page keeps the same (block) layout from first paint to ready. fit.css forces a grid on
   the not-yet-shown view at 1100px+, which this design layer replaces with block once the script runs; the switch
   moved the whole page (layout shift 0.60 at 1440). */
@media (min-width:1100px){html[data-route=launch] #launch-view[hidden]{display:block!important}}
#launch-view .deploy-reason{margin:10px 0 0;color:var(--muted);font-size:12px;line-height:1.5}
/* Audit 2026-10-24: the availability line starts as "Checking launch availability…" and becomes a two- or three-line
   sentence once the config arrives; keep that room from the first paint so the form below doesn't jump. */
@media (max-width:899px){#launch-view #launch-availability{min-height:calc(30px + 2 * 1.6em)}}
@media (max-width:479px){#launch-view #launch-availability{min-height:calc(30px + 3 * 1.6em)}}
@media (max-width:339px){#launch-view #launch-availability{min-height:calc(30px + 4 * 1.6em)}}
