/* Launchpad: additions on top of the shared Rocket-9 design system (app.css + command.css). */
.lp-logo img { height: 30px !important; width: auto; display: block; }
.lp-body { max-width: 1240px; margin: 0 auto; padding: 26px 24px 60px; }
.p-top .in, .p-hero .in { max-width: 1240px; }
.flash.err { background: var(--red-soft); color: var(--red-ink); border-color: var(--red-soft-2); }
.muted { color: var(--ink-3); }
code { font: 12px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--surface-3); padding: 1px 6px; border-radius: 5px; color: var(--ink-2); }

/* three steps */
.lp-steps { list-style: none; display: flex; gap: 8px; margin: 22px 0 0; padding: 0; flex-wrap: wrap; }
.lp-steps li { display: flex; align-items: center; gap: 9px; padding: 8px 16px 8px 8px; border-radius: 99px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); color: #e9e9ee; font-weight: 600; font-size: 13px; }
.lp-steps li span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--red); color: #fff; font-size: 12px; font-weight: 700; }
.lp-steps.sm { margin: 0; gap: 4px; flex-wrap: nowrap; }
.lp-steps.sm li { padding: 4px 12px 4px 4px; font-size: 12px; background: transparent; border-color: transparent; color: #8a8a92; white-space: nowrap; }
.lp-steps.sm li span { width: 22px; height: 22px; background: #2a2a2f; color: #b4b4bb; }
.lp-steps.sm li span svg { width: 13px; height: 13px; }
.lp-steps.sm li.on { color: #fff; background: #1a1a1d; }
.lp-steps.sm li.on span { background: var(--red); color: #fff; }
.lp-steps.sm li.done { color: #c9c9cf; }
.lp-steps.sm li.done span { background: #1f3a2c; color: #4fcf8f; }

/* design and project cards */
.tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 18px; }
.tcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-1); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s var(--ease), box-shadow .2s; }
.tcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.tcard-pic { position: relative; display: block; padding: 14px; background: var(--surface-3); border: 0; width: 100%; cursor: pointer; }
.tcard-pic img { display: block; width: 100%; height: auto; max-height: 300px; object-fit: contain; border-radius: 6px; box-shadow: 0 6px 18px -8px rgba(0,0,0,.45); background: var(--surface-2); }
.tcard-go { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.45); opacity: 0; transition: opacity .2s; }
.tcard-pic:hover .tcard-go, .tcard-pic:focus-visible .tcard-go { opacity: 1; }
.tcard-b { padding: 13px 15px 15px; display: grid; gap: 4px; }
.tcard-b b { font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tcard-b small { color: var(--ink-3); font-size: 12px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tags .pill svg { width: 11px; height: 11px; }
.tags .pill:has(svg)::before { display: none; }
.tcard-acts { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.tcard-acts form { display: contents; }
.tthumb { width: 60px; height: 60px; object-fit: cover; object-position: top; border-radius: 8px; display: block; background: var(--surface-3); }

/* forms */
.lp-form { padding: 22px; display: grid; gap: 18px; max-width: 760px; }
.lp-drop { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 30px 20px; border: 2px dashed var(--line-2); border-radius: var(--radius); background: var(--surface-2); cursor: pointer; transition: border-color .2s, background .2s; }
.lp-drop:hover, .lp-drop.over { border-color: var(--red); background: var(--red-soft); }
.lp-drop input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.lp-drop > svg { width: 28px; height: 28px; color: var(--red); }
.lp-drop b { font-size: 14px; }
.lp-drop span { color: var(--ink-3); font-size: 12.5px; max-width: 480px; }
.lp-drop ul { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.lp-drop li { font-size: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 3px 8px; }

/* template review */
.lp-review { grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); align-items: start; }
@media (max-width: 1000px) { .lp-review { grid-template-columns: 1fr; } }
.lp-msg { display: flex; gap: 11px; padding: 11px 13px; border-radius: 10px; font-size: 13px; margin-bottom: 8px; background: var(--surface-3); }
.lp-msg svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.lp-msg b { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; }
.lp-msg.ok { background: var(--green-bg); color: var(--green); }
.lp-msg.ok b { display: inline; text-transform: none; font-size: 13px; letter-spacing: 0; }
.lp-msg.bad { background: var(--red-soft); } .lp-msg.bad svg, .lp-msg.bad b { color: var(--red-ink); }
.lp-msg.warn { background: var(--amber-bg); } .lp-msg.warn svg, .lp-msg.warn b { color: var(--amber); }
.lp-msg.note { background: transparent; padding: 5px 2px; margin: 0; color: var(--ink-2); } .lp-msg.note svg { color: var(--ink-3); width: 15px; height: 15px; }
.lp-field-row { display: flex; gap: 11px; align-items: flex-start; padding: 9px 0; border-bottom: 1px solid var(--line); }
.lp-field-row:last-child { border-bottom: 0; }
.lp-field-row .pill { flex: none; min-width: 84px; justify-content: flex-start; }
.lp-field-row > svg { width: 17px; height: 17px; color: var(--ink-3); margin-top: 2px; flex: none; }
.lp-field-row b { font-size: 13.5px; }
.lp-field-row small { display: block; color: var(--ink-3); font-size: 12px; margin-top: 2px; }
.sw { display: inline-block; width: 11px; height: 11px; border-radius: 3px; vertical-align: -1px; margin-right: 5px; box-shadow: inset 0 0 0 1px rgba(128,128,128,.4); }

/* artboards */
.lp-boards h4, .ed-group h3 { margin: 16px 0 10px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.lp-boards h4:first-child { margin-top: 4px; }
.lp-board-row { display: flex; flex-wrap: wrap; gap: 20px 18px; align-items: flex-start; }
.lp-board { margin: 0; min-width: 0; max-width: 100%; }
.lp-art { position: relative; width: calc(var(--w) * 1px); max-width: 100%; aspect-ratio: var(--w) / var(--h); background: #fff; border-radius: 4px; overflow: hidden; box-shadow: 0 0 0 1px var(--line), 0 10px 24px -14px rgba(0,0,0,.5); }
.lp-board[data-ch="meta"] .lp-art { width: calc(var(--w) * .26px); }
.lp-art > svg { display: block; width: 100%; height: 100%; }
.lp-board figcaption { margin-top: 7px; font-size: 11.5px; color: var(--ink-3); }
.lp-board figcaption b { color: var(--ink-2); font-weight: 600; margin-right: 4px; }
.lp-flag { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 99px; background: var(--red-soft); color: var(--red-ink); font-weight: 600; }

/* ---------- editor ---------- */
.lp-editor-page { overflow: hidden; }
.ed { display: grid; grid-template: 60px minmax(0, 1fr) / 372px minmax(0, 1fr); height: 100vh; height: 100dvh; background: var(--bg); }
.ed-top { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; padding: 0 16px; background: #000; color: #fff; min-width: 0; }
.ed-back img { height: 34px; display: block; border-radius: 7px; }
.ed-name { background: transparent; border: 1px solid transparent; color: #fff; font: 600 14px Poppins, sans-serif; padding: 7px 10px; border-radius: 8px; min-width: 120px; width: 280px; max-width: 30vw; text-overflow: ellipsis; margin-left: 6px; }
.ed-name:hover { border-color: #333; } .ed-name:focus { border-color: var(--red); outline: 0; background: #111; }
.ed-save { font-size: 12px; color: #8a8a92; white-space: nowrap; }
.ed-save.ok::before { content: "✓ "; color: #4fcf8f; } .ed-save.bad { color: #ff8b95; }
.ed-top .iconbtn { background: transparent; border-color: #333; color: #fff; }
.ed-panel { overflow-y: auto; background: var(--surface); border-right: 1px solid var(--line); padding: 6px 18px 30px; }
.ed-stage { overflow: auto; padding: 0 26px 60px; }
.ed-bar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 14px; padding: 14px 0 12px; background: linear-gradient(var(--bg) 78%, transparent); }
.ed-bar .check { font-size: 12.5px; color: var(--ink-2); margin: 0; }
.ed-group.off { position: absolute; left: -300vw; visibility: hidden; }
.ed-stage .lp-art { cursor: zoom-in; opacity: 0; transition: opacity .25s; }
.ed-stage.ready .lp-art { opacity: 1; }
.lp-safe { position: absolute; inset: 0; pointer-events: none; }
.lp-safe i { position: absolute; left: 0; right: 0; background: repeating-linear-gradient(135deg, rgba(255,255,255,.2) 0 6px, rgba(0,0,0,.2) 6px 12px); outline: 1px dashed rgba(255,255,255,.75); outline-offset: -1px; }
.lp-safe i:first-child { top: 0; height: 14.0625%; } .lp-safe i:last-child { bottom: 0; height: 34.896%; }
.no-safe .lp-safe { display: none; }
.lp-board.zoomed { position: fixed; inset: 0; z-index: 60; background: rgba(8,8,10,.88); display: grid; place-items: center; align-content: center; gap: 4px; max-width: none; padding: 24px; }
.lp-board.zoomed .lp-art { cursor: zoom-out; width: min(92vw, calc(84vh * var(--w) / var(--h)), calc(var(--w) * 2.2px)) !important; max-width: none; }
.lp-board.zoomed figcaption, .lp-board.zoomed figcaption b { color: #d5d5da; }

.fgroup h4 { margin: 20px 0 4px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.f { padding: 12px 0 14px; border-bottom: 1px solid var(--line); display: grid; gap: 7px; }
.f-h { display: flex; align-items: center; gap: 8px; }
.f-h label:first-child { font-weight: 600; font-size: 13px; flex: 1; }
.f .count { font-size: 11px; color: var(--ink-3); font-variant-numeric: tabular-nums; } .f .count.full { color: var(--red-ink); font-weight: 700; }
.f.off > :not(.f-h) { display: none; } .f.off .f-h label:first-child { color: var(--ink-3); text-decoration: line-through; }
.f textarea.inp { resize: vertical; min-height: 0; }
.f-sub { display: grid; gap: 4px; } .f-sub span, .f-hint { font-size: 11.5px; color: var(--ink-3); }
.f-note { font-size: 12px; padding: 6px 9px; border-radius: 7px; background: var(--surface-3); }
.f-note.warn { background: var(--amber-bg); color: var(--amber); } .f-note.bad { background: var(--red-soft); color: var(--red-ink); }
.switch { position: relative; display: inline-flex; cursor: pointer; }
.switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.switch i { width: 34px; height: 20px; border-radius: 99px; background: var(--line-2); transition: background .2s; position: relative; }
.switch i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .2s var(--ease); }
.switch input:checked + i { background: var(--red); } .switch input:checked + i::after { transform: translateX(14px); }
.switch input:focus-visible + i { outline: 2px solid var(--red); outline-offset: 2px; }
.f-pic { position: relative; min-height: 84px; max-height: 220px; width: 100%; border-radius: 10px; border: 2px dashed var(--line-2); background: var(--surface-2) center / 100% 100% no-repeat; display: grid; place-items: center; cursor: pointer; overflow: hidden; touch-action: none; }
.f-pic.has { border-style: solid; border-color: var(--line); cursor: crosshair; min-height: 0; }
.f-pic.logo.has { background-size: contain; height: 84px; cursor: default; background-color: var(--surface-3); }
.f-pic.over { border-color: var(--red); background-color: var(--red-soft); }
.f-pic.busy::after { content: "Uploading…"; position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.55); color: #fff; font-weight: 600; font-size: 13px; }
.f-pic-empty { font-size: 12px; color: var(--ink-3); } .f-pic.has .f-pic-empty { display: none; }
.f-dot { position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; border: 3px solid #fff; background: var(--red); box-shadow: 0 0 0 1px rgba(0,0,0,.45), 0 3px 8px rgba(0,0,0,.5); pointer-events: none; }
.f-zoom { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--ink-3); } .f-zoom input { flex: 1; accent-color: var(--red); }
.f-acts { display: flex; gap: 6px; flex-wrap: wrap; }
.f-color { display: flex; gap: 8px; align-items: center; }
.f-color input[type=color] { width: 44px; height: 38px; padding: 2px; border: 1px solid var(--line-2); border-radius: 9px; background: var(--surface); cursor: pointer; flex: none; }
.f-color .inp { width: 108px; font-variant-numeric: tabular-nums; }
.f-foot { display: flex; gap: 9px; font-size: 12px; color: var(--ink-3); margin: 18px 0 0; } .f-foot svg { width: 16px; height: 16px; flex: none; margin-top: 1px; }

.lp-dialog { border: 1px solid var(--line); border-radius: 16px; padding: 0; background: var(--surface); color: var(--ink); width: min(520px, calc(100vw - 32px)); box-shadow: var(--shadow-3); }
.lp-dialog::backdrop { background: rgba(8,8,10,.7); }
.lp-dialog-in { padding: 24px; display: grid; gap: 14px; }
.lp-dialog h3 { margin: 0; font-size: 18px; font-weight: 800; text-transform: uppercase; }
.lp-dialog p { margin: -8px 0 0; font-size: 13px; }
.lp-dialog .opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.lp-dialog .opts label { display: grid; gap: 2px; padding: 12px; border: 1px solid var(--line-2); border-radius: 10px; cursor: pointer; }
.lp-dialog .opts label:has(input:checked) { border-color: var(--red); background: var(--red-soft); }
.lp-dialog .opts input { position: absolute; opacity: 0; }
.lp-dialog .opts small { color: var(--ink-3); font-size: 11.5px; line-height: 1.3; }
.dl-sizes { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 14px; padding: 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); }
.dl-sizes .check { margin: 0; font-size: 12.5px; } .dl-sizes .check span { white-space: nowrap; } .dl-sizes small { color: var(--ink-3); display: block; font-size: 11px; }
.dl-sizes { gap: 8px 14px; }
.lp-dialog .form-foot { display: flex; justify-content: flex-end; gap: 8px; margin: 4px 0 0; padding: 0; border: 0; }

@media (max-width: 860px) {
  .lp-editor-page { overflow: auto; }
  .ed { grid-template: 56px auto auto / 1fr; height: auto; }
  .ed-panel { border-right: 0; border-bottom: 1px solid var(--line); order: 3; }
  .ed-stage { order: 2; padding: 0 14px 20px; max-height: 58vh; }
  .ed-top .lp-steps, .ed-save { display: none; }
  .ed-name { width: auto; flex: 1; max-width: none; min-width: 0; margin-left: 0; }
  .ed-top { gap: 8px; padding: 0 12px; }
  .ed-top .btn.primary { flex: none; padding-left: 12px; padding-right: 12px; }
  .ed-bar { flex-wrap: wrap; gap: 8px 14px; }
  .ed-bar .grow { display: none; }
  .ed-bar .check { white-space: nowrap; }
  .p-top .in { flex-wrap: wrap; row-gap: 10px; padding: 12px 16px; }
  .portal .p-top nav { display: flex; order: 3; width: 100%; margin-left: 0; overflow-x: auto; }
  .portal .p-top nav a { white-space: nowrap; }
  .portal .p-top .lp-logo img { height: 22px !important; }
  .p-top .in { column-gap: 12px; }
  .dl-sizes, .lp-dialog .opts { grid-template-columns: 1fr; }
}
.p-hero .in { display: block; padding-bottom: 40px; }
.p-hero h2 em { font-style: normal; color: var(--red); }

.btn:disabled, .btn[disabled] { opacity: .45; cursor: not-allowed; }
