:root {
  --ink: #e7ecf3;
  --muted: #9bacbe;
  --card: #1a1f2b;
  --line: #2b3342;
  --accent: #5cc8ff;
  --accent-strong: #7ad6ff;
  --danger: #ff7b72;
  --editor-bg: #0d121b;
  --editor-ink: #dce6f4;
  --launcher-background-image: none;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Segoe UI", "Trebuchet MS", sans-serif;
  background:
    linear-gradient(180deg, #080b11 0%, #101724 100%);
}

#root {
  min-height: 100dvh;
}

.launcher-shell {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  padding: 48px 24px;
}

.launcher-shell-admin {
  padding: 24px 20px;
}

.launcher-shell::before,
.launcher-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.launcher-shell::before {
  z-index: -2;
  background-image: var(--launcher-background-image);
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0.34;
  filter: saturate(0.9) blur(2px);
  transform: scale(1.02);
}

.launcher-shell::after {
  z-index: -1;
  background:
    radial-gradient(circle at center, rgba(12, 18, 28, 0.16) 0%, rgba(7, 10, 16, 0.54) 56%, rgba(5, 7, 11, 0.78) 100%),
    linear-gradient(180deg, rgba(8, 11, 17, 0.36) 0%, rgba(8, 11, 17, 0.52) 36%, rgba(7, 10, 15, 0.84) 72%, rgba(5, 7, 11, 0.96) 100%);
}

.launcher-stack {
  width: min(760px, 100%);
  display: grid;
  gap: 18px;
}

.launcher-stack-admin {
  width: min(1440px, 100%);
}

.launcher-build-stamp {
  color: #7f90ab;
  font-size: 11px;
  line-height: 1.4;
  text-align: center;
}

.launcher-hero-window,
.launcher-changelog-window {
  border: 1px solid #4f79af;
  border-radius: 12px;
  background: color-mix(in srgb, #0a1020 88%, transparent);
  color: #d8e8ff;
  box-shadow: 0 16px 34px rgba(3, 8, 18, 0.46);
  overflow: hidden;
  display: grid;
  grid-template-rows: 34px minmax(0, 1fr);
  backdrop-filter: blur(10px);
}

.launcher-hero-window {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  grid-template-rows: minmax(0, 1fr);
  justify-self: center;
  width: min(620px, 100%);
}

.launcher-hero-body {
  padding: 0;
}

.launcher-hero-stack {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 22px 28px 18px;
  position: relative;
  isolation: isolate;
}

.launcher-hero-stack::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border: 1px solid rgba(79, 121, 175, 0.7);
  border-radius: 42px;
  background:
    radial-gradient(circle at top center, rgba(109, 169, 245, 0.22) 0%, rgba(109, 169, 245, 0) 52%),
    linear-gradient(180deg, rgba(16, 28, 50, 0.82) 0%, rgba(9, 17, 31, 0.9) 100%);
  box-shadow:
    0 18px 34px rgba(3, 8, 18, 0.32),
    inset 0 0 0 1px rgba(180, 214, 255, 0.08);
  backdrop-filter: blur(16px);
}

.launcher-title-bubble {
  padding: 14px 24px;
  border: 1px solid #4f79af;
  border-radius: 999px;
  background: color-mix(in srgb, #13233f 92%, transparent);
  box-shadow:
    0 12px 26px rgba(3, 8, 18, 0.26),
    inset 0 0 0 1px rgba(180, 214, 255, 0.08);
  backdrop-filter: blur(10px);
}

.launcher-hero-copy {
  max-width: 50ch;
  text-align: center;
}

.launcher-title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 0.95;
}

.launcher-status {
  margin: 14px 0 0;
  font-size: 1rem;
  color: #ebf3ff;
}

.launcher-hint {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.launcher-error {
  margin: 12px 0 0;
  color: var(--danger);
  font-size: 0.95rem;
  line-height: 1.5;
}

.launcher-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.launcher-actions-floating {
  margin-top: 0;
  justify-content: center;
}

.launcher-changelog-window {
  width: min(760px, 100%);
}

.launcher-shell-admin .launcher-changelog-window {
  width: min(1440px, 100%);
}

.launcher-changelog-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  background: linear-gradient(180deg, #1b365e 0%, #122743 100%);
  border-bottom: 1px solid #365782;
  user-select: none;
}

.launcher-changelog-title {
  min-width: 0;
  flex: 1 1 auto;
  font-size: 12px;
  font-weight: 800;
  color: #eef6ff;
}

.launcher-changelog-hint {
  font-size: 11px;
  color: #a9c2ec;
  white-space: nowrap;
}

.launcher-changelog-body {
  min-height: 0;
  max-height: min(52dvh, 720px);
  padding: 12px;
  overflow: auto;
  scrollbar-gutter: stable both-edges;
}

.launcher-shell-admin .launcher-changelog-body {
  max-height: calc(100dvh - 92px);
}

.launcher-board-content {
  min-height: 100%;
  display: grid;
  gap: 12px;
}

.launcher-board-tabs {
  display: flex;
  gap: 4px;
  width: 280px;
  max-width: 100%;
  justify-self: start;
  padding: 4px;
  border: 1px solid #365782;
  border-radius: 14px;
  background: rgba(8, 16, 31, 0.76);
}

.launcher-board-tab {
  flex: 1 1 0;
  min-height: 42px;
  width: 0;
  min-width: 0;
  padding: 10px 18px;
  border-color: transparent;
  background: transparent;
}

.launcher-board-tab.is-active {
  border-color: #6eaef5;
  background: linear-gradient(180deg, #2c4e80 0%, #18355e 100%);
  box-shadow: inset 0 0 0 1px rgba(168, 208, 255, 0.18);
}

.changelog-splash-card {
  min-height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 10px;
}

.launcher-request-board-card {
  min-height: 0;
  grid-template-rows: none;
  grid-auto-rows: max-content;
  align-content: start;
}

.changelog-splash-hero {
  padding: 10px 12px;
  border: 1px solid #4f79af;
  border-radius: 12px;
  background:
    radial-gradient(circle at top right, rgba(100, 170, 248, 0.24) 0%, transparent 48%),
    linear-gradient(180deg, rgba(27, 54, 94, 0.64) 0%, rgba(17, 32, 63, 0.82) 100%);
  box-shadow: inset 0 0 0 1px rgba(10, 16, 32, 0.22);
}

.changelog-splash-kicker {
  color: #ffd166;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.changelog-splash-title {
  color: #eef6ff;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 4px;
}

.changelog-splash-meta {
  color: #a9c2ec;
  font-size: 11px;
  line-height: 1.35;
}

.changelog-splash-list {
  min-height: 0;
  overflow: auto;
  display: grid;
  gap: 10px;
  padding-right: 4px;
}

.launcher-request-hero-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  margin-top: 10px;
}

.launcher-request-toolbar-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.launcher-request-filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.launcher-request-filter-bar-admin {
  margin-bottom: 2px;
}

.launcher-request-search-input {
  min-height: 40px;
  border: 1px solid #365782;
  border-radius: 12px;
  padding: 0 12px;
  background: rgba(8, 16, 31, 0.88);
  color: #eef6ff;
}

.launcher-request-filter-menu-wrap {
  position: relative;
}

.launcher-request-filter-icon-btn {
  min-width: 40px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.launcher-request-filter-icon-btn svg {
  width: 18px;
  height: 18px;
}

.launcher-request-filter-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 20;
  width: min(320px, 82vw);
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid #365782;
  border-radius: 12px;
  background: rgba(8, 16, 31, 0.96);
  box-shadow: 0 18px 34px rgba(3, 8, 18, 0.34);
}

.launcher-request-filter-menu-admin {
  width: min(300px, 72vw);
}

.launcher-request-filter-group {
  display: grid;
  gap: 6px;
}

.launcher-request-filter-group-title {
  color: #9fd8ff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.launcher-request-filter-option {
  display: flex;
  gap: 8px;
  align-items: center;
  color: #d7e7ff;
  font-size: 12px;
}

.launcher-request-filter-label {
  color: #9fb8e5;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.launcher-request-filter-select {
  min-height: 40px;
  border-color: #365782;
  background: rgba(8, 16, 31, 0.88);
  color: #eef6ff;
}

.launcher-request-composer {
  display: grid;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid #365782;
  border-radius: 12px;
  background: rgba(17, 32, 63, 0.84);
  box-shadow: inset 0 0 0 1px rgba(10, 16, 32, 0.14);
}

.launcher-request-admin-panel {
  display: grid;
  gap: 8px;
  padding: 8px;
  border: 1px solid #476d9d;
  border-radius: 12px;
  background:
    radial-gradient(circle at top right, rgba(100, 170, 248, 0.18) 0%, transparent 48%),
    linear-gradient(180deg, rgba(18, 33, 63, 0.9) 0%, rgba(10, 19, 38, 0.94) 100%);
  box-shadow:
    0 12px 28px rgba(3, 8, 18, 0.24),
    inset 0 0 0 1px rgba(10, 16, 32, 0.14);
}

.launcher-shell-admin .launcher-request-admin-panel {
  min-height: calc(100dvh - 126px);
}

.launcher-request-admin-unlock {
  display: grid;
  gap: 12px;
  max-width: 420px;
}

.launcher-request-admin-field {
  display: grid;
  gap: 4px;
}

.launcher-request-admin-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.launcher-request-admin-kicker {
  color: #ffd166;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.launcher-request-admin-title {
  margin: 0 0 6px;
  color: #eef6ff;
  font-size: 18px;
  line-height: 1.1;
}

.launcher-request-admin-copy {
  margin: 0;
  color: #b8cfee;
  font-size: 12px;
  line-height: 1.5;
  max-width: 58ch;
}

.launcher-request-admin-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.launcher-request-admin-stats span {
  padding: 4px 8px;
  border: 1px solid #365782;
  border-radius: 999px;
  background: rgba(8, 16, 31, 0.76);
  color: #d7e7ff;
  font-size: 11px;
  line-height: 1;
}

.launcher-request-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.launcher-request-admin-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.launcher-request-admin-sidebar {
  display: grid;
  gap: 0;
  min-height: 0;
}

.launcher-request-admin-notice {
  margin: 0;
  color: #a8e6c2;
  font-size: 12px;
  line-height: 1.5;
}

.launcher-request-admin-grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 12px;
  min-height: 0;
  align-items: stretch;
}

.launcher-shell-admin .launcher-request-admin-grid {
  grid-template-columns: 320px minmax(0, 1fr);
  min-height: calc(100dvh - 224px);
}

.launcher-request-admin-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 8px;
  min-height: 0;
  padding: 9px;
  border: 1px solid #365782;
  border-radius: 12px;
  background: rgba(8, 16, 31, 0.74);
}

.launcher-request-admin-list-card {
  grid-template-rows: auto auto minmax(0, 1fr);
}

.launcher-shell-admin .launcher-request-admin-sidebar,
.launcher-shell-admin .launcher-request-admin-card,
.launcher-shell-admin .launcher-request-admin-detail-card {
  height: 100%;
}

.launcher-request-admin-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.launcher-request-admin-card-title {
  margin: 0;
  color: #eef6ff;
  font-size: 13px;
  font-weight: 800;
}

.launcher-request-admin-card-hint {
  color: #9fb8e5;
  font-size: 10px;
  line-height: 1.4;
}

.launcher-request-admin-request-list,
.launcher-request-admin-log-list {
  min-height: 0;
  max-height: 320px;
  height: 100%;
  overflow: auto;
  display: grid;
  gap: 8px;
  padding-right: 4px;
}

.launcher-shell-admin .launcher-request-admin-request-list,
.launcher-shell-admin .launcher-request-admin-log-list {
  max-height: calc(100dvh - 250px);
}

.launcher-request-admin-request-row,
.launcher-request-admin-log-row {
  display: grid;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid #365782;
  border-radius: 10px;
  background: rgba(17, 32, 63, 0.82);
}

.launcher-request-admin-request-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
  cursor: pointer;
}

.launcher-request-admin-request-row.is-selected {
  border-color: #63a6f2;
  box-shadow: 0 0 0 1px rgba(99, 166, 242, 0.45);
}

.launcher-request-admin-request-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.launcher-request-admin-request-headline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.launcher-request-admin-request-title,
.launcher-request-admin-log-title {
  color: #eef6ff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.launcher-request-admin-request-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.launcher-request-admin-request-meta span {
  padding: 3px 7px;
  border: 1px solid #365782;
  border-radius: 999px;
  background: rgba(25, 48, 87, 0.72);
  color: #d7e7ff;
  font-size: 10px;
  line-height: 1;
}

.launcher-request-admin-log-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.launcher-request-admin-log-time {
  color: #9fb8e5;
  font-size: 11px;
  white-space: nowrap;
}

.launcher-request-admin-log-detail {
  color: #d7e7ff;
  font-size: 11px;
  line-height: 1.5;
  white-space: pre-wrap;
}

.launcher-request-admin-detail-card {
  min-height: 0;
}

.launcher-request-admin-detail {
  display: grid;
  gap: 6px;
  min-height: 0;
  overflow: hidden;
}

.launcher-request-admin-detail-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: flex-start;
  gap: 10px;
}

.launcher-request-admin-detail-copy {
  min-width: 0;
}

.launcher-request-admin-detail-tabs {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(160px, 1fr));
  gap: 10px;
  padding: 4px;
  border: 1px solid #365782;
  border-radius: 16px;
  background: rgba(17, 32, 63, 0.78);
}

.launcher-request-admin-tab {
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid #365782;
  border-radius: 14px;
  background: rgba(24, 37, 59, 0.94);
  color: #eef6ff;
  font-size: 0.94rem;
  font-weight: 800;
  cursor: pointer;
}

.launcher-request-admin-tab.is-active {
  border-color: rgba(110, 255, 173, 0.52);
  background: linear-gradient(135deg, rgba(33, 146, 86, 0.88) 0%, rgba(24, 108, 123, 0.88) 100%);
  color: #f3fff8;
  box-shadow: inset 0 0 0 1px rgba(210, 255, 227, 0.14);
}

.launcher-request-admin-detail-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: flex-end;
  gap: 10px;
}

.launcher-request-admin-field-inline {
  min-width: 160px;
}

.launcher-request-admin-icon-actions {
  display: flex;
  gap: 8px;
}

.launcher-request-admin-icon-btn {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #365782;
  border-radius: 12px;
  background: rgba(17, 32, 63, 0.9);
  color: #e7ecf3;
  cursor: pointer;
}

.launcher-request-admin-icon-btn svg {
  width: 18px;
  height: 18px;
}

.launcher-request-admin-icon-btn.is-success {
  border-color: rgba(110, 255, 173, 0.52);
  background: linear-gradient(135deg, rgba(33, 146, 86, 0.88) 0%, rgba(24, 108, 123, 0.88) 100%);
  color: #f3fff8;
}

.launcher-request-admin-icon-btn:disabled {
  opacity: 0.56;
  cursor: default;
}

.launcher-request-admin-tab-panel {
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
}

.launcher-request-admin-query-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  min-height: 0;
}

.launcher-request-admin-editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.launcher-request-admin-editor-grid-wide {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.launcher-request-admin-tag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.launcher-request-admin-tag-toggle {
  cursor: pointer;
}

.launcher-request-admin-tag-toggle.is-active {
  border-color: #4fa87e;
  background: rgba(19, 73, 50, 0.88);
  color: #b7f0d5;
}

.launcher-request-admin-analysis-item {
  display: grid;
  gap: 7px;
  padding: 8px;
  border: 1px solid #365782;
  border-radius: 12px;
  background: rgba(8, 16, 31, 0.72);
  align-content: start;
}

.launcher-request-admin-analysis-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 10px;
}

.launcher-request-admin-textarea {
  min-height: 72px;
}

.launcher-request-admin-textarea-sm {
  min-height: 44px;
}

.launcher-request-admin-textarea-xs {
  min-height: 36px;
}

.launcher-chip-field {
  display: grid;
  gap: 6px;
  align-content: start;
}

.launcher-chip-field-head {
  display: grid;
  gap: 4px;
}

.launcher-chip-list {
  min-height: 42px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid #365782;
  border-radius: 12px;
  background: rgba(8, 16, 31, 0.88);
  align-items: center;
}

.launcher-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 9px;
  border: 1px solid #365782;
  border-radius: 999px;
  background: rgba(25, 48, 87, 0.76);
  color: #d7e7ff;
  font-size: 11px;
  line-height: 1;
}

.launcher-chip-remove {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
}

.launcher-chip-empty {
  color: #9fb8e5;
  font-size: 11px;
  line-height: 1.4;
}

.launcher-request-composer-label {
  color: #d7e7ff;
  font-size: 12px;
  font-weight: 700;
}

.launcher-request-textarea {
  width: 100%;
  min-height: 84px;
  resize: vertical;
  border: 1px solid #365782;
  border-radius: 10px;
  padding: 10px 12px;
  background: rgba(8, 16, 31, 0.88);
  color: #eef6ff;
  line-height: 1.5;
}

.launcher-request-composer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.launcher-request-list {
  min-height: 0;
  overflow: auto;
  display: grid;
  gap: 8px;
  padding-right: 4px;
  grid-auto-rows: max-content;
  align-content: start;
  align-items: start;
}

.launcher-request-entry {
  position: relative;
  display: grid;
  gap: 7px;
  align-content: start;
  align-self: start;
  padding: 9px 11px;
  border: 1px solid #365782;
  border-radius: 12px;
  background: rgba(17, 32, 63, 0.84);
  box-shadow: inset 0 0 0 1px rgba(10, 16, 32, 0.14);
}

.launcher-request-entry.is-clickable {
  cursor: pointer;
}

.launcher-request-entry.is-active {
  border-color: #4f79af;
}

.launcher-request-entry.is-pending {
  border-color: #6d5f36;
  background: rgba(45, 34, 15, 0.64);
}

.launcher-request-entry.is-expanded {
  box-shadow:
    0 14px 28px rgba(3, 8, 18, 0.28),
    inset 0 0 0 1px rgba(10, 16, 32, 0.14);
}

.launcher-request-entry-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.launcher-request-entry-head-main {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.launcher-request-entry-date {
  flex: 0 0 auto;
  padding-top: 2px;
  color: #90a8cd;
  font-size: 10px;
  line-height: 1.2;
  white-space: nowrap;
  text-align: right;
}

.launcher-request-status-pill {
  padding: 4px 9px;
  border: 1px solid #365782;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.launcher-request-status-pill.is-active {
  border-color: #2f7e60;
  background: rgba(19, 73, 50, 0.88);
  color: #b7f0d5;
}

.launcher-request-status-pill.is-implemented {
  border-color: #4a8f60;
  background: rgba(23, 88, 53, 0.86);
  color: #d6ffe3;
}

.launcher-request-status-pill.is-pending {
  border-color: #9c8140;
  background: rgba(93, 70, 19, 0.78);
  color: #ffe7a9;
}

.launcher-request-status-pill.is-queued,
.launcher-request-status-pill.is-processing {
  border-color: #7d6d3b;
  background: rgba(80, 62, 18, 0.82);
  color: #ffe7a9;
}

.launcher-request-status-pill.is-needs-review {
  border-color: #b96a32;
  background: rgba(101, 42, 13, 0.84);
  color: #ffd5b0;
}

.launcher-request-status-pill.is-error {
  border-color: #9b4053;
  background: rgba(87, 24, 36, 0.82);
  color: #ffd4dc;
}

.launcher-request-status-pill.is-processed {
  border-color: #466e99;
  background: rgba(26, 53, 87, 0.82);
  color: #d5e8ff;
}

.launcher-request-entry-title-block {
  min-width: 0;
  display: block;
}

.launcher-request-entry-title {
  margin: 0;
  color: #eef6ff;
  font-size: 13px;
  line-height: 1.2;
}

.launcher-request-delete-btn {
  min-width: 32px;
  min-height: 32px;
  padding: 6px 10px;
  border-color: #7b3141;
  background: #4f1d2a;
  color: #ffe4ea;
  font-weight: 700;
}

.launcher-request-delete-btn:not(:disabled):hover {
  background: #672536;
}

.launcher-request-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: flex-start;
  align-content: flex-start;
}

.launcher-request-tag {
  padding: 3px 7px;
  border: 1px solid #365782;
  border-radius: 999px;
  background: rgba(25, 48, 87, 0.72);
  color: #d7e7ff;
  font-size: 10px;
  line-height: 1;
}

.launcher-request-entry-meta,
.launcher-request-empty {
  color: #9fb8e5;
  font-size: 11px;
  line-height: 1.4;
}

.launcher-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(4, 8, 15, 0.72);
  backdrop-filter: blur(6px);
}

.launcher-modal {
  width: min(980px, 100%);
  max-height: min(82dvh, 920px);
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #365782;
  border-radius: 14px;
  background: rgba(8, 16, 31, 0.96);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.42);
}

.launcher-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.launcher-modal-console {
  min-height: 0;
  overflow: auto;
  display: grid;
  gap: 8px;
  padding: 4px;
  border: 1px solid #24364e;
  border-radius: 12px;
  background: #07101d;
  font-family: Consolas, "Courier New", monospace;
}

.launcher-modal-console-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid #17304e;
  border-radius: 10px;
  background: rgba(10, 18, 31, 0.88);
}

.launcher-modal-console-time {
  color: #7ea2d2;
  font-size: 11px;
  line-height: 1.4;
}

.launcher-modal-console-copy {
  display: grid;
  gap: 4px;
}

.launcher-request-expanded {
  display: grid;
  gap: 10px;
  padding-top: 2px;
}

.launcher-request-expanded-block {
  display: grid;
  gap: 5px;
  padding: 10px 12px;
  border: 1px solid #365782;
  border-radius: 10px;
  background: rgba(8, 16, 31, 0.74);
}

.launcher-request-expanded-label {
  color: #9fd8ff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.launcher-request-expanded-copy {
  margin: 0;
  color: #d7e7ff;
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
}

.launcher-request-error {
  margin: 0;
  color: #ff9aa4;
  font-size: 12px;
  line-height: 1.45;
}

.changelog-splash-section {
  padding: 10px 12px;
  border: 1px solid #365782;
  border-radius: 12px;
  background: rgba(17, 32, 63, 0.84);
  box-shadow: inset 0 0 0 1px rgba(10, 16, 32, 0.14);
}

.changelog-splash-section-title {
  margin: 0 0 8px;
  color: #eef6ff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.changelog-splash-bullets {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 5px;
  color: #d7e7ff;
  font-size: 12px;
  line-height: 1.45;
}

.changelog-splash-bullet-note {
  margin-top: 3px;
  color: #a9c2ec;
  font-size: 11px;
  line-height: 1.4;
  font-style: italic;
}

.changelog-splash-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.changelog-splash-footnote {
  color: #9fb8e5;
  font-size: 11px;
  line-height: 1.4;
}

.launcher-primary-btn,
.launcher-secondary-btn {
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 700;
}

.launcher-primary-btn {
  border: 1px solid rgba(110, 255, 173, 0.5);
  background:
    linear-gradient(135deg, rgba(33, 146, 86, 0.92) 0%, rgba(24, 108, 123, 0.92) 100%);
  color: #f3fff8;
  box-shadow:
    0 0 0 1px rgba(161, 255, 206, 0.14),
    0 0 18px rgba(52, 211, 153, 0.22);
}

.launcher-primary-btn:not(:disabled):hover {
  background:
    linear-gradient(135deg, rgba(38, 163, 96, 0.96) 0%, rgba(27, 122, 139, 0.96) 100%);
}

.launcher-secondary-btn {
  border: 1px solid #364154;
  background: #1d2432;
  color: var(--ink);
}

.launcher-secondary-btn:not(:disabled):hover {
  background: #263149;
}

.launcher-primary-btn svg,
.launcher-secondary-btn svg {
  width: 16px;
  height: 16px;
}

.launcher-secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.page-shell {
  width: min(960px, 93vw);
  margin: 24px auto;
  display: grid;
  gap: 0.7rem;
}

.header-card,
.workspace-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.header-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 14px;
}

.header-copy {
  min-width: 0;
}

.workspace-card {
  padding: 12px;
}

h1 {
  margin: 0.2rem 0 0;
  font-size: 24px;
}

h2 {
  margin: 0 0 0.45rem;
  font-size: 16px;
}

.lede {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.header-map-editor-btn {
  position: relative;
  min-width: 168px;
  padding: 12px 18px;
  border: 1px solid rgba(110, 255, 173, 0.48);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(33, 146, 86, 0.92) 0%, rgba(24, 108, 123, 0.92) 100%);
  color: #f3fff8;
  font-size: 0.98rem;
  font-weight: 700;
  box-shadow:
    0 0 0 1px rgba(161, 255, 206, 0.14),
    0 0 18px rgba(52, 211, 153, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  overflow: hidden;
  isolation: isolate;
  animation: headerWorldshaperStudioGlow 3.8s ease-in-out infinite;
}

.header-map-editor-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.16) 35%, transparent 62%);
  transform: translateX(-140%);
  animation: headerWorldshaperStudioShine 3.6s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.header-map-editor-btn-label {
  position: relative;
  z-index: 1;
}

.header-map-editor-btn:not(:disabled):hover {
  background:
    linear-gradient(135deg, rgba(38, 163, 96, 0.96) 0%, rgba(27, 122, 139, 0.96) 100%);
  box-shadow:
    0 0 0 1px rgba(186, 255, 220, 0.2),
    0 0 24px rgba(52, 211, 153, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.header-map-editor-btn:disabled {
  opacity: 0.58;
  box-shadow: none;
}

@keyframes headerWorldshaperStudioGlow {
  0%, 100% {
    box-shadow:
      0 0 0 1px rgba(161, 255, 206, 0.14),
      0 0 18px rgba(52, 211, 153, 0.24),
      inset 0 1px 0 rgba(255, 255, 255, 0.12);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(196, 255, 228, 0.18),
      0 0 26px rgba(52, 211, 153, 0.38),
      inset 0 1px 0 rgba(255, 255, 255, 0.16);
  }
}

@keyframes headerWorldshaperStudioShine {
  0%, 14% {
    transform: translateX(-140%);
  }
  38%, 100% {
    transform: translateX(160%);
  }
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.55rem;
}

.toolbar-error {
  margin: 0 0 0 auto;
  color: var(--danger);
  font-size: 13px;
}

.top-nav-tabs {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 10px;
  display: grid;
  gap: 8px;
  background: var(--card);
}

.nav-cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.nav-cluster-title {
  margin: 0;
  min-width: 88px;
  color: #b8cced;
  font-weight: 400;
  font-size: 13px;
}

.nav-tab-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nav-pill {
  border: 1px solid #364154;
  background: #1d2432;
  color: #e8f2ff;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 400;
}

.nav-pill.is-active {
  border-color: #2e7bb6;
  background: #17466a;
}

label {
  font-weight: 400;
  font-size: 13px;
}

select,
button,
textarea {
  font: inherit;
}

input {
  font: inherit;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  background: #0d121b;
  color: var(--ink);
}

select,
button {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: #1d2432;
  color: var(--ink);
  font-size: 13px;
}

button {
  border-color: #364154;
  background: #1d2432;
  color: var(--ink);
  font-weight: 400;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

button:not(:disabled):hover {
  background: #263149;
}

button.primary {
  border-color: #2e7bb6;
  background: #17466a;
}

button.primary.save-dirty {
  border-color: #8fdcff;
  background: #1b5f8f;
  box-shadow: 0 0 0 1px rgba(143, 220, 255, 0.45), 0 0 14px rgba(143, 220, 255, 0.55);
}

button.primary.save-dirty:not(:disabled):hover {
  background: #2474ac;
  box-shadow: 0 0 0 1px rgba(143, 220, 255, 0.6), 0 0 18px rgba(143, 220, 255, 0.7);
}

button.success {
  border-color: #2d7d46;
  background: #184f2c;
}

button.danger {
  border-color: #8b2f3c;
  background: #5a1f29;
}

button.success:not(:disabled):hover {
  background: #20623a;
}

button.danger:not(:disabled):hover {
  background: #763040;
}

.json-editor {
  width: 100%;
  min-height: 30dvh;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px;
  background: #0b1424;
  color: var(--editor-ink);
  font-family: "Consolas", "Courier New", monospace;
  font-size: 0.89rem;
  line-height: 1.5;
}

.status-row {
  margin-top: 0.5rem;
  display: grid;
  gap: 0.25rem;
}

.status-text {
  margin: 0;
  color: var(--muted);
}

.status-error {
  margin: 0;
  color: var(--danger);
}

.validation-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--danger);
  display: grid;
  gap: 0.2rem;
}

.structured-layout {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}

.record-list-panel,
.record-editor-panel {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  background: var(--card);
}

.records-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.record-actions {
  margin-left: auto;
  display: flex;
  gap: 6px;
}

.record-list-tools {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
  margin-bottom: 8px;
}

.record-list-search {
  width: 100%;
  min-width: 0;
}

.record-filter-dropdown {
  position: relative;
  display: flex;
  gap: 6px;
  align-items: stretch;
}

.record-filter-toggle {
  height: 100%;
  min-height: 36px;
  white-space: nowrap;
}

.record-filter-clear {
  min-height: 36px;
  padding: 6px 10px;
  font-size: 12px;
}

.record-filter-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  z-index: 12;
  min-width: 220px;
  max-height: 220px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #141c2b;
  padding: 6px;
  display: grid;
  gap: 4px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.record-filter-section-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #9db4d8;
  margin: 2px 2px 0;
}

.record-filter-divider {
  height: 1px;
  background: #2a3448;
  margin: 4px 0;
}

.record-rule-builder {
  display: grid;
  gap: 4px;
}

.record-rule-builder select,
.record-rule-builder input {
  width: 100%;
  min-width: 0;
}

.record-rule-add-btn {
  justify-self: start;
  padding: 5px 9px;
  font-size: 12px;
}

.record-suggestion-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 2px;
}

.record-suggestion-chip {
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 11px;
  background: #17233a;
  border-color: #2f4266;
}

.active-rule-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 8px;
}

.active-rule-chip {
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  border-color: #39608f;
  background: #163454;
}

.edit-page-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.edit-tab {
  border: 1px solid #364154;
  background: #1d2432;
  color: #dce9ff;
  font-size: 13px;
  font-weight: 400;
}

.edit-tab.is-active {
  border-color: #2e7bb6;
  background: #17466a;
}

.record-list {
  display: grid;
  gap: 6px;
  max-height: 38dvh;
  overflow: auto;
}

.record-row {
  position: relative;
  padding-left: 20px;
  text-align: left;
  font-weight: 400;
  font-size: 13px;
  border-color: var(--line);
  background: #1d2432;
  color: var(--ink);
}

.record-row-with-thumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.faction-record-label {
  font-weight: 600;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.75);
}

.sprite-thumb {
  image-rendering: pixelated;
  border: 1px solid #3a465b;
  border-radius: 4px;
  background: #0d121b;
}

.sprite-thumb-list {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
}

.sprite-thumb-info {
  width: 56px;
  height: 56px;
}

.sprite-thumb-empty {
  display: inline-block;
}

.sprite-preview-field {
  margin-top: 2px;
}

.npc-sprite-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 8px;
}

.npc-sprite-search {
  margin-bottom: 6px;
}

.sprite-picker-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  border: 1px solid #2e426c;
  border-radius: 8px;
  background: #111d38;
  cursor: pointer;
  user-select: none;
  margin-bottom: 4px;
}
.sprite-picker-header:hover {
  background: #172745;
}
.sprite-picker-header-label {
  font-size: 12px;
  color: #9bb5e3;
  flex-shrink: 0;
}
.sprite-picker-header-preview {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
}
.sprite-picker-header-id {
  font-size: 12px;
  color: #d6e7ff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sprite-picker-header-chevron {
  font-size: 10px;
  color: #6b8fc5;
  flex-shrink: 0;
  margin-left: auto;
}

.npc-sprite-card {
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  border: 1px solid #364154;
  background: #1d2432;
}

.npc-sprite-card.is-active {
  border-color: #2e7bb6;
  background: #17466a;
  box-shadow: 0 0 0 1px rgba(122, 214, 255, 0.4);
}

.npc-sprite-card-label {
  font-size: 12px;
  line-height: 1.2;
  color: var(--ink);
}

.sprite-data-editor {
  display: grid;
  gap: 10px;
  margin-top: 4px;
  justify-items: center;
}

.sprite-data-card {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 8px;
  background: #141a25;
  display: grid;
  gap: 8px;
  justify-items: center;
  text-align: center;
}

.sprite-data-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.sprite-data-head h4 {
  margin: 0;
  font-size: 13px;
  font-weight: 400;
}

.sprite-palette-list,
.sprite-rows-list {
  display: grid;
  gap: 6px;
}

.sprite-paint-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sprite-tool-row {
  display: flex;
  gap: 6px;
}

.faction-color-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: center;
}

.faction-color-row input[type="color"] {
  width: 44px;
  height: 34px;
  padding: 2px;
}

.sprite-brush {
  display: none;
}

.sprite-paint-swatches {
  display: none;
}

.sprite-color-current {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border: 1px solid #364154;
  border-radius: 8px;
  background: #1d2432;
  margin-bottom: 4px;
}

.sprite-color-current-label {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sprite-color-current-swatch {
  width: 48px;
  height: 48px;
  border: 2px solid #5a6f88;
  border-radius: 6px;
  background: #0d121b;
}

.sprite-color-current-swatch.is-transparent {
  border-color: #000000;
  background: transparent;
}

.sprite-color-current-value {
  font-family: "Consolas", "Courier New", monospace;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-strong);
}

.sprite-painter-grid {
  display: grid;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px;
  background: #0d121b;
  overflow: auto;
  max-width: 100%;
  user-select: none;
  justify-content: center;
}

.sprite-cell {
  width: 30px;
  height: 30px;
  min-width: 30px;
  min-height: 30px;
  padding: 0;
  border: 1px solid #2f394c;
  border-radius: 2px;
  background-color: var(--paint-color, transparent);
  background-image: linear-gradient(var(--paint-color, transparent), var(--paint-color, transparent));
}

.sprite-cell.is-transparent {
  border-color: #000000;
  background-color: transparent;
  background-image:
    linear-gradient(var(--cell-bg, #c0c0c0), var(--cell-bg, #c0c0c0)),
    linear-gradient(var(--paint-color, transparent), var(--paint-color, transparent));
  background-size: 40px 40px, 100% 100%;
  background-position: 0 0, 0 0;
}

.sprite-palette-row,
.sprite-row-editor {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 6px;
  align-items: center;
}

.sprite-row-index {
  color: var(--muted);
  font-size: 12px;
  text-align: right;
  padding-right: 2px;
}

.record-row.has-pending::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  transform: translateY(-50%);
  background: #37cb69;
  box-shadow: 0 0 0 1px #102018, 0 0 8px rgba(55, 203, 105, 0.55);
}

.record-row.is-active {
  border-color: #2e7bb6;
  background: #17466a;
}

.fields-grid {
  display: grid;
  gap: 8px;
}

.color-palette-grid5 {
  display: grid;
  grid-template-columns: repeat(5, 45px);
  grid-auto-rows: 45px;
  gap: 4px;
  margin: 8px 0 12px;
}

.color-pixel-btn {
  width: 45px;
  height: 45px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 0;
  margin: 0;
  border-radius: 2px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  position: relative;
}

.color-pixel-btn.is-transparent {
  border-color: #000000;
  box-shadow: inset 0 0 0 1px #000000;
}

.color-pixel-spacer {
  width: 45px;
  height: 45px;
  display: block;
}

.color-pixel-btn.is-active {
  outline: 2px solid #8fcaff;
  outline-offset: 1px;
}

.color-pixel-label {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 8px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.8);
  pointer-events: none;
}

.color-palette-editor {
  max-width: 340px;
}

.field-row {
  display: grid;
  gap: 4px;
}

.condition-key-mapping {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.condition-key-column {
  min-width: 220px;
  display: grid;
  gap: 4px;
}

.muted {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.raw-heading {
  margin-top: 0.35rem;
}

.dialogue-editor {
  margin-top: 10px;
  border-top: 1px dashed var(--line);
  padding-top: 10px;
}

.dialogue-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.4rem;
}

.dialogue-editor-head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
}

.dialogue-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.dialogue-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 8px;
}

.dialogue-node-list {
  display: grid;
  gap: 6px;
  max-height: 30dvh;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  padding: 8px;
}

.dialogue-node-fields {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  padding: 8px;
}

.mini-editor {
  margin-top: 10px;
  border-top: 1px dashed var(--line);
  padding-top: 8px;
}

.mini-editor-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  gap: 8px;
}

.mini-editor-head h4 {
  margin: 0;
  font-size: 13px;
  font-weight: 400;
}

.flow-add-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.flow-step {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--card);
  padding: 8px;
  margin-bottom: 6px;
}

.flow-step.collapsed {
  background: var(--card);
}

.flow-step.drop-target {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(0, 109, 91, 0.18);
}

.flow-step-collapsed {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.65rem;
}

.flow-summary,
.flow-next-preview {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.flow-next-preview {
  margin: 0 0 0 auto;
  text-align: right;
  max-width: min(46%, 420px);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0.85;
}

.flow-step-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 6px;
}

.flow-step-toggle {
  cursor: pointer;
}

.flow-step-actions {
  display: flex;
  gap: 6px;
}

.flow-expanded-actions {
  justify-content: flex-end;
  margin-bottom: 0;
}

.flow-step-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 6px;
}

.mini-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr)) auto auto auto;
  gap: 0.35rem;
  align-items: center;
  margin-bottom: 0.35rem;
}

.inline-check {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.9rem;
}

.condition-composite {
  display: grid;
  grid-template-columns: 1fr 80px;
  gap: 0.3rem;
}

.dialogue-sim {
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  padding: 8px;
}

.dialogue-sim-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 6px;
}

.dialogue-sim-head h3 {
  margin: 0;
  font-size: 1rem;
}

.sandbox-row {
  display: grid;
  grid-template-columns: auto auto auto auto auto minmax(80px, 110px);
  gap: 6px;
  align-items: center;
  margin-bottom: 6px;
}

.sim-box {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  padding: 8px;
  display: grid;
  gap: 6px;
}

.sim-node {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.sim-text {
  margin: 0;
  white-space: pre-wrap;
}

.sim-choices {
  display: grid;
  gap: 0.35rem;
}

.sim-choices button {
  text-align: left;
}

@media (max-width: 720px) {
  .launcher-shell {
    padding: 24px 16px;
  }

  .launcher-shell::before {
    background-position: 62% top;
    opacity: 0.26;
    filter: saturate(0.82) blur(1.5px);
  }

  .launcher-stack,
  .launcher-hero-window,
  .launcher-changelog-window {
    width: 100%;
  }

  .launcher-actions {
    flex-direction: column;
  }

  .launcher-board-tabs,
  .launcher-request-composer-actions,
  .launcher-request-admin-actions,
  .launcher-request-toolbar-buttons {
    flex-direction: column;
  }

  .launcher-board-tabs,
  .launcher-request-admin-detail-tabs {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .launcher-request-hero-actions {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .launcher-request-filter-bar,
  .launcher-request-filter-bar-admin {
    grid-template-columns: 1fr auto;
  }

  .launcher-request-admin-toolbar,
  .launcher-request-admin-card-head,
  .launcher-request-admin-log-head {
    grid-template-columns: 1fr;
    display: grid;
  }

  .launcher-request-admin-grid {
    grid-template-columns: 1fr;
  }

  .launcher-request-admin-query-grid {
    grid-template-columns: 1fr;
  }

  .launcher-request-admin-request-row {
    grid-template-columns: 1fr;
  }

  .launcher-request-admin-editor-grid {
    grid-template-columns: 1fr;
  }

  .launcher-request-admin-detail-top,
  .launcher-request-admin-detail-controls {
    display: grid;
    justify-content: stretch;
  }

  .launcher-request-admin-detail-top {
    grid-template-columns: 1fr;
  }

  .launcher-modal-console-row {
    grid-template-columns: 1fr;
  }

  .launcher-request-admin-analysis-head {
    grid-template-columns: 1fr;
    display: grid;
  }

  .launcher-request-filter {
    min-width: 0;
  }

  .launcher-primary-btn,
  .launcher-secondary-btn {
    width: 100%;
  }

  .launcher-changelog-body {
    max-height: none;
  }

  .page-shell {
    width: 96vw;
    margin: 1rem auto;
  }

  .workspace-card,
  .header-card {
    border-radius: 10px;
  }

  .header-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .header-map-editor-btn {
    min-width: 0;
    width: 100%;
  }

  .json-editor {
    min-height: 28dvh;
  }

  .structured-layout {
    grid-template-columns: 1fr;
  }

  .record-list {
    max-height: 26dvh;
  }

  .dialogue-layout {
    grid-template-columns: 1fr;
  }

  .dialogue-node-list {
    max-height: 24dvh;
  }

  .sandbox-row {
    grid-template-columns: auto auto;
  }

  .mini-row {
    grid-template-columns: 1fr;
  }

  .flow-step-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   Map Editor Panels
   ========================================================= */

.map-layout-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.map-rows-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.map-rows-field > label {
  font-size: 13px;
  font-weight: 600;
  color: #c8d9ff;
}

.map-rows-textarea {
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  line-height: 1.4;
  background: #0a1020;
  color: #c8deff;
  border: 1px solid #2e426c;
  border-radius: 8px;
  padding: 10px 12px;
  resize: vertical;
  min-height: 280px;
  white-space: pre;
  overflow: auto;
  width: 100%;
  tab-size: 1;
}

.map-rows-textarea:focus {
  outline: none;
  border-color: #6fc2ff;
}

.map-preview-panel {

.map-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 8, 20, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(2px);
}

.map-modal {
  display: flex;
  flex-direction: column;
  width: min(96vw, 1280px);
  height: min(92vh, 900px);
  background: #0d1528;
  border: 1px solid #3a5080;
  border-radius: 12px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.7);
  overflow: hidden;
}

.map-modal-titlebar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: linear-gradient(90deg, #152240 0%, #0f1c38 100%);
  border-bottom: 1px solid #2d4270;
  flex-shrink: 0;
}

.map-modal-title {
  font-size: 14px;
  color: #dce8ff;
}

.map-modal-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  margin-left: auto;
}

.map-modal-close {
  border: 1px solid #3d5080;
  border-radius: 6px;
  background: #1a2e55;
  color: #d0deff;
  font-size: 18px;
  line-height: 1;
  padding: 2px 8px;
  cursor: pointer;
  margin-left: 8px;
  flex-shrink: 0;
}

.map-modal-close:hover {
  background: #8b0000;
  border-color: #c0392b;
  color: #fff;
}

.map-modal-viewport {
  flex: 1;
  max-height: none !important;
  min-height: 0 !important;
  border-radius: 0 !important;
  border-left: none !important;
  border-right: none !important;
  border-bottom: none !important;
}

.map-preview-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 10px;
  background: #0d1528;
  border: 1px solid #2b3a5c;
  border-radius: 8px;
}

.map-legend-entry {
  display: flex;
  align-items: center;
  gap: 5px;
}

.map-legend-swatch {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

.map-legend-label {
  font-size: 11px;
  color: #a8bde8;
}

.map-preview-viewport {
  overflow: auto;
  max-height: 62vh;
  min-height: 200px;
  border: 1px solid #2e426c;
  border-radius: 8px;
  background: #060a14;
  cursor: crosshair;
  user-select: none;
}

.map-preview-viewport canvas {
  display: block;
}

