/* The hub (two tiles after connecting) and the launch form: the same sheet,
   labels, inputs and chips as deploying a Trader. Loaded after panels.css. */

#hub .sheet, #launch .sheet { background: var(--white); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 24px 60px rgba(39, 39, 42, 0.3); }
#hub .sheet { width: min(720px, 100%); }
#launch .sheet { width: min(780px, 100%); }
#hub .sheet > header, #launch .sheet > header { padding: 12px 12px 12px 16px; background: var(--white); }
#hub .sheet > header b, #launch .sheet > header b { display: flex; align-items: center; gap: 8px; font: 700 11px Inter, sans-serif; text-transform: uppercase; letter-spacing: 0.07em; color: var(--slate-900); }
#hub .sheet > header b::before, #launch .sheet > header b::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18); }
#hub .sheet .body, #launch .sheet .body { padding: 16px; }
#hub .x, #launch .x { width: 28px; height: 28px; font-size: 16px; }

.hub-tiles .dtile { height: 240px; }
.hub-tiles .dt-glyph { color: var(--brand); }
.hub-tiles .dt-sub { max-width: 90%; }

#launch .field { margin-bottom: 12px; }
#launch .field > label { display: block; font: 700 11px Inter, sans-serif; text-transform: uppercase; letter-spacing: 0.06em; color: var(--slate-500); margin-bottom: 7px; }
#launch .field > label .dim { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--slate-400); }
#launch .input { width: 100%; background: #fbfbfb; border-color: var(--line); color: var(--slate-900); }
#launch .input:focus { border-color: #b9b9bb; background: #fbfbfb; }
#launch textarea.input { resize: vertical; min-height: 64px; font: inherit; }
#launch .chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
#launch .chip { background: #f4f4f6; border: 1px solid var(--line); color: var(--slate-900); border-radius: 999px; padding: 6px 12px; font: 600 13px Inter, sans-serif; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
#launch .chip.on { background: #27272a; border-color: #27272a; color: #ffffff; }
#launch .chip-in { display: inline-flex; align-items: center; gap: 4px; padding-left: 8px; border: 1px solid var(--line); border-radius: 999px; background: #fbfbfb; }
#launch .chip-in .input { width: 84px; border: 0; padding: 6px 10px 6px 2px; background: transparent; }

.lform { display: grid; grid-template-columns: 200px 1fr; gap: 16px; align-items: start; }
.lpic { display: grid; place-items: center; aspect-ratio: 1; border-radius: 16px; border: 1px dashed #cbcbcd; background: #fbfbfb center / cover no-repeat; cursor: pointer; text-align: center; color: var(--slate-700); font: 600 13px Inter, sans-serif; transition: border-color 0.2s; }
.lpic:hover { border-color: #27272a; }
.lpic.has { border-style: solid; border-color: var(--line); }
.lpic small { display: block; margin-top: 6px; font-weight: 500; font-size: 11px; color: var(--slate-500); }
.lrow { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; }
.lrow.three { grid-template-columns: 1fr 1fr 1fr; }
#launch .hint { margin: 6px 0 12px; font-size: 13px; line-height: 1.5; color: var(--slate-500); }

.lsteps { list-style: none; margin: 0 0 12px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fbfbfb; display: grid; gap: 8px; }
.lsteps li { display: grid; grid-template-columns: 22px 1fr; column-gap: 8px; align-items: center; font: 600 13px Inter, sans-serif; color: var(--slate-500); }
.lsteps li i { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 11px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.lsteps li.done { color: var(--slate-700); }
.lsteps li.done i { background: var(--green); color: #ffffff; box-shadow: none; }
.lsteps li.on { color: var(--slate-900); }
.lsteps li.on i { background: #27272a; color: #ffffff; animation: lpulse 1.2s ease-in-out infinite; }
.lsteps li.bad { color: #dc2626; }
.lsteps li.bad i { background: #dc2626; color: #ffffff; }
.lsteps li small { grid-column: 2; font-weight: 500; color: #b91c1c; margin-top: 2px; }
@keyframes lpulse { 50% { box-shadow: 0 0 0 4px rgba(39, 39, 42, 0.162); } }
#launch .dfoot { display: flex; align-items: center; justify-content: flex-end; gap: 12px; position: static; background: none; border: 0; box-shadow: none; padding: 0; margin-top: 16px; }
.lpic small + small { margin-top: 2px; }

/* the rewards popover (was the burn race) */
.rsplit { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 4px 0 10px; }
.rsplit div { padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: #fbfbfb; }
.rsplit small { display: block; font: 600 11px Inter, sans-serif; text-transform: uppercase; letter-spacing: 0.05em; color: var(--slate-500); }
.rsplit b { font: 700 16px Inter, sans-serif; color: var(--slate-900); }

@media (max-width: 640px) {
  .lform { grid-template-columns: 1fr; }
  .lpic { max-width: 180px; }
  .lrow, .lrow.three { grid-template-columns: 1fr; }
  .hub-tiles { grid-template-columns: 1fr !important; }
  .hub-tiles .dtile { height: 180px; }
  .rsplit { grid-template-columns: 1fr 1fr; }
}

/* project tags over the buildings: HTML, so always sharp (no will-change: that
   would rasterize them once and blur them when scaled) */
.lbl { will-change: auto !important; gap: 6px; padding: 4px 9px 4px 4px; border-radius: 10px; font: 700 13px Inter, sans-serif; background: rgba(255, 255, 255, 0.92); border: 1px solid rgba(39, 39, 42, 0.09); color: #27272a; box-shadow: 0 6px 18px rgba(39, 39, 42, 0.158); -webkit-font-smoothing: antialiased; transition: border-color 0.2s, box-shadow 0.2s; }
.lbl i { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; background: #e7e7e9 center / cover; color: #d3d3d5; font-style: normal; font-size: 11px; }
.lbl b { letter-spacing: -0.01em; }
.lbl span { font: 600 11px Inter, system-ui, sans-serif; color: #d3d3d5; }
.lbl em { font: 700 11px Inter, system-ui, sans-serif; font-style: normal; }
.lbl em.up { color: #16a34a; }
.lbl em.down { color: #dc2626; }
.lbl u { text-decoration: none; font: 800 11px Inter, sans-serif; letter-spacing: 0.06em; padding: 2px 5px; border-radius: 5px; background: #27272a; color: #ffffff; }
.lbl.hq { padding: 5px 10px; background: #27272a; color: #ffffff; }
.lbl.on { border-color: #27272a; box-shadow: 0 0 0 1px #27272a, 0 8px 22px rgba(39, 39, 42, 0.175); }
.lbl.buy { animation: lblBuy 0.9s ease-out; }
.lbl.sell { animation: lblSell 0.9s ease-out; }
@keyframes lblBuy { 0% { border-color: #16a34a; box-shadow: 0 0 0 2px rgba(74, 222, 128, 0.6), 0 6px 18px rgba(39, 39, 42, 0.158); } }
@keyframes lblSell { 0% { border-color: #dc2626; box-shadow: 0 0 0 2px rgba(248, 113, 113, 0.6), 0 6px 18px rgba(39, 39, 42, 0.158); } }
