#memberAccessPreview {
  position: fixed;
  width: min(740px, calc(100% - 28px));
  max-height: calc(100% - 28px);
  max-height: calc(100dvh - 28px);
  margin: auto;
  padding: 0;
  background: var(--bg, #13191b);
  color: var(--text, #f4f7f8);
  border: 1px solid var(--line);
  border-radius: 16px;
  color-scheme: dark;
  overflow: auto;
  overscroll-behavior: contain;
}
#memberAccessPreview::backdrop { background: #090c0de0; }
.preview-header, .preview-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
}
.preview-header {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #26231e;
  border-bottom: 1px solid #796442;
}
.preview-header small { color: #ffdaa0; font-size: 12px; }
.preview-header h2 { font-size: 21px; margin: 4px 0 0; overflow-wrap: anywhere; }
.preview-header .btn { flex: none; }
.preview-nav { justify-content: flex-start; padding-bottom: 0; }
.preview-nav [aria-pressed="true"] { background: #482723; border-color: var(--red); }
.preview-content { padding: 16px 18px 20px; display: grid; gap: 12px; }
.preview-card { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.preview-card h3 { margin: 0 0 12px; }
.preview-card h3:focus { outline: none; }
.preview-menu { display: grid; gap: 8px; }
.preview-menu .btn { display: flex; align-items: center; justify-content: space-between; text-align: left; }
#memberAccessPreview .btn { min-height: 44px; }
.preview-list { list-style: none; padding: 0; margin: 0; }
.preview-list li { padding: 9px 0; border-top: 1px solid var(--line); }
.preview-list li:first-child { border-top: 0; }
.preview-list small { display: block; margin-top: 3px; color: var(--muted); }
.preview-card input, .preview-card select {
  padding: 9px 10px;
  margin: 6px 0 12px;
  display: block;
  max-width: 100%;
  min-height: 44px;
  font: inherit;
  font-size: 16px;
  border-radius: 8px;
  border: 1px solid var(--line);
  color: inherit;
  background: var(--panel);
}
.member-admin-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.access-card .member-admin-actions { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,135px),1fr)); }
@media (max-width: 480px) {
  .admin-member:has(.member-admin-actions) { align-items: flex-start; flex-direction: column; }
  .member-admin-actions { justify-content: flex-start; }
  .preview-header { padding: 12px; gap: 7px; }
  .preview-header h2 { font-size: 18px; }
  .preview-header .btn { padding-inline: 8px; font-size: 12px; }
  .preview-content, .preview-nav { padding-inline: 12px; }
}
