/* Phase 116: full-width member event editor layout repair */
body.workspace-experience .full-owner-editor,
body.workspace-experience .resilient-event-editor {
  display: block !important;
  width: min(1180px, calc(100% - 48px)) !important;
  max-width: 1180px !important;
  margin: 0 auto 4rem !important;
  grid-template-columns: none !important;
  gap: 0 !important;
  min-width: 0 !important;
  box-sizing: border-box;
}
body.workspace-experience .full-owner-editor > .dashboard-hero,
body.workspace-experience .full-owner-editor > .editor-card,
body.workspace-experience .full-owner-editor > .media-editor {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  box-sizing: border-box;
  grid-column: 1 / -1 !important;
}
body.workspace-experience .full-owner-editor > .dashboard-hero {
  display: block !important;
  margin-bottom: 1.25rem !important;
}
body.workspace-experience .full-owner-editor > .editor-card,
body.workspace-experience .full-owner-editor > .media-editor {
  overflow: visible;
}
body.workspace-experience .full-owner-editor .form-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  align-items: start;
}
body.workspace-experience .full-owner-editor .form-field,
body.workspace-experience .full-owner-editor .form-field-full {
  min-width: 0;
}
body.workspace-experience .full-owner-editor textarea {
  min-height: 230px;
  max-width: 100%;
}
body.workspace-experience .full-owner-editor .map-picker,
body.workspace-experience .full-owner-editor .media-editor > form {
  max-width: 100%;
  box-sizing: border-box;
}
body.workspace-experience .full-owner-editor .event-gallery-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 980px) {
  body.workspace-experience .full-owner-editor { width: min(100% - 32px, 760px) !important; }
  body.workspace-experience .full-owner-editor .event-gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 680px) {
  body.workspace-experience .full-owner-editor {
    width: calc(100% - 24px) !important;
    margin-bottom: 2rem !important;
  }
  body.workspace-experience .full-owner-editor > .dashboard-hero {
    margin-bottom: .9rem !important;
    border-radius: 18px;
  }
  body.workspace-experience .full-owner-editor .editor-card { padding: 1rem; border-radius: 16px; }
  body.workspace-experience .full-owner-editor .form-grid {
    grid-template-columns: 1fr !important;
  }
  body.workspace-experience .full-owner-editor .form-field-full { grid-column: auto !important; }
  body.workspace-experience .full-owner-editor .event-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  body.workspace-experience .full-owner-editor .button-row {
    display: grid;
    grid-template-columns: 1fr;
  }
  body.workspace-experience .full-owner-editor .button-row .button { width: 100%; }
}
@media (max-width: 430px) {
  body.workspace-experience .full-owner-editor { width: calc(100% - 16px) !important; }
  body.workspace-experience .full-owner-editor .editor-card { padding: .85rem; }
  body.workspace-experience .full-owner-editor .event-gallery-grid { grid-template-columns: 1fr; }
}
