.production-direct-launch-dialog-overlay {
  position: fixed;
  inset: 0;
  z-index: 2500;
  display: grid;
  place-items: center;
  padding: 18px;
  background: var(--overlay-bg);
  backdrop-filter: blur(8px);
}

.production-direct-launch-dialog {
  width: min(760px, 100%);
  max-height: min(820px, calc(100vh - 36px));
  display: grid;
  grid-template-rows: auto auto auto minmax(80px, 1fr) auto auto;
  gap: 12px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid var(--stroke-strong);
  border-radius: var(--radius-lg);
  color: var(--text);
  background: var(--surface-card-strong);
  box-shadow: var(--shadow);
}

.production-direct-launch-dialog header,
.production-direct-launch-dialog footer,
.production-direct-launch-dialog-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.production-direct-launch-dialog header span {
  color: var(--accent);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.production-direct-launch-dialog h3 { margin: 2px 0 0; font-size: 22px; }
.production-direct-launch-dialog-close { min-width: 40px; padding: 0; font-size: 24px; }

.production-direct-launch-dialog-progress,
.production-direct-launch-dialog-error {
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
}

.production-direct-launch-dialog-note { color: var(--muted); font-size: 13px; font-weight: 700; }
.production-direct-launch-dialog-progress { color: var(--status-ok-text); background: var(--status-ok-bg); }
.production-direct-launch-dialog-error { color: var(--status-stop-text); background: var(--status-stop-bg); }

.production-direct-launch-party-list { display: grid; gap: 8px; overflow-y: auto; }
.production-direct-launch-party {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  cursor: default;
}
.production-direct-launch-party.is-selected { border-color: var(--accent); background: var(--accent-soft); }
.production-direct-launch-party.is-disabled:not(.can-rename) { opacity: .72; }
.production-direct-launch-party-choice { position: relative; display: grid; place-items: center; gap: 4px; min-width: 68px; cursor: pointer; }
.production-direct-launch-party.is-disabled .production-direct-launch-party-choice { cursor: default; opacity: .72; }
.production-direct-launch-party-choice input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.production-direct-launch-choice-box {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 2px solid var(--stroke-strong);
  border-radius: 8px;
  color: var(--primary-button-text);
  background: var(--field-bg);
}
.production-direct-launch-party-choice input:checked + .production-direct-launch-choice-box {
  border-color: var(--accent);
  background: var(--accent);
}
.production-direct-launch-party-choice input:checked + .production-direct-launch-choice-box::after { content: '✓'; font-size: 20px; font-weight: 900; }
.production-direct-launch-party-choice input:focus-visible + .production-direct-launch-choice-box { outline: 3px solid var(--accent-2); outline-offset: 2px; }
.production-direct-launch-party-choice small { color: var(--muted); font-size: 10px; font-weight: 850; }
.production-direct-launch-party.is-selected .production-direct-launch-party-choice small { color: var(--accent); }
.production-direct-launch-party-main { display: grid; min-width: 0; gap: 2px; }
.production-direct-launch-party-main strong { overflow-wrap: anywhere; font-size: 15px; }
.production-direct-launch-party-main > span { color: var(--muted); font-size: 12px; }
.production-direct-launch-party-name { display: grid; gap: 4px; margin-top: 6px; }
.production-direct-launch-party-name > span { color: var(--muted); font-size: 11px; font-weight: 750; }
.production-direct-launch-party-name input {
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--stroke-strong);
  border-radius: 10px;
  color: var(--text);
  background: var(--field-bg);
  font: inherit;
  font-weight: 750;
}
.production-direct-launch-party-name input:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 1px; }
.production-direct-launch-party-name input:disabled { opacity: .62; }
.production-direct-launch-party-main small { font-size: 11px; font-weight: 750; }
.production-direct-launch-party-main .is-ready { color: var(--status-ok-text); }
.production-direct-launch-party-main .is-warning { color: var(--status-warn-text); }
.production-direct-launch-party-main .is-error { color: var(--status-stop-text); }
.production-direct-launch-party-stats { display: grid; grid-template-columns: repeat(4, auto); column-gap: 10px; text-align: center; }
.production-direct-launch-party-stats b { color: var(--text); font-size: 14px; }
.production-direct-launch-party-stats small { grid-row: 2; color: var(--muted); font-size: 10px; }
.production-direct-launch-dialog-total { flex-wrap: wrap; color: var(--muted); font-size: 12px; }
.production-direct-launch-dialog footer span { flex: 1; }

@media (max-width: 600px) {
  .production-direct-launch-dialog-overlay { padding: 0; place-items: stretch; }
  .production-direct-launch-dialog { width: 100%; max-height: 100vh; min-height: 100vh; border: 0; border-radius: 0; padding: 14px; }
  .production-direct-launch-party { grid-template-columns: 64px minmax(0, 1fr); }
  .production-direct-launch-party-stats { grid-column: 2; justify-content: start; }
  .production-direct-launch-dialog footer { display: grid; grid-template-columns: 1fr 1fr; }
  .production-direct-launch-dialog footer span { display: none; }
  .production-direct-launch-dialog footer [data-production-direct-launch-confirm] { grid-column: 1 / -1; }
}
