.membership-editor { margin-top: 20px; min-width: 0; }
.membership-editor [hidden] { display: none !important; }
.membership-editor > section + section { margin-top: 28px; padding-top: 20px; border-top: 1px solid #dce3df; }
.membership-editor h4 { margin: 0 0 14px; font-size: 1.05rem; }
.membership-editor h5 { margin: 0 0 14px; font-size: 1rem; overflow-wrap: anywhere; }
.membership-notice, .membership-confirm { padding: 12px 14px; background: #f4f5e9; border: 1px solid #d9ddbd; border-radius: 10px; color: #3e492b; }
.membership-plans { display: grid; gap: 16px; margin-top: 16px; }
.membership-plan { padding: 16px; border: 1px solid #dce3df; border-radius: 12px; min-width: 0; }
.membership-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; border: 0; min-width: 0; }
.membership-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.membership-editor input:not([type="checkbox"]), .membership-editor select { width: 100%; box-sizing: border-box; min-width: 0; padding: 10px 12px; border: 1px solid #a8b8af; border-radius: 8px; background: #fff; color: #17231f; font: inherit; }
.membership-editor input[readonly] { background: #f1f4f2; }
.membership-rights { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px; border: 1px solid #dce3df; border-radius: 8px; padding: 10px; min-width: 0; }
.membership-rights label, .membership-check, .membership-song-list label { display: flex; align-items: center; gap: 9px; }
.membership-editor input[type="checkbox"] { width: 18px; height: 18px; flex: 0 0 18px; margin: 0; accent-color: #285b45; }
.membership-search { display: grid; grid-template-columns: auto minmax(100px, 1fr) auto auto minmax(100px, 160px); align-items: center; gap: 10px; }
.membership-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 12px 0; }
.membership-editor button { max-width: 100%; white-space: normal; margin-right: 6px; }
.membership-editor button:disabled { opacity: .55; cursor: not-allowed; }
.membership-editor :focus-visible { outline: 3px solid #478b6b; outline-offset: 3px; }
.membership-song-list { list-style: none; padding: 0; margin: 12px 0; max-height: 480px; overflow-y: auto; }
.membership-song-list li { padding: 11px 6px; border-bottom: 1px solid #e4e9e6; overflow-wrap: anywhere; }
.membership-song-list label { align-items: flex-start; cursor: pointer; }
.membership-editor .form-status { overflow-wrap: anywhere; min-height: 1.4em; }
.membership-editor .membership-benefits { margin: 8px 0 16px; color: #465b52; font-size: .9rem; line-height: 1.7; }
.membership-editor .membership-stages { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style-position: inside; margin: 16px 0 10px; padding: 12px 14px; border-radius: 8px; background: #f1f5f2; color: #465b52; font-size: .84rem; line-height: 1.8; }
.membership-editor .membership-next-step { margin: 10px 0 18px; line-height: 1.7; font-size: .88rem; color: #344f40; }
.membership-editor .membership-technical { grid-column: 1 / -1; min-width: 0; border-top: 1px solid #e4e9e6; padding-top: 8px; }
.membership-editor details > summary { padding: 12px 0; cursor: pointer; line-height: 1.5; }
.membership-editor .membership-technical > .membership-fields { margin: 10px 0; }
.membership-editor .membership-technical p { overflow-wrap: anywhere; line-height: 1.7; font-size: .83rem; }
.membership-editor .membership-platform { margin-top: 18px; padding-top: 16px; }
.membership-editor .membership-platform h6 { margin: 0; font: inherit; font-weight: 650; font-size: .9rem; }
.membership-editor .membership-save { justify-self: start; background: var(--brand, #0f6b4b); border-color: var(--brand, #0f6b4b); color: #fff; }
#workspace .membership-editor .membership-save { background: var(--brand, #0f6b4b); border-color: var(--brand, #0f6b4b); color: #fff; }
.membership-editor .membership-edit-notice { padding: 10px 12px; background: #fff6e5; color: #70551e; border-radius: 8px; font-size: .86rem; line-height: 1.7; }
.membership-editor .membership-plan-editor .membership-plan-form { padding-top: 12px; }
@media (max-width: 680px) {
  .membership-fields, .membership-search { grid-template-columns: minmax(0, 1fr); }
  .membership-plan { padding: 12px; }
  .membership-editor .membership-actions button { flex: 1 1 130px; }
  .membership-rights { flex-direction: column; }
}
