/* Minecraft management: bounded controls, readable labels, and durable panels. */
.mc-tab-content > div > .panel { margin-bottom: 20px; }
.mc-tab-content .panel > form,
.mc-tab-content .mc-versions-panel > :not(.panel-heading),
.mc-tab-content .mc-console-panel > :not(.panel-heading),
.mc-tab-content .panel > .mc-file-breadcrumb,
.mc-tab-content .panel > .mc-help,
.mc-tab-content .panel > .notice,
.mc-tab-content .panel > .error-box {
  margin-left: 23px;
  margin-right: 23px;
}
.mc-tab-content .panel > form { margin-bottom: 23px; }
.mc-tab-content .mc-versions-panel > :last-child,
.mc-tab-content .mc-console-panel > :last-child,
.mc-tab-content .panel > .mc-help { margin-bottom: 23px; }
.mc-fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.mc-fieldset:disabled { opacity: .8; }
.mc-property > span,
.mc-software > strong,
.mc-software > span,
.mc-version > span { min-width: 0; overflow-wrap: anywhere; }
.mc-software { min-width: 0; font: inherit; line-height: 1.5; cursor: pointer; }
.mc-software:disabled { cursor: wait; }
.mc-version.button { min-width: 0; width: 100%; height: auto; min-height: 54px; white-space: normal; }
.mc-version > span:first-child { flex: 1; }
.mc-version > svg,
.mc-property > .mc-switch-wrap > input { flex-shrink: 0; }
.mc-version .badge { white-space: normal; line-height: 1.35; }
.mc-properties-grid { margin-top: 0; }
.mc-property { box-sizing: border-box; line-height: 1.5; }
.mc-property-wide { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.mc-switch-wrap input { box-sizing: border-box; min-width: 42px; max-width: 42px; width: 42px; height: 24px; padding: 0; }
.mc-switch-wrap span { min-width: 0; overflow-wrap: anywhere; }
.mc-save-row { flex-wrap: wrap; align-items: flex-start; }
.mc-save-row > p { flex: 1 1 260px; margin: 0; line-height: 1.6; }
.mc-save-row .button,
.mc-toolbar .button { max-width: 100%; white-space: normal; line-height: 1.45; overflow-wrap: anywhere; }
.mc-server-title { min-width: 0; max-width: 100%; }
.mc-server-title > div { min-width: 0; }
.mc-file-name { white-space: normal; line-height: 1.5; }
.mc-file-editor { box-sizing: border-box; max-width: 100%; }
.mc-process-memory { padding: 0 23px 20px; min-width: 0; }
.mc-process-memory .meter { border: 0; padding: 0; background: transparent; border-radius: 0; }
.mc-process-memory .mc-help { margin-top: 10px; line-height: 1.55; overflow-wrap: anywhere; }
.modal-heading { gap: 14px; align-items: flex-start; }
.modal-heading h2 { min-width: 0; overflow-wrap: anywhere; line-height: 1.4; }
.modal-heading > .button { flex-shrink: 0; }
.modal .field > span { overflow-wrap: anywhere; line-height: 1.55; }
.modal .field:has(> input[type="checkbox"]) { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 9px; align-items: start; }
.modal .field:has(> input[type="checkbox"]) > span { grid-column: 2; grid-row: 1; }
.modal .field > input[type="checkbox"] { grid-column: 1; grid-row: 1; width: 17px; height: 17px; margin: 1px 0 0; accent-color: var(--accent); }
.modal-footer { flex-wrap: wrap; align-items: center; }
.modal-footer .button { max-width: 100%; white-space: normal; overflow-wrap: anywhere; line-height: 1.5; }
.modal-footer > .muted { flex: 1 1 160px; overflow-wrap: anywhere; }
@media (max-width: 700px) {
  .mc-tab-content .panel > form,
  .mc-tab-content .mc-versions-panel > :not(.panel-heading),
  .mc-tab-content .mc-console-panel > :not(.panel-heading),
  .mc-tab-content .panel > .mc-file-breadcrumb,
  .mc-tab-content .panel > .mc-help,
  .mc-tab-content .panel > .notice,
  .mc-tab-content .panel > .error-box { margin-left: 16px; margin-right: 16px; }
  .mc-property-wide { display: flex; align-items: stretch; }
  .mc-process-memory { padding: 0 16px 18px; }
  .mc-version-grid { grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); }
  .mc-toolbar > .actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .mc-toolbar .button { min-width: 0; min-height: 40px; }
  .mc-server-title { align-items: flex-start; }
  .mc-server-title > div { flex: 1 1 180px; }
  .mc-file-breadcrumb { flex-wrap: wrap; gap: 8px; }
  .mc-file-breadcrumb code { flex-basis: calc(100% - 52px); }
  .mc-save-row > p { flex: none; }
  .mc-save-row .button { width: 100%; min-height: 40px; }
  .mc-console { max-height: min(520px, 55dvh); min-height: 240px; }
}

/* Keep the term and price on distinct lines, including compact server headers. */
.page-heading:has(.mc-server-title) .vm-price { flex-shrink: 0; min-width: 92px; }
.page-heading:has(.mc-server-title) .vm-price small,
.page-heading:has(.mc-server-title) .vm-price strong { display: block; line-height: 1.5; white-space: nowrap; }
