@font-face {
  font-family: 'NotoSansKRLocal';
  src:
    url('/webfont/notosans/NotoSansKR-Regular.woff2') format('woff2'),
    url('/webfont/notosans/NotoSansKR-Regular.woff') format('woff');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'NotoSansKRLocal';
  src:
    url('/webfont/notosans/NotoSansKR-Medium.woff2') format('woff2'),
    url('/webfont/notosans/NotoSansKR-Medium.woff') format('woff');
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: 'NotoSansKRLocal';
  src:
    url('/webfont/notosans/NotoSansKR-Bold.woff2') format('woff2'),
    url('/webfont/notosans/NotoSansKR-Bold.woff') format('woff');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --admin-bg: #eef2fa;
  --admin-surface: #ffffff;
  --admin-border: #e4e9f3;
  --admin-text: #1f2437;
  --admin-muted: #7b859e;
  --admin-primary: #5f35f5;
  --admin-primary-soft: #efeaff;
  --admin-accent: #12b9d4;
  --admin-danger: #f0447a;
  --admin-success: #0f9f74;
  --admin-shadow: 0 18px 42px rgba(37, 44, 71, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: 'NotoSansKRLocal', 'Malgun Gothic', 'Apple SD Gothic Neo', sans-serif;
  background:
    radial-gradient(circle at top left, rgba(95, 53, 245, 0.08), transparent 24%),
    linear-gradient(180deg, #f8faff 0%, #edf2fa 100%);
  color: var(--admin-text);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.admin-layout {
  width: auto;
  margin-left: 272px;
  padding: 0 20px 36px;
  min-height: 100vh;
}

.admin-main {
  min-width: 0;
  max-width: 1680px;
  margin: 0 auto;
  padding: 0;
}

.admin-app-shell {
  min-height: 100vh;
}

.admin-global-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 40;
  width: 256px;
  display: flex;
  flex-direction: column;
  padding: 22px 14px 16px;
  border-right: 1px solid #e6e8ef;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 6px 0 26px rgba(32, 41, 73, 0.08);
  backdrop-filter: blur(10px);
}

.admin-global-brand {
  padding: 4px 4px 18px;
}

.admin-global-brand strong {
  display: block;
  margin-bottom: 6px;
  color: #111827;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.admin-global-brand span {
  display: block;
  color: var(--admin-primary);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
}

.admin-global-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: visible;
  padding-right: 4px;
  scrollbar-gutter: stable;
}

.admin-global-scroll::-webkit-scrollbar {
  width: 6px;
}

.admin-global-scroll::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(95, 53, 245, 0.18);
}

.admin-global-section {
  margin-top: 18px;
}

.admin-global-section-title {
  margin-bottom: 8px;
  padding: 0 4px;
  color: #9aa2b5;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.admin-global-nav {
  display: grid;
  gap: 6px;
}

.admin-global-item {
  display: grid;
  gap: 6px;
}

.admin-global-link {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #2c3448;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.admin-global-link:hover,
.admin-global-item.is-active > .admin-global-link,
.admin-global-item.is-open > .admin-global-link {
  background: #f3f4f8;
  color: #1f2437;
}

.admin-global-link.is-active {
  background: #f3f4f8;
  color: #1f2437;
}

.admin-global-link.is-placeholder {
  cursor: default;
}

.admin-global-icon {
  width: 16px;
  height: 16px;
  color: #7c869d;
  flex: 0 0 auto;
}

.admin-global-icon svg {
  width: 16px;
  height: 16px;
  display: block;
}

.admin-global-text {
  min-width: 0;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: keep-all;
}

.admin-global-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 18px;
  padding: 0 7px;
  border-radius: 999px;
  background: #ff2f55;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: 0 6px 14px rgba(255, 47, 85, 0.22);
}

.admin-global-arrow {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-right: 1.8px solid #a1a9ba;
  border-bottom: 1.8px solid #a1a9ba;
  transform: rotate(-45deg);
  transition: transform 0.18s ease;
}

.admin-global-item.is-open > .admin-global-link .admin-global-arrow {
  transform: rotate(45deg);
}

.admin-global-children {
  display: none;
  gap: 4px;
  padding: 0 0 4px 28px;
}

.admin-global-item.is-open > .admin-global-children {
  display: grid;
}

.admin-global-child-item {
  position: relative;
}

.admin-global-child-link {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 8px 8px;
  border-radius: 8px;
  color: #3f4657;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  transition: color 0.18s ease, background-color 0.18s ease;
}

.admin-global-child-link:hover,
.admin-global-child-link.is-active {
  background: rgba(95, 53, 245, 0.08);
  color: var(--admin-primary);
}

.admin-global-child-text {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  word-break: keep-all;
}

.admin-global-child-arrow {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-top: 1.6px solid #a1a9ba;
  border-right: 1.6px solid #a1a9ba;
  transform: rotate(45deg);
}

.admin-global-flyout {
  display: none;
  position: fixed;
  top: var(--admin-global-flyout-top, 0);
  left: var(--admin-global-flyout-left, 256px);
  z-index: 90;
  min-width: 214px;
  width: max-content;
  max-width: min(360px, calc(100vw - 292px));
  max-height: calc(100vh - 24px);
  overflow-y: auto;
  padding: 12px;
  border: 1px solid #e4e8f2;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 36px rgba(32, 41, 73, 0.14);
}

.admin-global-flyout::before {
  content: '';
  position: absolute;
  top: 0;
  left: -12px;
  width: 12px;
  height: 100%;
}

.admin-global-child-item.is-flyout-open > .admin-global-flyout {
  display: grid;
  gap: 4px;
}

.admin-global-flyout-link {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: #2f374b;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: keep-all;
  transition: color 0.18s ease, background-color 0.18s ease;
}

.admin-global-flyout-link:hover,
.admin-global-flyout-link.is-active {
  background: #efeaff;
  color: var(--admin-primary);
}

.admin-global-flyout-link.is-disabled {
  cursor: not-allowed;
  color: #adb5c6;
  background: transparent;
}

.admin-global-flyout-link.is-disabled:hover {
  color: #adb5c6;
  background: transparent;
}

.admin-global-footer {
  display: grid;
  gap: 12px;
  padding-top: 14px;
}

.admin-global-manual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #b13cff 0%, #5f35f5 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(95, 53, 245, 0.28);
}

.admin-global-footer-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
}

.admin-global-footer-icon svg {
  width: 16px;
  height: 16px;
}

.admin-global-profile {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0 0;
}

.admin-global-avatar {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffb548 0%, #ff4d73 100%);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.admin-global-profile-name {
  min-width: 0;
  flex: 1;
  color: #222b3e;
  font-size: 14px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-global-profile-logout {
  min-height: 28px;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border: 1px solid #d9dded;
  border-radius: 8px;
  background: #fff;
  color: #4b5563;
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(31, 41, 55, 0.05);
}

.admin-global-profile-logout:hover {
  border-color: #c7b9ff;
  background: #f7f4ff;
  color: var(--admin-primary);
}

.admin-topbar {
  display: grid;
  grid-template-columns: minmax(0, 240px) minmax(320px, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 8px 0 20px;
  min-height: 76px;
}

.admin-topbar-title h1 {
  margin: 0;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.admin-search-shell {
  position: relative;
  max-width: 270px;
  justify-self: center;
  width: 100%;
}

.admin-search-input {
  width: 100%;
  height: 42px;
  border: 1px solid rgba(95, 53, 245, 0.12);
  border-radius: 999px;
  background: #efeaff;
  padding: 0 42px 0 16px;
  outline: none;
  color: var(--admin-text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  font-size: 13px;
  font-weight: 600;
}

.admin-search-shell::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 18px;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  border: 2px solid rgba(95, 53, 245, 0.45);
  border-radius: 50%;
}

.admin-search-shell::before {
  content: '';
  position: absolute;
  top: 54%;
  right: 13px;
  width: 9px;
  height: 2px;
  background: rgba(95, 53, 245, 0.45);
  transform: rotate(45deg);
  transform-origin: right center;
  z-index: 1;
}

.admin-search-results {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 30;
  padding: 10px;
  border: 1px solid var(--admin-border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--admin-shadow);
}

.admin-search-results.is-open {
  display: grid;
  gap: 6px;
}

.admin-search-result {
  display: block;
  padding: 11px 14px;
  border-radius: 14px;
  color: var(--admin-muted);
  font-weight: 600;
}

.admin-search-result:hover {
  background: var(--admin-primary-soft);
  color: var(--admin-primary);
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.admin-toolbar-label {
  color: #2c2f3a;
  font-size: 13px;
  font-weight: 700;
}

.admin-toolbar-link {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 6px;
  border: 1px solid var(--admin-border);
  background: #fff;
  color: #4b556d;
  cursor: pointer;
  font-size: 13px;
  font-family: inherit;
  font-weight: 700;
}

.admin-toolbar-link.is-primary {
  background: var(--admin-primary);
  border-color: var(--admin-primary);
  color: #fff;
}

.admin-toolbar-link.is-accent {
  background: #ffd84d;
  border-color: #ffd84d;
  color: #3a3200;
}

.admin-content,
.admin-stack {
  display: grid;
  gap: 18px;
}

.admin-grid {
  display: grid;
  gap: 18px;
}

.dashboard-grid {
  grid-template-columns: 1fr 1fr;
}

.admin-section-layout,
.member-list-layout,
.settings-layout {
  display: grid;
  gap: 18px;
  align-items: start;
  grid-template-columns: 240px minmax(0, 1fr);
}

.admin-card,
.summary-card {
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid var(--admin-border);
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: 0 8px 20px rgba(37, 44, 71, 0.05);
}

.admin-side-card {
  align-self: start;
  padding: 14px;
}

.admin-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.admin-card-head h2 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.admin-card-head p {
  margin: 0;
  color: var(--admin-muted);
  line-height: 1.5;
  font-size: 13px;
}

.admin-subnav {
  display: grid;
  gap: 6px;
}

.admin-subnav a {
  display: block;
  padding: 12px 14px;
  border-radius: 8px;
  color: #404860;
  font-weight: 700;
  font-size: 14px;
}

.admin-subnav a.is-active,
.admin-subnav a:hover {
  background: #efeaff;
  color: var(--admin-primary);
}

.admin-subnav a.is-danger {
  color: var(--admin-danger);
}

.admin-info-box {
  padding: 18px 20px;
  border-radius: 20px;
  background: linear-gradient(180deg, #eaf9ff 0%, #ecf7ff 100%);
  border: 1px solid #d3edf6;
  line-height: 1.8;
}

.admin-info-box strong {
  display: block;
  margin-bottom: 4px;
}

.admin-flash-stack {
  display: grid;
  gap: 10px;
}

.admin-flash {
  padding: 12px 16px;
  border-radius: 14px;
  font-weight: 700;
}

.admin-flash-success {
  background: #ecfdf3;
  color: #0f8f55;
}

.admin-flash-error {
  background: #fff1f3;
  color: #c82458;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 780px;
}

.admin-table th,
.admin-table td {
  padding: 16px 12px;
  border-bottom: 1px solid #edf1f8;
  text-align: left;
  vertical-align: middle;
  font-size: 14px;
}

.admin-table th {
  color: #8d96ab;
  font-size: 13px;
  font-weight: 700;
}

.admin-table.compact th,
.admin-table.compact td {
  padding-top: 13px;
  padding-bottom: 13px;
}

.admin-table .number-col {
  width: 72px;
}

.admin-table .action-col {
  width: 88px;
  text-align: right;
}

.admin-cell-muted {
  color: var(--admin-muted);
  font-size: 13px;
}

.empty-cell {
  padding: 28px 10px !important;
  text-align: center !important;
  color: var(--admin-muted);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.status-active,
.status-enabled {
  background: rgba(15, 159, 116, 0.12);
  color: var(--admin-success);
}

.status-dormant {
  background: rgba(245, 158, 11, 0.14);
  color: #b86f07;
}

.status-withdrawn,
.status-disabled {
  background: rgba(240, 68, 122, 0.12);
  color: var(--admin-danger);
}

.status-pending_email {
  background: rgba(18, 185, 212, 0.12);
  color: #0d8aa0;
}

.admin-text-link {
  color: var(--admin-primary);
  font-weight: 700;
}

.admin-summary-cards {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.summary-card {
  display: grid;
  gap: 8px;
}

.summary-card span {
  color: var(--admin-muted);
  font-weight: 700;
}

.summary-card strong {
  font-size: 30px;
  font-weight: 800;
}

.chart-card canvas {
  width: 100% !important;
  height: 300px !important;
}

.admin-form-grid,
.admin-filter-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-form-field {
  display: grid;
  gap: 8px;
}

.admin-form-field.full,
.admin-full {
  grid-column: 1 / -1;
}

.admin-form-field span {
  font-weight: 700;
}

.admin-form-field input,
.admin-form-field select,
.admin-form-field textarea,
.admin-input,
.admin-select,
.admin-textarea {
  width: 100%;
  border: 1px solid var(--admin-border);
  border-radius: 14px;
  background: #fff;
  padding: 13px 14px;
  color: var(--admin-text);
  outline: none;
}

.admin-form-field textarea,
.admin-textarea {
  min-height: 120px;
  resize: vertical;
}

.admin-form-field input:focus,
.admin-form-field select:focus,
.admin-form-field textarea:focus,
.admin-input:focus,
.admin-select:focus,
.admin-textarea:focus {
  border-color: rgba(95, 53, 245, 0.45);
  box-shadow: 0 0 0 4px rgba(95, 53, 245, 0.08);
}

.admin-form-field small,
.admin-error-text {
  color: var(--admin-danger);
  font-size: 13px;
}

.admin-helper-text {
  color: var(--admin-muted);
  font-size: 13px;
  line-height: 1.7;
}

.admin-callout {
  padding: 16px 14px;
  border-left: 4px solid #2ec5f0;
  background: #fbfcff;
  color: #404860;
  line-height: 1.8;
  font-size: 13px;
}

.admin-inline-options,
.admin-checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: #45506a;
}

.admin-inline-input {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-inline-input input {
  width: 100px;
}

.admin-inline-options label,
.admin-checkbox-group label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
}

.admin-form-actions,
.admin-filter-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.admin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  font-weight: 800;
  cursor: pointer;
}

.admin-btn-block {
  width: 100%;
}

.admin-btn-primary {
  background: linear-gradient(135deg, var(--admin-primary), #7b58ff);
  color: #fff;
}

.admin-btn-secondary {
  background: #eef2ff;
  color: var(--admin-primary);
}

.admin-btn-danger {
  background: #fff0f4;
  color: var(--admin-danger);
}

.join-settings-card {
  scroll-margin-top: 96px;
  padding: 0;
  overflow: hidden;
}

.join-settings-hero {
  padding: 24px;
  border-bottom: 1px solid var(--admin-border);
  background:
    linear-gradient(135deg, rgba(95, 53, 245, 0.08), rgba(18, 185, 212, 0.08)),
    #ffffff;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 430px);
  align-items: end;
  gap: 22px;
}

.join-settings-kicker {
  width: fit-content;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--admin-primary-soft);
  color: var(--admin-primary);
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 900;
}

.join-settings-copy h2 {
  margin: 12px 0 8px;
  color: #15192a;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.join-settings-copy p {
  max-width: 720px;
  margin: 0;
  color: #68738e;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.75;
}

.join-settings-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.join-settings-summary span {
  min-height: 70px;
  padding: 13px 12px;
  border: 1px solid rgba(95, 53, 245, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  color: #6d7487;
  display: grid;
  align-content: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 800;
}

.join-settings-summary strong {
  color: #1f2437;
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
}

.join-settings-guide {
  padding: 18px 24px;
  border-bottom: 1px solid var(--admin-border);
  background: #fbfcff;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.join-settings-guide div {
  padding: 15px 16px;
  border: 1px solid #e7ecf5;
  border-radius: 14px;
  background: #ffffff;
  display: grid;
  gap: 5px;
}

.join-settings-guide strong {
  color: #1f2437;
  font-size: 14px;
  font-weight: 900;
}

.join-settings-guide span {
  color: #747f98;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.65;
}

.join-policy-grid {
  padding: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.join-policy-editor {
  position: relative;
  min-width: 0;
  padding: 18px;
  border: 1px solid #e2e8f3;
  border-radius: 16px;
  background: #ffffff;
}

.join-policy-editor::before {
  content: "필수";
  position: absolute;
  top: 18px;
  right: 18px;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: #fff1f4;
  color: var(--admin-danger);
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 900;
}

.join-policy-editor--optional {
  grid-column: 1 / -1;
}

.join-policy-editor--optional::before {
  content: "선택";
  background: #eef8fb;
  color: #0d8aa0;
}

.join-policy-editor > span {
  padding-right: 56px;
  color: #1f2437;
  font-size: 16px;
  font-weight: 900;
}

.join-policy-editor small {
  max-width: 720px;
  color: #7b859e;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.65;
}

.join-policy-editor textarea {
  min-height: 250px;
  margin-top: 4px;
  border-radius: 14px;
  background: #fbfcff;
  line-height: 1.75;
}

.join-policy-editor--optional textarea {
  min-height: 190px;
}

.join-policy-editor textarea:focus {
  background: #ffffff;
}

.sns-settings-card {
  scroll-margin-top: 96px;
  padding: 0;
  overflow: hidden;
}

.sns-settings-hero {
  padding: 24px;
  border-bottom: 1px solid var(--admin-border);
  background:
    linear-gradient(135deg, rgba(18, 185, 212, 0.08), rgba(95, 53, 245, 0.07)),
    #ffffff;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 430px);
  align-items: end;
  gap: 22px;
}

.sns-settings-kicker {
  width: fit-content;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eef8fb;
  color: #0d8aa0;
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 900;
}

.sns-settings-hero h2 {
  margin: 12px 0 8px;
  color: #15192a;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.sns-settings-hero p {
  max-width: 720px;
  margin: 0;
  color: #68738e;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.75;
}

.sns-settings-status {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.sns-settings-status span {
  min-height: 70px;
  padding: 13px 12px;
  border: 1px solid rgba(18, 185, 212, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  color: #6d7487;
  display: grid;
  align-content: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 800;
}

.sns-settings-status strong {
  color: #1f2437;
  font-size: 21px;
  font-weight: 900;
  line-height: 1;
}

.sns-settings-guide {
  padding: 18px 24px;
  border-bottom: 1px solid var(--admin-border);
  background: #fbfcff;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.sns-settings-guide div {
  padding: 15px 16px;
  border: 1px solid #e7ecf5;
  border-radius: 14px;
  background: #ffffff;
  display: grid;
  gap: 5px;
}

.sns-settings-guide strong {
  color: #1f2437;
  font-size: 14px;
  font-weight: 900;
}

.sns-settings-guide span {
  color: #747f98;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.65;
}

.sns-provider-grid {
  padding: 24px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.sns-provider-card {
  position: relative;
  padding: 0;
  border-color: #e1e7f2;
  border-radius: 18px;
  background: #ffffff;
  overflow: hidden;
}

.sns-provider-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: #94a3b8;
}

.sns-provider--kakao::before {
  background: #facc15;
}

.sns-provider--naver::before {
  background: #22c55e;
}

.sns-provider--google::before {
  background: #4285f4;
}

.sns-provider-head {
  min-height: 92px;
  padding: 20px;
  border-bottom: 1px solid #edf1f8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.sns-provider-title {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.sns-provider-title > span {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #f3f5fa;
  color: #1f2437;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  font-size: 18px;
  font-weight: 900;
}

.sns-provider--kakao .sns-provider-title > span {
  background: #fff8d7;
  color: #7a5c00;
}

.sns-provider--naver .sns-provider-title > span {
  background: #e8f9ef;
  color: #08773d;
}

.sns-provider--google .sns-provider-title > span {
  background: #edf4ff;
  color: #1d4ed8;
}

.sns-provider-title strong {
  margin: 0;
  color: #1f2437;
  font-size: 17px;
  font-weight: 900;
}

.sns-provider-title em {
  display: block;
  margin-top: 4px;
  color: #7b859e;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.sns-provider-state {
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #f1f4f9;
  color: #7b859e;
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 900;
}

.sns-provider-state.is-on {
  background: rgba(15, 159, 116, 0.12);
  color: var(--admin-success);
}

.sns-provider-state.is-off {
  background: rgba(148, 163, 184, 0.13);
  color: #64748b;
}

.sns-provider-body {
  padding: 18px;
  display: grid;
  gap: 14px;
}

.sns-provider-toggle {
  padding: 14px;
  border: 1px solid #eef2f8;
  border-radius: 14px;
  background: #fbfcff;
}

.sns-provider-body .admin-form-field span {
  color: #414a62;
  font-size: 13px;
}

.sns-provider-body input,
.sns-provider-body textarea {
  border-radius: 12px;
}

.sns-provider-note textarea {
  min-height: 96px;
}

.identity-settings-card {
  scroll-margin-top: 96px;
  padding: 0;
  overflow: hidden;
}

.identity-settings-hero {
  padding: 24px;
  border-bottom: 1px solid var(--admin-border);
  background:
    radial-gradient(circle at top right, rgba(15, 159, 116, 0.14), transparent 34%),
    linear-gradient(135deg, rgba(244, 247, 252, 0.98), rgba(255, 255, 255, 0.96));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  align-items: end;
  gap: 22px;
}

.identity-settings-kicker {
  width: fit-content;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(15, 159, 116, 0.1);
  color: #087864;
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 900;
}

.identity-settings-hero h2 {
  margin: 12px 0 8px;
  color: #15192a;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.identity-settings-hero p {
  max-width: 720px;
  margin: 0;
  color: #68738e;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.75;
}

.identity-settings-status {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.identity-settings-status span {
  min-height: 74px;
  padding: 14px 13px;
  border: 1px solid rgba(15, 159, 116, 0.14);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.9);
  color: #6d7487;
  box-shadow: 0 14px 32px rgba(24, 35, 61, 0.05);
  display: grid;
  align-content: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 800;
}

.identity-settings-status strong {
  color: #14213d;
  font-size: 21px;
  font-weight: 900;
  line-height: 1;
}

.identity-settings-guide {
  padding: 18px 24px;
  border-bottom: 1px solid var(--admin-border);
  background: #fbfcff;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.identity-settings-guide div {
  padding: 15px 16px;
  border: 1px solid #e7ecf5;
  border-radius: 14px;
  background: #ffffff;
  display: grid;
  gap: 5px;
}

.identity-settings-guide strong {
  color: #1f2437;
  font-size: 14px;
  font-weight: 900;
}

.identity-settings-guide span {
  color: #747f98;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.65;
}

.identity-settings-body {
  padding: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 16px;
  align-items: start;
}

.identity-settings-main {
  min-width: 0;
  display: grid;
  gap: 16px;
}

.identity-option-row,
.identity-key-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.identity-option-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid #e2e8f3;
  border-radius: 16px;
  background: #ffffff;
}

.identity-option-card > span {
  color: #1f2437;
  font-size: 15px;
  font-weight: 900;
}

.identity-toggle-options,
.identity-method-options {
  margin-top: 12px;
  gap: 8px;
}

.identity-toggle-options label,
.identity-method-options label {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid #e4eaf4;
  border-radius: 999px;
  background: #fbfcff;
  color: #3d465f;
  font-weight: 900;
}

.identity-key-grid .admin-form-field {
  min-width: 0;
}

.identity-key-grid input,
.identity-key-grid textarea {
  border-radius: 13px;
  background: #ffffff;
}

.identity-notes-field {
  grid-column: 1 / -1;
}

.identity-notes-field textarea {
  min-height: 142px;
  line-height: 1.7;
}

.identity-preview-card {
  position: sticky;
  top: 88px;
  padding: 20px;
  border: 1px solid rgba(15, 159, 116, 0.16);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(236, 253, 245, 0.92), rgba(255, 255, 255, 0.96)),
    #ffffff;
  box-shadow: 0 20px 48px rgba(24, 35, 61, 0.08);
  color: #253049;
}

.identity-preview-card > span {
  width: fit-content;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: #ffffff;
  color: #087864;
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 900;
}

.identity-preview-card strong {
  display: block;
  margin-top: 12px;
  color: #15192a;
  font-size: 18px;
  font-weight: 900;
}

.identity-preview-card ol {
  margin: 14px 0 0;
  padding-left: 18px;
  color: #65708a;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.85;
}

@media (max-width: 1120px) {
  .sns-settings-hero,
  .sns-settings-guide,
  .sns-provider-grid,
  .identity-settings-hero,
  .identity-settings-guide,
  .identity-settings-body,
  .identity-option-row,
  .identity-key-grid,
  .join-settings-hero,
  .join-settings-guide,
  .join-policy-grid {
    grid-template-columns: 1fr;
  }

  .identity-preview-card {
    position: static;
  }

  .join-policy-editor--optional {
    grid-column: auto;
  }
}

@media (max-width: 760px) {
  .sns-settings-hero,
  .sns-settings-guide,
  .sns-provider-grid,
  .identity-settings-hero,
  .identity-settings-guide,
  .identity-settings-body,
  .join-settings-hero,
  .join-settings-guide,
  .join-policy-grid {
    padding: 18px;
  }

  .sns-settings-status,
  .identity-settings-status,
  .join-settings-summary {
    grid-template-columns: 1fr;
  }

  .sns-settings-hero h2,
  .identity-settings-hero h2,
  .join-settings-copy h2 {
    font-size: 23px;
  }

  .identity-option-card,
  .identity-preview-card {
    padding: 16px;
  }

  .join-policy-editor {
    padding: 16px;
  }

  .join-policy-editor::before {
    position: static;
    width: fit-content;
    margin-bottom: 8px;
  }

  .join-policy-editor > span {
    padding-right: 0;
  }
}

.admin-action-wrap {
  position: relative;
  display: inline-flex;
}

.admin-action-toggle {
  width: 36px;
  height: 36px;
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  background: #fff;
  color: #6d7487;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.admin-action-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  min-width: 170px;
  padding: 8px;
  border: 1px solid var(--admin-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--admin-shadow);
}

.admin-action-menu.is-open {
  display: grid;
  gap: 4px;
}

.admin-action-menu.is-dropup {
  top: auto;
  bottom: calc(100% + 8px);
}

.admin-action-item {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #3e4760;
  text-align: left;
  cursor: pointer;
}

.admin-action-item:hover {
  background: var(--admin-primary-soft);
  color: var(--admin-primary);
}

.admin-action-item.is-danger:hover {
  background: #fff0f4;
  color: var(--admin-danger);
}

.admin-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.admin-pagination a,
.admin-pagination span {
  min-width: 40px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--admin-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  background: #fff;
  font-weight: 700;
}

.admin-pagination .is-current {
  background: #5f5f66;
  border-color: #5f5f66;
  color: #fff;
}

.admin-meta-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-meta-card {
  padding: 16px 18px;
  border: 1px solid #eceffa;
  border-radius: 18px;
  background: #fff;
}

.admin-meta-card strong {
  display: block;
  margin-top: 10px;
  font-size: 24px;
}

.permission-grid {
  display: grid;
  grid-template-columns: 1fr 100px 1fr;
  gap: 14px;
  align-items: stretch;
}

.permission-list-box {
  display: grid;
  gap: 8px;
}

.permission-list-title {
  padding: 10px 14px;
  border-radius: 12px 12px 0 0;
  font-weight: 800;
  color: #fff;
}

.permission-list-title.is-allowed {
  background: #2e90fa;
}

.permission-list-title.is-blocked {
  background: #ff7a59;
}

.permission-list {
  width: 100%;
  min-height: 320px;
  border: 1px solid var(--admin-border);
  border-radius: 0 0 12px 12px;
  padding: 10px;
  background: #fff;
}

.permission-controls {
  display: grid;
  align-content: center;
  gap: 10px;
}

.admin-scroll-table {
  overflow-x: auto;
}

.admin-scroll-table table {
  min-width: 1350px;
}

.admin-field-flag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.admin-kv-list {
  display: grid;
  gap: 10px;
}

.admin-kv-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #edf1f8;
}

.admin-kv-row strong {
  font-size: 14px;
}

.admin-link-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.admin-link-card {
  padding: 16px;
  border: 1px solid #eceffa;
  border-radius: 18px;
  background: #fff;
}

.admin-link-card strong {
  display: block;
  margin-bottom: 6px;
}

.admin-link-card p {
  margin: 0;
  color: var(--admin-muted);
  line-height: 1.6;
}

.admin-login-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(20, 28, 44, 0.96), rgba(31, 41, 55, 0.96)),
    #111827;
}

.admin-login-shell {
  width: min(1120px, 100%);
}

.admin-login-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  min-height: 610px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.admin-login-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 44px;
  background: #172033;
  color: #fff;
}

.admin-login-copy h1 {
  margin: 0;
  color: #ffffff;
  font-size: 42px;
  line-height: 1.18;
}

.admin-login-copy p {
  max-width: 520px;
  margin: 18px 0 0;
  color: #d5dbe7;
  font-size: 16px;
  line-height: 1.75;
}

.admin-login-label {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  margin-bottom: 22px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: #8fe3d0;
  font-size: 12px;
  font-weight: 900;
}

.admin-login-feature-list {
  display: grid;
  gap: 10px;
  margin-top: 44px;
}

.admin-login-feature {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.admin-login-feature strong {
  color: #ffffff;
  font-size: 15px;
  line-height: 1.35;
}

.admin-login-feature span {
  color: #c5ccd8;
  font-size: 13px;
  line-height: 1.55;
}

.admin-login-form-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 38px;
  background: #ffffff;
}

.admin-login-form-head {
  margin-bottom: 24px;
}

.admin-login-form-head span {
  display: block;
  margin-bottom: 8px;
  color: #0f8b78;
  font-size: 12px;
  font-weight: 900;
}

.admin-login-form-head h2 {
  margin: 0;
  color: #111827;
  font-size: 28px;
  line-height: 1.25;
}

.admin-login-form-head p {
  margin: 10px 0 0;
  color: #667085;
  font-size: 14px;
  line-height: 1.65;
}

.admin-login-form {
  display: grid;
  gap: 15px;
  background: #fff;
}

.admin-login-field {
  gap: 9px;
}

.admin-login-field span {
  color: #1f2937;
  font-size: 14px;
  font-weight: 800;
}

.admin-login-field input {
  min-height: 50px;
  border-radius: 8px;
  border-color: #d7dce4;
  padding: 0 15px;
  font-size: 15px;
}

.admin-login-field input:focus {
  border-color: #0f8b78;
  box-shadow: 0 0 0 3px rgba(15, 139, 120, 0.11);
}

.admin-login-submit {
  width: 100%;
  min-height: 52px;
  margin-top: 2px;
  border: 0;
  border-radius: 8px;
  background: #111827;
  color: #ffffff;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  transition: background-color 0.16s ease, transform 0.16s ease;
}

.admin-login-submit:hover {
  background: #0f8b78;
  transform: translateY(-1px);
}

.admin-login-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}

.admin-login-actions a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid #e1e6ee;
  border-radius: 8px;
  background: #fbfcfd;
  color: #344054;
  font-size: 14px;
  font-weight: 800;
}

.admin-login-actions a:hover {
  border-color: #0f8b78;
  color: #0f8b78;
}

.admin-login-security-note {
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid #edf0f4;
  color: #747b86;
  font-size: 13px;
  line-height: 1.6;
}

@media (max-width: 1280px) {
  .dashboard-grid,
  .admin-summary-cards,
  .admin-link-card-grid,
  .admin-meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1080px) {
  .admin-topbar,
  .admin-section-layout,
  .member-list-layout,
  .settings-layout,
  .admin-login-card,
  .dashboard-grid,
  .permission-grid {
    grid-template-columns: 1fr;
  }

  .permission-controls {
    grid-auto-flow: column;
    justify-content: center;
  }

  .admin-global-sidebar {
    position: static;
    width: auto;
    margin: 12px;
    border-radius: 22px;
    border: 1px solid var(--admin-border);
    box-shadow: var(--admin-shadow);
  }

  .admin-layout {
    margin-left: 0;
    padding: 0 12px 28px;
  }

  .admin-global-flyout {
    position: static;
    margin-top: 6px;
    min-width: 0;
    width: auto;
    max-width: none;
    box-shadow: none;
  }

  .admin-login-card {
    min-height: 0;
  }
}

@media (max-width: 860px) {
  .admin-layout {
    width: min(100%, calc(100% - 20px));
    padding-top: 12px;
  }

  .admin-main {
    padding-top: 0;
  }

  .admin-form-grid,
  .admin-filter-grid,
  .admin-summary-cards,
  .admin-link-card-grid,
  .admin-meta-grid {
    grid-template-columns: 1fr;
  }

  .admin-kv-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

@media (max-width: 640px) {
  .admin-card,
  .summary-card {
    padding: 18px;
    border-radius: 20px;
  }

  .admin-login-body {
    padding: 16px;
  }

  .admin-login-card {
    border-radius: 8px;
  }

  .admin-login-copy,
  .admin-login-form-panel {
    padding: 24px;
  }

  .admin-login-copy h1 {
    font-size: 32px;
  }

  .admin-login-actions {
    grid-template-columns: 1fr;
  }

  .admin-toolbar,
  .admin-filter-actions,
  .admin-form-actions {
    justify-content: stretch;
    flex-direction: column;
  }

  .admin-toolbar-link,
  .admin-btn {
    width: 100%;
  }
}

.message-center {
  gap: 18px;
}

.message-panel,
.message-conversation {
  border: 1px solid #e3e7ef;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(37, 44, 71, 0.05);
}

.message-panel {
  overflow: hidden;
}

.message-panel-title {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 22px 18px;
  border-bottom: 1px solid #edf0f5;
  color: #151923;
  font-size: 22px;
  font-weight: 900;
}

.message-panel-icon {
  width: 28px;
  height: 21px;
  border: 3px solid #ff3047;
  border-radius: 3px;
  position: relative;
}

.message-panel-icon::before,
.message-panel-icon::after {
  content: '';
  position: absolute;
  top: 3px;
  width: 14px;
  height: 3px;
  background: #ff3047;
}

.message-panel-icon::before {
  left: 1px;
  transform: rotate(32deg);
  transform-origin: left center;
}

.message-panel-icon::after {
  right: 1px;
  transform: rotate(-32deg);
  transform-origin: right center;
}

.message-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid #e8ebf1;
  background: #f7f7f8;
}

.message-tabs a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 54px;
  border-right: 1px solid #e8ebf1;
  color: #606779;
  font-weight: 800;
}

.message-tabs a:last-child {
  border-right: 0;
}

.message-tabs a.is-active {
  background: #fff;
  color: #161b27;
}

.message-tabs em {
  font-style: normal;
  color: #ff3047;
  font-size: 13px;
}

.message-search-bar {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) 116px 128px;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid #eef1f5;
}

.message-search-bar select,
.message-search-bar input,
.message-compose-field input,
.message-compose-field textarea,
.message-reply-form textarea {
  width: 100%;
  border: 1px solid #dfe4ec;
  border-radius: 6px;
  background: #fff;
  color: #172033;
  outline: none;
}

.message-search-bar select,
.message-search-bar input {
  min-height: 48px;
  padding: 0 14px;
}

.message-search-bar select:focus,
.message-search-bar input:focus,
.message-compose-field input:focus,
.message-compose-field textarea:focus,
.message-reply-form textarea:focus {
  border-color: #ff7b8b;
  box-shadow: 0 0 0 3px rgba(255, 48, 71, 0.09);
}

.message-search-button,
.message-compose-link,
.message-primary-button,
.message-secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 0;
  border-radius: 6px;
  padding: 0 18px;
  font-weight: 900;
  cursor: pointer;
}

.message-search-button,
.message-compose-link,
.message-primary-button {
  background: #ff3047;
  color: #fff;
}

.message-secondary-button {
  border: 1px solid #d9dee7;
  background: #fff;
  color: #172033;
}

.message-list-actions {
  display: flex;
  gap: 6px;
  padding: 12px 18px;
}

.message-list-actions .message-secondary-button:first-child {
  border-color: #aebbd0;
  background: #aebbd0;
  color: #fff;
}

.message-table-wrap {
  overflow-x: auto;
}

.message-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
}

.message-table th,
.message-table td {
  padding: 17px 18px;
  border-bottom: 1px solid #edf0f4;
  font-size: 15px;
  vertical-align: middle;
}

.message-table th {
  color: #111827;
  font-weight: 900;
  text-align: left;
}

.message-table tr.is-selected {
  background: #fff9fa;
}

.message-table tr.is-unread td {
  font-weight: 900;
}

.message-check-col {
  width: 48px;
}

.message-check-col input {
  width: 22px;
  height: 22px;
  border: 1px solid #dfe4ec;
  border-radius: 5px;
  accent-color: #ff3047;
}

.message-delete-col {
  width: 54px;
  text-align: right;
}

.message-row-delete {
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: #8e94a1;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

.message-row-delete:hover {
  color: #ff3047;
}

.message-party,
.message-snippet {
  color: #172033;
  font-weight: 900;
}

.message-party span {
  color: #8b93a4;
  font-weight: 800;
}

.message-party mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  margin-left: 5px;
  border-radius: 999px;
  background: #ff3047;
  color: #fff;
  font-size: 12px;
}

.message-admin-name {
  color: #ff3047;
}

.message-date {
  color: #7c8797;
  white-space: nowrap;
}

.message-empty {
  height: 160px;
  color: #8b93a4;
  text-align: center;
}

.message-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 18px;
}

.message-pagination a,
.message-pagination span {
  min-width: 32px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: #172033;
  font-weight: 900;
}

.message-pagination .is-current {
  background: #172033;
  color: #fff;
}

.message-compose-form {
  display: grid;
  gap: 24px;
  padding: 22px 18px 28px;
}

.message-compose-field {
  display: grid;
  gap: 10px;
}

.message-compose-field span {
  color: #172033;
  font-size: 18px;
  font-weight: 900;
}

.message-compose-field input {
  min-height: 48px;
  padding: 0 14px;
}

.message-compose-field textarea,
.message-reply-form textarea {
  min-height: 260px;
  padding: 14px;
  resize: vertical;
}

.message-compose-field textarea.is-recipient-list {
  min-height: 120px;
}

.message-compose-field small {
  color: #9098a8;
  line-height: 1.6;
}

.message-compose-field .message-compose-prefill {
  color: #ff3047;
  font-weight: 700;
}

.message-picker {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid #edf1f6;
  border-radius: 10px;
  background: #fbfcfe;
}

.message-picker-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.message-picker-head strong {
  display: block;
  color: #172033;
  font-size: 17px;
  font-weight: 900;
}

.message-picker-head p {
  margin: 6px 0 0;
  color: #6f788a;
  line-height: 1.6;
}

.message-picker-meta {
  display: grid;
  gap: 4px;
  text-align: right;
  color: #7d8798;
  font-size: 12px;
  font-weight: 700;
}

.message-picker-toolbar {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) 124px 142px;
  gap: 8px;
}

.message-picker-table-wrap {
  overflow-x: auto;
}

.message-picker-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid #e7ebf2;
  border-radius: 8px;
  overflow: hidden;
}

.message-picker-table th,
.message-picker-table td {
  padding: 13px 14px;
  border-bottom: 1px solid #edf1f5;
  font-size: 14px;
}

.message-picker-table th {
  background: #f7f9fc;
  color: #172033;
  font-weight: 900;
  text-align: left;
}

.message-picker-table tr:last-child td {
  border-bottom: 0;
}

.member-approval-layout {
  align-items: flex-start;
}

.member-approval-main {
  gap: 18px;
}

.member-approval-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.member-approval-stat {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 8px;
}

.member-approval-stat span {
  color: #667085;
  font-size: 13px;
  font-weight: 700;
}

.member-approval-stat strong {
  color: #111827;
  font-size: 28px;
  line-height: 1;
}

.member-approval-stat.is-pending {
  border-color: #fecaca;
  background: #fff7f7;
}

.member-approval-panel {
  border-radius: 8px;
}

.member-approval-policy-table td strong,
.member-approval-member-table td strong {
  display: block;
  color: #111827;
  font-size: 13px;
}

.member-approval-policy-table td small,
.member-approval-member-table td small {
  display: block;
  margin-top: 4px;
  color: #667085;
  font-size: 12px;
}

.member-approval-check-col {
  width: 86px;
  text-align: center;
}

.member-approval-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.member-approval-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.member-approval-switch span {
  position: relative;
  width: 42px;
  height: 22px;
  border-radius: 999px;
  background: #d0d5dd;
  transition: background .18s ease;
}

.member-approval-switch span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .18);
  transition: transform .18s ease;
}

.member-approval-switch input:checked + span {
  background: #2563eb;
}

.member-approval-switch input:checked + span::after {
  transform: translateX(20px);
}

.member-approval-mini-badge,
.member-approval-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.member-approval-mini-badge.is-open,
.member-approval-status.is-approved {
  background: #ecfdf3;
  color: #027a48;
}

.member-approval-mini-badge.is-closed,
.member-approval-status.is-muted {
  background: #f2f4f7;
  color: #667085;
}

.member-approval-status.is-pending {
  background: #fff4e5;
  color: #b54708;
}

.member-approval-filter {
  display: grid;
  grid-template-columns: 150px minmax(170px, 230px) 120px minmax(220px, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid #e4e7ec;
  border-radius: 8px;
  background: #f9fafb;
}

.member-approval-filter .admin-select,
.member-approval-filter .admin-input {
  width: 100%;
  min-width: 0;
  height: 42px;
  border-radius: 8px;
  padding: 0 12px;
  font-size: 13px;
}

.member-approval-filter .admin-btn {
  min-width: 72px;
  height: 42px;
  padding: 0 14px;
  white-space: nowrap;
}

.member-approval-bulk-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.member-approval-bulk-bar {
  padding: 12px;
  border: 1px solid #e4e7ec;
  border-radius: 8px;
  background: #f9fafb;
}

.member-approval-bulk-bar label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #344054;
  font-size: 13px;
  font-weight: 700;
}

.member-approval-bulk-bar .admin-input {
  flex: 1 1 220px;
  min-width: 180px;
}

.member-approval-bulk-bar span {
  margin-left: auto;
  color: #667085;
  font-size: 12px;
  font-weight: 800;
}

.member-approval-row-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.member-approval-pagination {
  margin-top: 14px;
}

@media (max-width: 960px) {
  .member-approval-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .member-approval-filter {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .member-approval-summary {
    grid-template-columns: 1fr;
  }

  .member-approval-filter {
    grid-template-columns: 1fr;
  }

  .member-approval-filter .admin-input,
  .member-approval-filter .admin-select,
  .member-approval-filter .admin-btn,
  .member-approval-bulk-bar .admin-input,
  .member-approval-bulk-bar .admin-btn {
    width: 100%;
    max-width: none;
  }

  .member-approval-bulk-bar span {
    width: 100%;
    margin-left: 0;
  }
}

.message-compose-field b {
  color: #ff3047;
  font-size: 13px;
}

.message-compose-actions {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.message-conversation {
  padding: 18px;
}

.message-conversation-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.message-conversation-head strong {
  font-size: 18px;
}

.message-conversation-head span {
  color: #7c8797;
  font-weight: 800;
}

.message-bubbles {
  display: grid;
  gap: 12px;
  max-height: 520px;
  overflow-y: auto;
  padding-right: 4px;
}

.message-bubble {
  width: min(720px, 86%);
  padding: 14px 16px;
  border: 1px solid #e6ebf2;
  border-radius: 8px;
  background: #f8fafc;
}

.message-bubble.is-mine {
  justify-self: end;
  border-color: #ffd4da;
  background: #fff5f6;
}

.message-bubble div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #172033;
  font-weight: 900;
}

.message-bubble time {
  color: #8b93a4;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.message-bubble p {
  margin: 10px 0 0;
  color: #303847;
  line-height: 1.7;
}

.message-reply-form {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.message-reply-form textarea {
  min-height: 120px;
}

.message-reply-form button {
  justify-self: end;
}

@media (max-width: 1080px) {
  .message-search-bar {
    grid-template-columns: 1fr;
  }

  .message-picker-head {
    grid-template-columns: 1fr;
    display: grid;
  }

  .message-picker-meta {
    text-align: left;
  }

  .message-picker-toolbar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .message-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .message-compose-actions,
  .message-list-actions {
    flex-direction: column;
  }

  .message-primary-button,
  .message-secondary-button,
  .message-compose-link,
  .message-search-button {
    width: 100%;
  }

  .message-bubble {
    width: 100%;
  }
}
