/* Launchpad Section - Compact & High-Density */
.launch-section {
  border-top: 1px solid var(--line);
  padding: 45px 0 60px;
  scroll-margin-top: 75px;
}

.launch-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
  gap: 16px;
  align-items: start;
}

/* Left Form - Clean & Minimal */
.launch-form, .tree-panel {
  border: 1px solid #2a3632;
  border-radius: 8px;
  background: #101517;
}

.launch-form {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
}

.launch-form h3 {
  font-size: 20px;
  letter-spacing: -.03em;
  margin: 0;
  color: #fff;
}

.launch-form .preview-note {
  font-size: 11.5px;
  color: #8c9b95;
  line-height: 1.45;
  margin: 6px 0 14px;
}

.launch-form label {
  font-size: 11px;
  font-weight: 600;
  margin: 10px 0 4px;
  color: #cad6d0;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.launch-form input,
.launch-form textarea {
  width: 100%;
  background: #090d0f;
  border: 1px solid #33423c;
  border-radius: 5px;
  color: var(--text);
  padding: 8px 11px;
  font: inherit;
  font-size: 13px;
  outline: none;
  transition: border-color .15s;
}

.launch-form textarea {
  resize: vertical;
}

.launch-form input::placeholder,
.launch-form textarea::placeholder {
  color: #697772;
}

.launch-form input:focus,
.launch-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(199, 251, 115, 0.12);
}

.launch-form small {
  color: #7b8a84;
  font-size: 10.5px;
  margin-top: 3px;
}

.parent-lock {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 0;
  border-top: 1px solid #24302b;
  margin-top: 14px;
  font-size: 11px;
  color: #92a29b;
}

.parent-lock strong {
  color: var(--accent);
  font-weight: 600;
}

.launch-form button {
  border: 0;
  width: 100%;
  justify-content: space-between;
  padding: 12px 14px;
  font-size: 13px;
  margin-top: 4px;
}

.launch-form #launchStatus {
  font-size: 11.5px;
  color: var(--accent);
  min-height: 16px;
  margin: 10px 0 0;
  line-height: 1.4;
}

/* Right Panel: YOUR LOCAL NETWORK Tree - Ultra Compact & Multi-Column */
.tree-panel {
  min-height: 480px;
  display: flex;
  flex-direction: column;
  padding: 0;
  background: radial-gradient(circle at 50% 12%, #142018, #0e1416 65%);
}

.tree-panel .panel-heading {
  padding: 14px 18px;
  border-bottom: 1px solid #23302a;
  color: #8c9b94;
  font-size: 11px;
}

.tree-root {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border: 1px solid #4a683e;
  border-radius: 16px;
  background: #132017;
  margin: 14px auto 0;
}

.tree-root .small-title {
  color: var(--accent);
  font-size: 9.5px;
  letter-spacing: .12em;
  background: rgba(199, 251, 115, 0.15);
  padding: 2px 6px;
  border-radius: 8px;
  font-weight: 700;
}

.tree-root h3 {
  color: #fff;
  font-size: 13px;
  margin: 0;
  font-weight: 700;
  letter-spacing: .02em;
}

.tree-root p {
  margin: 0;
  color: #8fa095;
  font-size: 11px;
}

.tree-stem {
  height: 14px;
  width: 1px;
  background: #4a683e;
  align-self: center;
  margin-bottom: 4px;
}

/* Dense Multi-column Grid */
.draft-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 7px;
  padding: 0 14px;
  max-height: 380px;
  overflow-y: auto;
  align-content: start;
}

.draft-grid::-webkit-scrollbar {
  width: 4px;
}
.draft-grid::-webkit-scrollbar-track {
  background: transparent;
}
.draft-grid::-webkit-scrollbar-thumb {
  background: #2b3a32;
  border-radius: 2px;
}
.draft-grid::-webkit-scrollbar-thumb:hover {
  background: #445c4f;
}

/* Compact Branch Card */
.draft-card {
  min-width: 0;
  position: relative;
  border: 1px solid #25332b;
  background: #101616;
  border-radius: 6px;
  padding: 8px 9px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: transform .12s, border-color .12s;
}

.draft-card:hover {
  border-color: #425b44;
  transform: translateY(-1px);
}

.draft-card.approved {
  border-color: #355333;
  background: #111a13;
}

.draft-card.pending {
  border-color: #42381e;
  background: #15140f;
}

.draft-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.draft-card-ticker {
  font: 700 12px 'Space Grotesk', sans-serif;
  color: var(--accent);
  letter-spacing: .02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.draft-badge {
  font-size: 8px;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 3px;
  letter-spacing: .04em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.draft-badge.approved {
  background: #1b2f1e;
  color: #c7fb73;
  border: 1px solid #365733;
}

.draft-badge.pending {
  background: #272111;
  color: #f5cf60;
  border: 1px solid #4f4019;
}

.draft-card-name {
  font-size: 10.5px;
  font-weight: 600;
  color: #dde6e0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.draft-card-desc {
  color: #85958c;
  font-size: 9.5px;
  line-height: 1.35;
  margin: 1px 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.draft-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  margin-top: 3px;
  padding-top: 3px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.draft-card-link {
  font-size: 9px;
  color: var(--accent);
  text-decoration: underline;
}

.draft-card-del {
  background: none;
  border: none;
  color: #6d7b74;
  font-size: 9px;
  cursor: pointer;
  padding: 0;
  margin-left: auto;
}

.draft-card-del:hover {
  color: #e66868;
}

.draft-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 24px 14px;
  color: #84938a;
  font-size: 11.5px;
  border: 1px dashed #2d3a33;
  border-radius: 6px;
}

.tree-disclaimer {
  margin: 10px 14px 12px;
  padding-top: 8px;
  border-top: 1px solid #1a2520;
  color: #6c7c74;
  font-size: 9.5px;
  line-height: 1.35;
}

/* Event Preview Banner - Sleek & Compact */
.event-preview {
  margin-top: 14px;
  border: 1px solid #2e432f;
  background: linear-gradient(100deg, #152218, #0f1614);
  border-radius: 7px;
  padding: 16px 22px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 28px;
  align-items: center;
}

.event-preview h3 {
  font-size: 18px;
  margin: 4px 0 2px;
}

.event-preview p {
  font-size: 11.5px;
  line-height: 1.45;
  color: #9cb0a0;
  max-width: 580px;
  margin: 0;
}

.event-preview > div:not(:first-child) {
  display: flex;
  flex-direction: column;
  gap: 2px;
  white-space: nowrap;
}

.event-preview strong {
  color: var(--accent);
  font: 600 16px 'Space Grotesk', sans-serif;
}

.event-preview div > span:last-child {
  color: #8c9e90;
  font-size: 10px;
}

@media (max-width: 800px) {
  .launch-layout {
    grid-template-columns: 1fr;
  }
  .draft-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
  .event-preview {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
}
