html[data-site="launch"] body { max-width: 1328px; margin: 0 auto; padding: 0 24px; }
html[data-site="launch"] [hidden] { display: none !important; }
html[data-site="launch"] .topbar { padding: 18px 0; margin: 0; }
html[data-site="launch"] .brand { color: var(--ink); text-decoration: none; gap: 10px; }
html[data-site="launch"] .brand strong { font-size: 19px; }
html[data-site="launch"] .topnav { flex-wrap: wrap; gap: 12px; }
html[data-site="launch"] .topnav { width: auto; }
html[data-site="launch"] .topbar { flex-wrap: nowrap; }
.nav-current { font-size: 13px; color: var(--ink); }
.launch-status { min-height: 28px; color: var(--dim); font-size: 12px; text-align: right; }
.launch-status .err { color: var(--red); }
html[data-site="launch"] main { padding: 0; }
html[data-site="launch"] #simpleView { max-width: 1280px; padding: 0; }
html[data-site="launch"] .builder { display: block; max-width: 1280px; margin: 18px auto; }
html[data-site="launch"] .builder > .panel { min-width: 0; }
html[data-site="launch"] .launch-trade-panel { padding: 20px; margin: 0; }
html[data-site="launch"] .actiongrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 0 0 20px; }
html[data-site="launch"] .actcard { min-height: 44px; padding: 10px 8px; text-align: center; }
html[data-site="launch"] .actcard span { display: none; }
html[data-site="launch"] .actcard b { font-size: 13px; }
html[data-site="launch"] #actionPanel { padding: 0; border: 0; border-radius: 0; background: transparent !important; }
html[data-site="launch"] .trade-terms { gap: 12px; }
html[data-site="launch"] .trade-terms input, html[data-site="launch"] .trade-terms select { font-size: 16px; min-height: 44px; }
html[data-site="launch"] .trade-terms label { font-size: 12px; }
html[data-site="launch"] .trade-market { margin-bottom: 16px; font-size: 20px; }
html[data-site="launch"] #actionPanel > div:first-child { font-size: 12px; color: var(--dim); font-weight: 400 !important; }
html[data-site="launch"] #actionPanel[data-action="trade"] > div:first-child { display: none; }
.launch-market-row { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin: 0 0 18px; }
html[data-site="launch"] .launch-market-row .trade-market { margin: 0; min-width: 0; overflow-wrap: anywhere; font-size: 18px; }
.launch-market-row label { font-size: 12px; min-width: 0; }
html[data-site="launch"] .launch-market-row .trade-market { flex: 1; font-size: 12px; font-weight: 400; }
.launch-market-row > label:last-child { width: 35%; }
.launch-market-row select { min-height: 40px; font-size: 14px; width: 100%; }
.trade-size-label { display: flex; align-items: center; justify-content: space-between; }
html[data-site="launch"] .trade-size-label .launch-max { margin: 0; padding: 2px 8px; min-height: 26px; }
.launch-order-summary { margin: 14px 0 4px; }
.launch-order-summary > summary { cursor: pointer; font-size: 13px; padding: 10px 0; }
.launch-order-summary > summary strong { float: right; margin-left: 12px; overflow-wrap: anywhere; max-width: 60%; text-align: right; }
.launch-order-summary > summary::after { content: ""; display: block; clear: both; }
html[data-site="launch"] .launch-funding { margin: 12px 0 4px; font-size: 13px; }
html[data-site="launch"] .launch-funding dd { font-weight: 600; }
html[data-site="launch"] .launch-max { margin: 0 0 4px; }
html[data-site="launch"] #odGo { min-height: 46px; font-size: 15px; }
html[data-site="launch"] #tradeAssociationStatus.ok,
html[data-site="launch"] #tradeAssociationStatus.idle[data-empty-terms="true"],
html[data-site="launch"] .tx-progress.idle,
html[data-site="launch"] #coordinationBox:empty,
html[data-site="launch"] #simpleStatus.dim { display: none; }
html[data-site="launch"] #simpleStatus { overflow-wrap: anywhere; }
html[data-site="launch"] #tradeProgressCard { margin: 14px 0 0; }
html[data-site="launch"] .trade-progress-card:empty { display: none; }
html[data-site="launch"] .guided-orders { margin-top: 12px; padding: 0; border: 0; }
html[data-site="launch"] .guided-orders-head { display: none; }
html[data-site="launch"] #activityList { max-height: none; overflow: visible; }
html[data-site="launch"] .wallet-asset-balance { font-size: 24px; }
html[data-site="launch"] .association-approval.ok small { display: none; }
.launch-details { margin: 14px 0 0; border-top: 1px solid var(--line); padding-top: 8px; }
.launch-details > summary, html[data-site="launch"] .setup-card > summary { cursor: pointer; font-size: 13px; font-weight: 500; min-height: 40px; padding: 10px 0; box-sizing: border-box; }
.launch-details > :not(summary) { margin-top: 12px; }
.launch-details .wallet-asset-actions { flex-wrap: wrap; }
.launch-details input[type="number"] { max-width: 100%; }
html[data-site="launch"] .builder > .launch-details { padding: 4px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg2); }
html[data-site="launch"] .builder > .launch-details > .panel { margin: 0; border: 0; padding: 0 0 14px; background: transparent; }
html[data-site="launch"] .balcard { margin: 0; padding: 0; border: 0; background: transparent; }
html[data-site="launch"] .first-run { margin: 40px auto; max-width: 560px; }
html[data-site="launch"] .hero-mark { display: none; }
html[data-site="launch"] .first-run h2 { font-size: 28px; line-height: 1.2; }
html[data-site="launch"] .first-copy { margin: 14px 0 24px; line-height: 1.7; }
html[data-site="launch"] .first-grid { display: block; }
html[data-site="launch"] .setup-card { padding: 4px 0; margin-top: 20px; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; }
html[data-site="launch"] .setup-actions { margin-bottom: 10px; }
/* Landing market panel: public per-pair volume and maker depth, below the connect panel. */
html[data-site="launch"] .launch-markets { max-width: 560px; margin: -16px auto 40px; padding: 16px 24px; }
.launch-markets-title { margin: 0 0 2px; font-size: 12px; font-weight: 500; color: var(--dim); text-transform: uppercase; letter-spacing: 0.06em; }
.launch-market-list { list-style: none; margin: 0; padding: 0; }
.launch-market { padding: 12px 0; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.launch-market:first-child { border-top: 0; }
.launch-market-pair { display: block; font-size: 15px; }
.launch-market-volume, .launch-market-depth { margin-top: 6px; }
.launch-market-label { display: block; font-size: 12px; color: var(--dim); }
.launch-market details.hint { margin: 2px 0 0; max-width: none; }
.launch-market details.hint > summary { cursor: pointer; width: fit-content; }
.launch-help { max-width: 620px; margin: 30px auto 50px; }
.launch-help h1 { font-size: 30px; line-height: 1.2; }
.launch-help .eyebrow { color: var(--dim); font-size: 12px; }
.help-steps { padding-left: 22px; line-height: 1.7; font-size: 14px; }
.help-steps li { margin-bottom: 12px; padding-left: 4px; }
.help-answers details { padding: 15px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 24px; }
.help-answers summary { cursor: pointer; font-size: 14px; font-weight: 600; }
.help-answers p { color: var(--dim); font-size: 14px; line-height: 1.7; margin-bottom: 0; }
html[data-site="launch"] footer { display: flex; flex-direction: row; justify-content: space-between; flex-wrap: wrap; gap: 16px; max-width: 1280px; margin: 28px auto 0; padding: 18px 0; }
.launch-form, .launch-sidebar { min-width: 0; }
@media (min-width: 960px) {
  html[data-site="launch"] .launch-trade-panel { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; padding: 28px; align-items: stretch; }
  .launch-sidebar { border-left: 1px solid var(--line); padding-left: 32px; display: flex; flex-direction: column; min-height: 0; }
  html[data-site="launch"] .launch-sidebar #tradeProgressCard { margin-top: 0; }
  /* The records panel takes the sidebar height left over by the form column. Bounded at both
     ends: never below the 360px base, and never so tall that a page of records stops scrolling. */
  html[data-site="launch"] .launch-sidebar #launchOrders { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
  html[data-site="launch"] .launch-sidebar #launchOrders > #walletRecords { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
  html[data-site="launch"] .launch-sidebar #walletRecordsPanel { flex: 1 1 auto; height: auto; min-height: 360px; max-height: 420px; }
  /* Add funds and Withdraw are short forms. There the records panel takes only the height the
     form column leaves (scrolling inside, never below 120px), so the shared panel hugs the form
     instead of stretching to the records' 360px base. Trade keeps the 360px base. */
  html[data-site="launch"] .launch-trade-panel:has(#actionPanel:not([data-action="trade"])) .launch-sidebar :is(#launchOrders, #walletRecords, #walletRecordsPanel) { flex-basis: 0; min-height: auto; }
  html[data-site="launch"] .launch-trade-panel:has(#actionPanel:not([data-action="trade"])) .launch-sidebar #walletRecordsPanel { min-height: 120px; }
}
.skip-link { position: absolute; left: 16px; top: -80px; padding: 12px; background: var(--bg); z-index: 10; }
.skip-link:focus { top: 12px; }
html[data-site="launch"] :focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
@media (max-width: 600px) {
  html[data-site="launch"] body { padding: 0 12px; }
  html[data-site="launch"] .topbar { flex-direction: row; align-items: center; gap: 10px; }
  html[data-site="launch"] .topnav { gap: 8px; }
  html[data-site="launch"] .brand strong { font-size: 17px; }
  html[data-site="launch"] .nav-current { display: none; }
  html[data-site="launch"] .builder { margin-top: 6px; }
  html[data-site="launch"] .launch-trade-panel { padding: 16px; }
  html[data-site="launch"] .first-run { margin-top: 20px; padding: 20px; }
  html[data-site="launch"] .first-run h2 { font-size: 26px; }
  html[data-site="launch"] .launch-markets { padding: 14px 20px; }
  html[data-site="launch"] .launch-funding { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
  html[data-site="launch"] .wallet-asset-balance { font-size: 20px; }
}

html[data-site="launch"] #recordsTitle, html[data-site="launch"] .wallet-record-help { display: none; }
html[data-site="launch"] .wallet-record-tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 12px; }
html[data-site="launch"] [data-records-view] { flex: 1; padding: 8px 6px; min-width: 0; border: 1px solid var(--line); border-radius: 6px; background: transparent; color: var(--dim); font-size: 12px; }
html[data-site="launch"] [data-records-view][aria-selected="true"] { border-color: var(--teal); color: var(--teal); }
html[data-site="launch"] #walletRecordsPanel { max-height: 360px; overflow-y: auto; overflow-x: hidden; margin-top: 12px; }
html[data-site="launch"] #walletRecordsPanel .guided-order-row { overflow-wrap: anywhere; }
html[data-site="launch"] #recordsMore { margin-top: 12px; }
html[data-site="launch"] .wallet-account-actions { display: flex; flex-wrap: wrap; gap: 8px; }
html[data-site="launch"] .wallet-account-actions .vault-warning { flex-basis: 100%; }
html[data-site="launch"] #walletDetails { margin-top: 12px; }
html[data-site="launch"] .wallet-heading { margin-bottom: 12px; }

@media (max-width: 360px) {
  html[data-site="launch"] .launch-trade-panel { padding-top: 10px; }
  html[data-site="launch"] .actiongrid { margin-bottom: 12px; }
  html[data-site="launch"] .launch-market-row { margin-bottom: 4px; }
}
