.members-dialog { width: min(1040px, calc(100% - 28px)); max-height: calc(100dvh - 32px); margin: auto; padding: 28px; border: 1px solid #17628a; border-radius: 22px; background: #041d34; color: #f4faff; box-shadow: 0 20px 90px #0009; }
.members-dialog::backdrop { background: #00101fcc; backdrop-filter: blur(5px); }
.members-dialog [hidden] { display: none !important; }
.members-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.members-heading h2 { color: #fff; font-size: clamp(25px, 4vw, 36px); margin: 0 0 12px; }
.members-eyebrow { color: #05c6ee; font-size: 12px; font-weight: 700; letter-spacing: 2px; margin-bottom: 7px; }
.members-description, .members-key-field p, .member-editor small { color: #b4cbdc; font-size: 14px; }
.members-icon-button { border: 0; background: transparent; color: #d7eafb; font-size: 32px; line-height: 1; padding: 5px 8px; }
.members-toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin: 20px 0 16px; }
.members-toolbar label:first-child { flex: 1 1 240px; }
.members-dialog label { display: grid; gap: 7px; font-size: 13px; font-weight: 600; color: #e4f4ff; }
.members-dialog input, .members-dialog select { width: 100%; min-height: 43px; padding: 10px 12px; border: 1px solid #326183; border-radius: 9px; background: #0c2b44; color: #fff; font-size: 14px; }
.members-dialog input::placeholder { color: #a0b8c9; }
.members-dialog :focus-visible { outline: 2px solid #00c7f0; outline-offset: 3px; }
.members-dialog button { cursor: pointer; }
.members-dialog button:disabled { cursor: wait; opacity: .6; }
.members-primary, .members-secondary, .members-danger { min-height: 43px; padding: 10px 16px; border-radius: 9px; font-size: 14px; font-weight: 600; }
.members-primary { border: 1px solid #ff851b; background: #ff7a12; color: #fff; }
.members-secondary { border: 1px solid #387a9e; background: #0b304d; color: #e8f9ff; }
.members-danger { border: 1px solid #e98691; background: #522537; color: #ffe6e8; }
#membersMessage:not(:empty) { padding: 12px 14px; margin: 12px 0; border-radius: 8px; background: #0a3b51; color: #d9faff; font-size: 14px; }
#membersMessage[data-error=true] { background: #542b38; color: #ffe1e4; }
.members-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.member-card { min-width: 0; padding: 22px; background: linear-gradient(130deg, #0b304c, #061f37); border: 1px solid #285573; border-radius: 14px; overflow-wrap: anywhere; }
.member-card h3 { font-size: 21px; color: #fff; margin: 0 0 5px; }
.member-level { font-size: 13px; color: #00c8ed; margin: 0 0 18px; }
.member-card dl { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 8px 12px; font-size: 14px; }
.member-card dt { font-weight: 500; color: #a7c4d7; }
.member-card dd { margin: 0; color: #edf8ff; }
.member-editor { border-top: 1px solid #2a526c; margin-top: 25px; padding-top: 24px; }
.member-editor h3 { color: #fff; font-size: 22px; margin-bottom: 20px; }
.member-editor-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.members-key-field { padding: 16px; background: #09273e; border: 1px solid #285573; border-radius: 10px; margin: 20px 0; }
.members-key-field p { margin: 10px 0 0; }
.members-editor-actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 600px) { .members-dialog { padding: 20px 16px; } .members-grid, .member-editor-grid { grid-template-columns: 1fr; } .members-toolbar > button { flex: 1 1 auto; } .member-card { padding: 18px; } .members-toolbar > label { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .members-dialog { scroll-behavior: auto; } }

.members-heading { position: sticky; top: -28px; z-index: 2; background: #041d34; padding: 8px 0; }
@media (max-width: 600px) { .members-heading { top: -20px; } }
