:root {
  --bg: #06111f;
  --bg-deep: #040b14;
  --panel: #0c1b2b;
  --panel-2: #102338;
  --panel-3: #132a40;
  --border: #213a52;
  --text: #f8fbff;
  --muted: #aebbc9;
  --cyan: #55d9ef;
  --saffron: #f5a000;
  --green: #18c96e;
  --red: #ff665d;
  --shadow: 0 22px 55px rgba(0, 0, 0, .28);
}
* { box-sizing: border-box; }
[hidden], .is-hidden { display: none !important; }
html, body { min-height: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg-deep);
  overflow-x: hidden;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.auth-view {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  background: radial-gradient(circle at 18% 20%, rgba(85,217,239,.12), transparent 28%), radial-gradient(circle at 82% 14%, rgba(245,160,0,.11), transparent 26%), linear-gradient(180deg, #040b14, #071321);
}
.login-card {
  width: min(460px, 100%);
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(12, 27, 43, .96);
  box-shadow: var(--shadow);
}
.brand-row, .sidebar-head { display: flex; align-items: center; gap: 14px; }
.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: linear-gradient(135deg, #ffbc3e, var(--saffron));
  color: #101010;
  font-weight: 900;
}
.login-card h1, .login-card p { margin: 0; }
.login-card h1 { font-size: 28px; letter-spacing: 0; }
.login-card p { color: var(--muted); }
.login-form { display: grid; gap: 10px; margin-top: 28px; }
.login-form label, .field label { color: #d6e2ec; font-size: 12px; font-weight: 800; }
.login-form input, .toolbar input, .toolbar select, .field textarea, .field input {
  width: 100%;
  min-height: 46px;
  border: 1px solid #29435a;
  border-radius: 12px;
  background: #081522;
  color: #fff;
  padding: 11px 13px;
  outline: none;
}
.login-form input:focus, .toolbar input:focus, .toolbar select:focus, .field textarea:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(85,217,239,.1); }
.primary-button, .secondary-button, .danger-button, .soft-button {
  min-height: 44px;
  border-radius: 12px;
  padding: 0 16px;
  font-weight: 800;
  border: 1px solid transparent;
}
.primary-button { background: linear-gradient(135deg, #ffbc3e, var(--saffron)); color: #101010; }
.secondary-button, .soft-button { color: #e9fbff; border-color: rgba(85,217,239,.3); background: rgba(85,217,239,.08); }
.danger-button { color: #fff; background: rgba(255,102,93,.16); border-color: rgba(255,102,93,.42); }
.form-message { min-height: 22px; color: #ffb0a6; font-size: 14px; }
.denied-panel { margin-top: 24px; padding: 18px; border: 1px solid rgba(255,102,93,.35); border-radius: 18px; background: rgba(255,102,93,.08); }
.admin-app { min-height: 100vh; display: grid; grid-template-columns: 270px minmax(0, 1fr); background: linear-gradient(180deg, #040b14, var(--bg)); }
.drawer-backdrop { display: none; }
.sidebar {
  grid-column: 1;
  grid-row: 1;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px;
  border-right: 1px solid rgba(255,255,255,.07);
  background: rgba(4, 11, 20, .96);
}
.sidebar-head small, .sidebar-user span { display: block; color: var(--muted); font-size: 12px; }
.admin-nav { display: grid; gap: 5px; overflow-y: auto; padding-right: 3px; }
.nav-item {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #c8d3df;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 0 12px;
  text-align: left;
}
.nav-item.active { color: #06111f; background: var(--cyan); font-weight: 800; }
.sidebar-user { margin-top: auto; display: grid; gap: 8px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.08); }
.sidebar-user button { color: #ffd47a; background: rgba(245,160,0,.1); border: 1px solid rgba(245,160,0,.32); border-radius: 12px; min-height: 40px; }
.main-shell { grid-column: 2; grid-row: 1; min-width: 0; width: 100%; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 82px;
  padding: 16px 28px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  background: rgba(6,17,31,.88);
  backdrop-filter: blur(16px);
}
.topbar h1 { margin: 0; font-size: 26px; }
.kicker { margin: 0 0 3px; color: var(--cyan); text-transform: uppercase; letter-spacing: .12em; font-size: 11px; font-weight: 800; }
.icon-button { display: none; min-width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border); background: var(--panel); color: #fff; padding: 0 12px; font-weight: 800; }
.connection-pill { margin-left: auto; padding: 8px 11px; border-radius: 999px; background: rgba(24,201,110,.1); border: 1px solid rgba(24,201,110,.25); color: #82e5af; font-size: 12px; font-weight: 800; }
.content { padding: 26px; display: grid; gap: 18px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.stat-card, .panel, .record-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: 0 14px 40px rgba(0,0,0,.12);
}
.stat-card { padding: 18px; min-height: 112px; }
.stat-card span { color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.stat-card strong { display: block; margin-top: 12px; font-size: 32px; }
.panel { padding: 18px; overflow: hidden; }
.panel-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 14px; }
.panel h2 { margin: 0; font-size: 18px; }
.toolbar { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(150px, .6fr)); gap: 10px; margin-bottom: 14px; }
.tabbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.tabbar button { min-height: 38px; border-radius: 999px; padding: 0 13px; border: 1px solid var(--border); background: #081522; color: #c8d3df; }
.tabbar button.active { border-color: rgba(85,217,239,.5); color: #06111f; background: var(--cyan); font-weight: 800; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { padding: 12px; border-bottom: 1px solid rgba(255,255,255,.07); text-align: left; vertical-align: top; }
th { color: #9fb0c0; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
td { color: #e7eef5; font-size: 13px; }
.status { display: inline-flex; align-items: center; border-radius: 999px; padding: 5px 9px; font-size: 11px; font-weight: 800; background: rgba(85,217,239,.09); color: var(--cyan); border: 1px solid rgba(85,217,239,.2); }
.status.green { color: #82e5af; background: rgba(24,201,110,.1); border-color: rgba(24,201,110,.25); }
.status.orange { color: #ffd47a; background: rgba(245,160,0,.11); border-color: rgba(245,160,0,.28); }
.status.red { color: #ffb0a6; background: rgba(255,102,93,.1); border-color: rgba(255,102,93,.28); }
.avatar { width: 38px; height: 38px; border-radius: 12px; background: rgba(85,217,239,.12); display: grid; place-items: center; color: var(--cyan); font-weight: 900; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.person-cell { display: flex; align-items: center; gap: 10px; }
.muted { color: var(--muted); }
.empty, .error { padding: 22px; border-radius: 16px; background: rgba(85,217,239,.045); border: 1px solid rgba(85,217,239,.14); color: var(--muted); }
.error { background: rgba(255,102,93,.08); border-color: rgba(255,102,93,.26); color: #ffb0a6; }
.record-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mobile-cards { display: none; }
.record-card { padding: 14px; }
.record-card h3 { margin: 0 0 8px; font-size: 16px; }
.record-card dl, .detail-grid dl { margin: 0; display: grid; gap: 7px; }
.record-card div, .detail-grid div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 10px; }
dt { color: var(--muted); font-size: 12px; }
dd { margin: 0; overflow-wrap: anywhere; }
.modal { position: fixed; inset: 0; z-index: 80; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.62); }
.modal-panel, .confirm-panel {
  position: absolute;
  right: 0;
  top: 0;
  width: min(720px, 100%);
  height: 100%;
  overflow-y: auto;
  padding: 24px;
  background: #071321;
  border-left: 1px solid var(--border);
}
.confirm-panel {
  top: 50%;
  left: 50%;
  right: auto;
  width: min(430px, calc(100% - 28px));
  height: auto;
  transform: translate(-50%, -50%);
  border: 1px solid var(--border);
  border-radius: 20px;
}
.modal-close { position: sticky; top: 0; margin-left: auto; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--border); background: var(--panel); color: #fff; }
.detail-grid { display: grid; gap: 14px; }
.confirm-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.field { display: grid; gap: 7px; margin: 12px 0; }
.field textarea { min-height: 86px; resize: vertical; }
.action-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
@media (max-width: 1120px) {
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toolbar { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .admin-app { grid-template-columns: 1fr; }
  .sidebar { grid-column: 1; position: fixed; z-index: 60; width: min(310px, 86vw); transform: translateX(-105%); transition: transform .2s ease; }
  .sidebar.open { transform: translateX(0); }
  .main-shell { grid-column: 1; }
  .drawer-backdrop { display: none; position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.55); }
  .drawer-backdrop.open { display: block; }
  .icon-button { display: grid; place-items: center; }
  .topbar { padding: 14px; }
  .connection-pill { display: none; }
  .content { padding: 14px; }
  .record-grid, .stats-grid, .toolbar { grid-template-columns: 1fr; }
  table { display: none; }
  .mobile-cards { display: grid; }
}
@media (max-width: 390px) {
  .auth-view { padding: 14px; }
  .login-card, .panel { padding: 16px; border-radius: 18px; }
  .topbar h1 { font-size: 22px; }
  .stat-card strong { font-size: 27px; }
  .modal-panel { padding: 16px; }
}

.link-button { padding: 0; border: 0; background: transparent; color: var(--cyan); font-weight: 800; text-align: left; }
.evidence-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.evidence-image { width: 100%; max-height: 320px; object-fit: contain; border-radius: 14px; border: 1px solid var(--border); background: #081522; }
.evidence-link { display: inline-flex; align-items: center; justify-content: center; margin-top: 10px; text-decoration: none; }
@media (max-width: 820px) { .evidence-grid { grid-template-columns: 1fr; } }


.nav-item .nav-label { flex: 1; }
.nav-badge {
  min-width: 24px;
  min-height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  padding: 0 7px;
  background: var(--saffron);
  color: #101010;
  font-size: 12px;
}
.nav-item.has-pending:not(.active) { border-color: rgba(245,160,0,.34); background: rgba(245,160,0,.08); }
.nav-item.has-pending:not(.active) .nav-badge { box-shadow: 0 0 0 0 rgba(245,160,0,.34); animation: badge-pulse 2.4s ease-in-out infinite; }
@keyframes badge-pulse { 50% { box-shadow: 0 0 0 7px rgba(245,160,0,0); } }
@media (prefers-reduced-motion: reduce) { .nav-item.has-pending:not(.active) .nav-badge { animation: none; } }
.primary-button:disabled, .secondary-button:disabled, .danger-button:disabled, .soft-button:disabled { opacity: .48; cursor: not-allowed; }
.verification-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.verification-card { cursor: pointer; }
.verification-summary { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.verification-summary .avatar { width: 44px; height: 44px; }
.verification-summary h3, .verification-summary p { margin: 0; }
.verification-summary p { color: var(--muted); font-size: 13px; }
.profile-review { display: grid; gap: 12px; }
.profile-photo-button { width: min(320px, 100%); aspect-ratio: 1; display: block; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; background: #081522; }
.profile-photo-button img { width: 100%; height: 100%; object-fit: cover; }
.large-avatar { width: 132px; height: 132px; display: grid; place-items: center; border-radius: 24px; background: rgba(85,217,239,.12); color: var(--cyan); font-size: 54px; font-weight: 900; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.checklist li { display: flex; align-items: center; gap: 9px; color: #e7eef5; }
.checklist span { width: 24px; height: 24px; display: inline-grid; place-items: center; border-radius: 999px; font-weight: 900; }
.checklist .ok span { background: rgba(24,201,110,.13); color: #82e5af; }
.checklist .missing span { background: rgba(255,102,93,.13); color: #ffb0a6; }
@media (max-width: 820px) {
  .verification-stats { grid-template-columns: 1fr; }
  .verification-summary { grid-template-columns: 44px minmax(0, 1fr); }
  .verification-summary .status { grid-column: 1 / -1; justify-self: start; }
}

.warning-panel { border-color: rgba(245,160,0,.36); background: rgba(245,160,0,.08); }
.warning-panel p { margin: 8px 0 0; color: #ffd47a; }

/* Admin polish pass */
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible {
  outline: 3px solid rgba(85,217,239,.45);
  outline-offset: 2px;
}
.main-shell { background: linear-gradient(180deg, rgba(8,21,34,.55), rgba(6,17,31,0)); }
.topbar { min-height: 96px; padding: 20px 34px; }
.topbar h1 { font-size: 34px; line-height: 1.12; font-weight: 900; }
.content { padding: 34px; gap: 26px; align-content: start; }
.sidebar { padding: 24px 20px; gap: 22px; }
.sidebar-head strong { font-size: 18px; letter-spacing: 0; }
.admin-nav { gap: 7px; }
.nav-section {
  display: block;
  margin: 18px 8px 6px;
  color: #7f93a8;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.nav-section:first-child { margin-top: 4px; }
.nav-item { min-height: 44px; border-radius: 10px; transition: background .15s ease, border-color .15s ease, color .15s ease; }
.nav-item:hover { background: rgba(85,217,239,.07); border-color: rgba(85,217,239,.18); color: #eefbff; }
.sidebar-user { gap: 10px; padding-top: 18px; }
.sidebar-user button { min-height: 44px; font-weight: 800; }
.stats-grid { gap: 18px; }
.stat-card { min-height: 128px; padding: 22px; }
.stat-card strong { font-size: 38px; line-height: 1; }
.panel { padding: 24px; border-radius: 16px; }
.panel-head { margin-bottom: 18px; align-items: flex-start; }
.panel h2 { font-size: 21px; line-height: 1.25; }
.record-grid { gap: 16px; }
.record-card { padding: 18px; border-radius: 14px; transition: border-color .15s ease, background .15s ease; }
.record-card:hover { border-color: rgba(85,217,239,.28); background: #102338; }
.record-card h3 { font-size: 17px; line-height: 1.3; }
.record-card dl, .detail-grid dl { gap: 10px; }
.table-wrap { border: 1px solid rgba(255,255,255,.06); border-radius: 14px; overflow: auto; }
table { table-layout: fixed; min-width: 860px; }
th { padding: 14px 16px; background: rgba(8,21,34,.72); position: sticky; top: 0; z-index: 1; }
td { padding: 15px 16px; line-height: 1.45; }
tbody tr { cursor: pointer; transition: background .15s ease; }
tbody tr:hover { background: rgba(85,217,239,.055); }
td, dd { overflow-wrap: anywhere; }
.status { min-height: 26px; justify-content: center; text-transform: capitalize; }
.toolbar { gap: 12px; margin-bottom: 18px; align-items: end; }
.user-toolbar { grid-template-columns: minmax(240px, 1.6fr) repeat(3, minmax(150px, .7fr)) auto; }
.ghost-button, .success-button, .warning-button {
  min-height: 44px;
  border-radius: 12px;
  padding: 0 16px;
  font-weight: 800;
  border: 1px solid transparent;
}
.ghost-button { color: #d7e4ef; background: rgba(255,255,255,.035); border-color: rgba(255,255,255,.12); }
.success-button { color: #06111f; background: #82e5af; border-color: rgba(24,201,110,.48); }
.warning-button { color: #151007; background: #ffd47a; border-color: rgba(245,160,0,.48); }
.danger-zone { border-color: rgba(255,102,93,.32); background: rgba(255,102,93,.055); }
.action-note { margin: 12px 0 0; }
.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 120;
  max-width: min(420px, calc(100vw - 32px));
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(85,217,239,.25);
  background: #0c1b2b;
  color: var(--text);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.toast.success, .toast.error { opacity: 1; transform: translateY(0); }
.toast.success { border-color: rgba(24,201,110,.36); }
.toast.error { border-color: rgba(255,102,93,.42); color: #ffddd8; }
.modal-panel { width: min(820px, 100%); padding: 30px; }
.modal-panel h1 { margin: 0 0 18px; font-size: 30px; line-height: 1.15; }
.confirm-panel { padding: 24px; }
.confirm-panel h2 { margin-top: 0; }
.confirm-panel p { color: var(--muted); line-height: 1.5; }
.primary-button:disabled, .secondary-button:disabled, .danger-button:disabled, .soft-button:disabled, .success-button:disabled, .warning-button:disabled, .ghost-button:disabled { opacity: .48; cursor: not-allowed; }
@media (max-width: 1120px) {
  .content { padding: 26px; }
  .user-toolbar { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .topbar { min-height: 82px; padding: 16px; }
  .topbar h1 { font-size: 26px; }
  .content { padding: 18px; gap: 18px; }
  .panel { padding: 18px; }
  .stat-card { min-height: 112px; padding: 18px; }
  .stat-card strong { font-size: 32px; }
  .user-toolbar { grid-template-columns: 1fr; }
  .action-row { display: grid; grid-template-columns: 1fr; }
  .action-row button { width: 100%; }
  .modal-panel { padding: 20px; }
  .toast { right: 16px; bottom: 16px; }
}

.status-stack { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.table-action { margin-top: 10px; min-height: 34px; }
.person-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.person-card-head h3, .person-card-head p { margin: 0; }
.community-status .status-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.community-status .status-grid > div { display: grid; gap: 8px; padding: 14px; border: 1px solid rgba(255,255,255,.08); border-radius: 12px; background: rgba(8,21,34,.52); }
.community-status .status-grid span:first-child { color: var(--muted); font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.profile-check-list { display: grid; gap: 12px; }
.profile-check-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, .75fr); gap: 14px; align-items: center; padding: 16px; border: 1px solid rgba(255,255,255,.08); border-radius: 12px; background: rgba(8,21,34,.52); }
.profile-check-row p { margin: 6px 0 0; color: var(--muted); }
.review-controls { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.decision-actions button, .admin-danger button { min-height: 52px; }
.admin-danger { display: grid; gap: 16px; }
.danger-control { display: grid; grid-template-columns: minmax(0, 1fr) minmax(210px, auto); gap: 14px; align-items: center; padding: 16px; border: 1px solid rgba(255,255,255,.08); border-radius: 12px; background: rgba(8,21,34,.62); }
.danger-control p { margin: 6px 0 10px; }
.danger-control small { color: var(--muted); }
@media (max-width: 820px) {
  .community-status .status-grid, .profile-check-row, .danger-control { grid-template-columns: 1fr; }
  .review-controls { justify-content: stretch; }
  .review-controls button, .danger-control button { width: 100%; }
}
.profile-edit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.profile-edit-panel .field { margin: 0; }
@media (max-width: 820px) { .profile-edit-grid { grid-template-columns: 1fr; } }
.delete-summary-panel { margin-top: 14px; padding: 14px; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; background: rgba(8,21,34,.72); }
.delete-summary-panel h3 { margin: 0 0 10px; }
.delete-summary-panel dl { margin: 0; display: grid; gap: 7px; }
.delete-summary-panel div { display: grid; grid-template-columns: minmax(160px, 1fr) auto; gap: 10px; }

/* Responsive layout repair */
.modal-panel {
  width: min(1000px, calc(100vw - 48px));
  max-height: 100vh;
  overflow-x: hidden;
}
.confirm-panel {
  width: min(560px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  overflow-y: auto;
  overflow-x: hidden;
}
.panel, .record-card, .detail-grid, .detail-grid > *, .record-card > *, .danger-control > *, .profile-check-row > *, .community-status .status-grid > *, .delete-summary-panel > * {
  min-width: 0;
}
.status {
  max-width: 100%;
  white-space: normal;
  line-height: 1.35;
  text-align: center;
}
.action-row {
  gap: 12px;
}
.action-row button, .review-controls button, .danger-control button, .decision-actions button {
  min-height: 46px;
  min-width: 150px;
  padding: 10px 18px;
  line-height: 1.2;
  white-space: normal;
}
.admin-danger {
  gap: 20px;
}
.danger-control {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  padding: 20px;
}
.danger-control > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.danger-control strong, .profile-check-row strong {
  display: block;
  line-height: 1.25;
}
.danger-control p, .profile-check-row p {
  margin: 0;
  line-height: 1.55;
}
.danger-control .status {
  align-self: flex-start;
}
.danger-control button {
  width: min(360px, 100%);
}
.profile-check-list {
  grid-template-columns: repeat(2, minmax(300px, 1fr));
  gap: 16px;
}
.profile-check-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  padding: 20px;
}
.profile-check-row > div, .review-controls {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.review-controls {
  gap: 10px;
  align-items: flex-start;
}
.review-controls button {
  width: min(220px, 100%);
}
.community-status .status-grid {
  grid-template-columns: repeat(2, minmax(260px, 1fr));
}
.community-status .status-grid > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.verification-summary {
  grid-template-columns: 44px minmax(220px, 1fr);
}
.verification-summary .status-stack {
  grid-column: 1 / -1;
}
.delete-summary-panel div {
  grid-template-columns: minmax(0, 1fr);
}
@media (max-width: 1000px) {
  .modal-panel { width: min(920px, calc(100vw - 24px)); }
  .profile-check-list, .community-status .status-grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .modal-panel {
    width: calc(100vw - 24px);
    padding: 18px;
  }
  .action-row button, .review-controls button, .danger-control button, .decision-actions button {
    width: 100%;
    min-width: 0;
  }
}
@media (max-width: 390px) {
  .modal-panel {
    width: 100%;
    padding: 14px;
  }
  .panel, .record-card, .danger-control, .profile-check-row {
    padding: 16px;
  }
}

.support-user-summary {
  display: flex;
  align-items: center;
  gap: 14px;
}
.support-user-summary .avatar, .support-chat-card .avatar, .support-person-cell .avatar {
  border-radius: 999px;
  flex: 0 0 auto;
}
.support-user-summary h2 {
  margin: 0 0 5px;
}
.support-user-summary p {
  margin: 0 0 8px;
}
.support-message-list {
  display: grid;
  gap: 10px;
}
.support-message {
  box-shadow: none;
}
.support-message p {
  margin: 0;
}
.support-message p + p {
  margin-top: 7px;
  line-height: 1.45;
}
.support-message.from-support {
  border-color: rgba(85,217,239,.32);
  background: rgba(85,217,239,.075);
}
.support-reply-composer {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.support-reply-composer textarea {
  width: 100%;
  min-height: 96px;
  border: 1px solid #29435a;
  border-radius: 12px;
  background: #081522;
  color: #fff;
  padding: 12px 13px;
  outline: none;
  resize: vertical;
}
.support-reply-composer textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(85,217,239,.1);
}
@media (max-width: 820px) {
  .support-user-summary {
    align-items: flex-start;
  }
}
