/* Admin manual creation on servers.php; keep legacy move-server dialogs separate. */
#floatingBox:has(> .st-manual-server) {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  right: auto !important;
  bottom: auto !important;
  width: min(760px, calc(100vw - 28px)) !important;
  height: auto !important;
  max-height: calc(100vh - 28px) !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: translate(-50%, -50%) !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  z-index: 10001 !important;
}

.st-ui.st-manual-create-launch { display: inline-flex; vertical-align: middle; margin: 0 8px 10px 0; }
.st-ui.st-manual-server { width: 100%; }
.st-ui.st-manual-server .st-manual-server__panel { padding: 22px; box-shadow: 0 20px 58px #0008; }
.st-ui.st-manual-server .st-manual-server__header { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 18px; border-bottom: 1px solid var(--st-line); padding-bottom: 16px; margin-bottom: 18px; }
.st-ui.st-manual-server .st-manual-server__header > div { min-width: 0; width: auto !important; max-width: none; float: none !important; }
.st-ui.st-manual-server .st-manual-server__header .st-section-summary { max-width: none; }
.st-ui.st-manual-server .st-manual-server__header h2 { margin: 0; }
.st-ui.st-manual-server .st-manual-server__close { grid-column: 2; justify-self: end; width: 34px; min-height: 34px; padding: 0; font-size: 23px; line-height: 1; }
.st-ui.st-manual-server .st-manual-server__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; gap: 14px 18px; }
.st-ui.st-manual-server .st-manual-server__field { display: flex; flex-direction: column; min-width: 0; gap: 6px; }
.st-ui.st-manual-server .st-manual-server__field label { font-size: var(--st-text-sm); font-weight: 600; }
.st-ui.st-manual-server .st-manual-server__field select { display: block; float: none !important; position: static; width: 100%; max-width: 100%; min-width: 0; min-height: var(--st-control-size); margin: 0; padding: 7px 10px; border: 1px solid var(--st-control-line); border-radius: var(--st-radius-sm); background: var(--st-input); color: var(--st-text); box-shadow: none; }
.st-ui.st-manual-server .st-manual-server__field br { display: none; }
.st-ui.st-manual-server .st-manual-server__summary { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 10px; min-width: 0; padding: 10px 14px; border: 1px solid var(--st-line); border-radius: var(--st-radius-sm); background: var(--st-surface-raised); }
.st-ui.st-manual-server .st-manual-server__summary span { color: var(--st-muted); }
.st-ui.st-manual-server .st-manual-server__summary strong { overflow-wrap: anywhere; text-align: right; }
.st-ui.st-manual-server .st-manual-server__full, .st-ui.st-manual-server .st-manual-server__options, .st-ui.st-manual-server .st-manual-server__actions { grid-column: 1 / -1; }
.st-ui.st-manual-server .st-manual-server__hint { color: var(--st-muted); }
.st-ui.st-manual-server .st-manual-server__options { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.st-ui.st-manual-server .st-manual-server__options label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.st-ui.st-manual-server .st-manual-server__options input { accent-color: var(--st-orange); margin: 0; }
.st-ui.st-manual-server .st-manual-server__actions { display: flex; justify-content: flex-end; padding-top: 14px; border-top: 1px solid var(--st-line); }
@media (max-width: 560px) {
  .st-ui.st-manual-server .st-manual-server__panel { padding: 16px; }
  .st-ui.st-manual-server .st-manual-server__grid { grid-template-columns: minmax(0, 1fr); }
  .st-ui.st-manual-server .st-manual-server__summary, .st-ui.st-manual-server .st-manual-server__full, .st-ui.st-manual-server .st-manual-server__options, .st-ui.st-manual-server .st-manual-server__actions { grid-column: 1; }
}
