@font-face {
  font-family: "Noto Sans KR";
  src: url("./assets/NotoSansKR-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --navy: #142b4a;
  --navy-soft: #2a4160;
  --cream: #f8fafc;
  --surface: #ffffff;
  --line: #e4e7ec;
  --text: #344054;
  --muted: #667085;
  --mint: #f04bbc;
  --mint-dark: #c72f8c;
  --amber: #f2b84b;
  --rose: #da6572;
  --shadow: 0 18px 48px rgb(16 32 53 / 12%);
  font-family: "Noto Sans KR", Inter, Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--cream);
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--cream); }
body:has(#monitoring-panel:not([hidden])) { min-width: 320px; }
.console:has(#monitoring-panel:not([hidden])) { grid-template-columns: 220px minmax(0, 1fr); }
.console:has(#monitoring-panel:not([hidden])) .sidebar { overflow-y: auto; }
#monitoring-panel .metric-card strong { overflow-wrap: anywhere; }
.monitoring-filters { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 12px; margin: 18px 0; }
.monitoring-filters label { display: grid; gap: 6px; color: var(--muted); font-size: 13px; }
.monitoring-filters input, .monitoring-filters select { width: 108px; height: 42px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); padding: 8px 12px; }
.monitoring-filters .button { min-height: 42px; }
@media (max-width: 1100px) {
  #monitoring-panel .dashboard-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
  .console:has(#monitoring-panel:not([hidden])) { grid-template-columns: minmax(0, 1fr); }
  .console:has(#monitoring-panel:not([hidden])) .sidebar { position: static; height: auto; padding: 14px; }
  .console:has(#monitoring-panel:not([hidden])) .brand { padding: 0 8px 12px; }
  .console:has(#monitoring-panel:not([hidden])) nav { display: flex; overflow-x: auto; gap: 6px; }
  .console:has(#monitoring-panel:not([hidden])) .nav-item { flex-shrink: 0; }
  .console:has(#monitoring-panel:not([hidden])) .nav-heading { display: none; }
  .console:has(#monitoring-panel:not([hidden])) .logout-button { align-self: flex-end; margin-top: 8px; }
  .console:has(#monitoring-panel:not([hidden])) .workspace { padding: 20px 16px 70px; }
  .console:has(#monitoring-panel:not([hidden])) .topbar { flex-wrap: wrap; gap: 8px; }
  #monitoring-panel .metric-card { padding: 14px; }
  #monitoring-panel .metric-card strong { font-size: 24px; }
}
body[data-environment="local-e2e"]::before {
  position: fixed;
  z-index: 1000;
  right: 18px;
  bottom: 18px;
  padding: 8px 12px;
  border: 1px solid #f2b84b;
  border-radius: 999px;
  color: #7a4b00;
  background: #fff7df;
  content: "LOCAL E2E · 합성 데이터";
  font-size: 12px;
  font-weight: 800;
}
button, select, textarea, input { font: inherit; }
button, a, select, input { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, select:focus-visible, textarea:focus-visible, input:focus-visible {
  outline: 3px solid rgb(82 198 167 / 35%);
  outline-offset: 2px;
}
[hidden] { display: none !important; }

.signup-rejection-dialog {
  width: 560px;
  max-height: min(620px, calc(100vh - 48px));
  margin: auto;
  padding: 28px;
  border: 1px solid #e7e9f0;
  border-radius: 20px;
  color: var(--text);
  background: #fff;
  box-shadow: 0 12px 28px rgb(14 25 46 / 16%);
  overflow-x: hidden;
  overflow-y: auto;
}
.signup-rejection-dialog::backdrop { background: rgb(15 23 42 / 35%); }
.signup-rejection-dialog[open] { display: flex; flex-direction: column; gap: 16px; }
.signup-rejection-dialog p, .signup-rejection-dialog h2 { width: 100%; margin: 0; }
.signup-rejection-dialog .signup-rejection-eyebrow {
  color: #d92d20;
  font-size: 12px;
  font-weight: 700;
  line-height: 14px;
  letter-spacing: 0;
}
.signup-rejection-dialog h2 {
  color: var(--navy);
  font-size: 22px;
  font-weight: 700;
  line-height: 26px;
}
.signup-rejection-dialog .signup-rejection-copy {
  color: var(--muted);
  font-size: 15px;
  line-height: 18px;
}
.signup-rejection-summary { display: grid; gap: 7px; width: 100%; max-height: 180px; margin: 0; padding: 12px 14px 12px 32px; overflow-y: auto; border: 1px solid #e7e9f0; border-radius: 12px; color: var(--text); background: #f8fafc; font-size: 13px; line-height: 1.45; }
.signup-rejection-actions { display: flex; width: 100%; height: 48px; gap: 12px; }
.signup-rejection-actions button {
  flex: 1;
  min-width: 0;
  height: 48px;
  border: 1px solid #d0d5dd;
  border-radius: 10px;
  color: #344054;
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
}
.signup-rejection-actions button.danger { border-color: #d92d20; color: #fff; background: #d92d20; }
.signup-rejection-actions button.primary { border-color: var(--mint); color: #fff; background: var(--mint); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.eyebrow { margin: 0 0 8px; color: var(--mint-dark); font-size: 11px; font-weight: 800; letter-spacing: .16em; }
.muted { color: var(--muted); line-height: 1.6; }
.small-text { font-size: 12px; }

.login-view { min-height: 100vh; display: grid; place-items: center; padding: 40px; background: radial-gradient(circle at 70% 20%, #d9f2e9, transparent 32%), var(--cream); }
.login-card { width: min(420px, 100%); padding: 48px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); box-shadow: var(--shadow); }
.login-card h1 { margin: 0; font-size: 28px; }
.brand-mark { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 24px; border-radius: 18px; color: var(--navy); background: var(--mint); font-size: 24px; font-weight: 900; }
.brand-mark.small { width: 32px; height: 32px; margin: 0; border-radius: 11px; font-size: 15px; }

.console { display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: 100vh; }
.console.has-detail { grid-template-columns: 220px minmax(0, 1fr) minmax(460px, 34vw); }
.sidebar { position: sticky; top: 0; display: flex; flex-direction: column; height: 100vh; padding: 24px; color: #f7fbff; background: var(--navy); }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 10px 30px; color: inherit; text-decoration: none; }
.brand-copy { display: flex; flex-direction: column; gap: 4px; }
.brand-copy strong { color: var(--mint); font-size: 22px; line-height: 1.2; letter-spacing: .04em; }
.brand-copy small { color: #d0d5dd; font-size: 13px; font-weight: 600; }
.brand-copy #session-countdown { margin-top: 6px; font-size: 12px; font-variant-numeric: tabular-nums; }
.brand-copy #session-warning { max-width: 190px; color: #ffe0a3; font-size: 11px; line-height: 1.5; }
.nav-heading { margin: 22px 12px 8px; color: #8191a5; font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.nav-item { display: flex; align-items: center; justify-content: space-between; min-height: 46px; padding: 0 12px; border-radius: 12px; color: #bcc7d3; text-decoration: none; font-size: 14px; }
.nav-item.active { color: #fff; background: var(--navy-soft); }
.nav-item.disabled { opacity: .65; }
.count-badge { min-width: 26px; padding: 3px 7px; border-radius: 999px; color: #cfd9e5; background: rgb(255 255 255 / 8%); text-align: center; font-size: 11px; font-weight: 800; }
.nav-item.active .count-badge { color: var(--navy); background: var(--mint); }
.logout-button { margin-top: auto; padding: 12px; border: 1px solid rgb(255 255 255 / 14%); border-radius: 12px; color: #bdc9d5; background: transparent; cursor: pointer; }

.workspace { min-width: 0; padding: 28px 28px 60px; }
.topbar { display: flex; align-items: center; justify-content: space-between; min-height: 36px; margin-bottom: 16px; }
.topbar .eyebrow { display: none; }
.topbar h1 { margin: 0; font-size: 25px; letter-spacing: -.03em; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.icon-button { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 12px; color: var(--text); background: var(--surface); cursor: pointer; font-size: 20px; }
.queue-panel, .operations-panel { padding: 26px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: 0 8px 30px rgb(16 32 53 / 5%); }
.dashboard-panel { display: grid; gap: 20px; }
.dashboard-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.metric-card { min-height: 103px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.metric-card span { display: block; color: var(--muted); font-size: 13px; font-weight: 600; }
.metric-card strong { display: block; margin-top: 7px; color: var(--navy); font-size: 28px; line-height: 1.45; }
.metric-card strong[data-tone="pink"] { color: #f04bbc; }
.metric-card strong[data-tone="danger"] { color: #d92d20; }
.metric-card strong[data-tone="warning"] { color: #f79009; }
.dashboard-priority-title { margin: 0; color: var(--navy); font-size: 18px; }
.priority-table { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.priority-row { display: grid; grid-template-columns: 1.3fr .7fr 1.3fr .8fr .8fr 1.2fr; gap: 10px; align-items: center; min-height: 56px; padding: 10px 16px; border-bottom: 1px solid #eaecf0; color: var(--text); font-size: 13px; }
.priority-row:last-child { border-bottom: 0; }
.priority-header { min-height: 41px; color: #475467; background: #f2f4f7; font-size: 12px; font-weight: 700; }
.priority-row button { justify-self: start; min-height: 36px; padding: 0; border: 0; color: #c72f8c; background: transparent; cursor: pointer; font-size: 13px; font-weight: 700; }
.priority-row button:disabled { color: #98a2b3; cursor: not-allowed; }
.profile-edit-category-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: -10px 0 22px; }
.profile-edit-category { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 13px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: #fff; cursor: pointer; font-size: 12px; font-weight: 700; }
.profile-edit-category.active { border-color: #f2a8d7; color: var(--mint-dark); background: #fff5fc; box-shadow: 0 0 0 2px rgb(240 75 188 / 7%); }
.category-count { min-width: 21px; padding: 1px 6px; border-radius: 999px; color: #667085; background: #f2f4f7; text-align: center; font-size: 10px; }
.profile-edit-category.active .category-count { color: var(--mint-dark); background: #fde4f4; }
.photo-moderation-view { display: grid; gap: 20px; }
.photo-moderation-tabs { display: flex; gap: 8px; border-bottom: 1px solid var(--line); }
.photo-moderation-tab { min-height: 44px; padding: 0 14px; border: 0; border-bottom: 3px solid transparent; color: var(--muted); background: transparent; cursor: pointer; font-size: 14px; font-weight: 800; }
.photo-moderation-tab.active { border-bottom-color: var(--mint); color: var(--navy); }
.photo-review-layout { display: grid; grid-template-columns: minmax(0, 1fr) 288px; align-items: start; gap: 22px; }
.photo-review-layout--history { grid-template-columns: minmax(0, 1fr); }
.photo-review-main { min-width: 0; }
.photo-review-heading h2, .photo-review-heading p { margin: 0; }
.photo-review-heading h2 { color: var(--navy); font-size: 18px; }
.photo-review-heading p { margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.photo-review-grid { display: grid; gap: 18px; }
.photo-date-group { display: grid; gap: 10px; }
.photo-date-header { display: flex; min-height: 38px; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); }
.photo-date-header h3 { margin: 0; color: var(--navy); font-size: 14px; }
.photo-date-header span { margin-left: 6px; color: var(--muted); font-size: 11px; font-weight: 600; }
.photo-date-grid, #deleted-photos-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.photo-date-complete { min-height: 30px; padding: 0 11px; border: 1px solid #f2a8d7; border-radius: 999px; color: var(--mint-dark); background: #fff5fc; cursor: pointer; font-size: 11px; font-weight: 800; }
.photo-date-complete:disabled { cursor: wait; opacity: .55; }
.photo-review-card { position: relative; min-width: 0; overflow: hidden; border: 2px solid transparent; border-radius: 14px; background: #f8f9fb; box-shadow: 0 4px 14px rgb(16 32 53 / 7%); transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.photo-review-card.selected { border-color: var(--mint); box-shadow: 0 0 0 3px rgb(240 75 188 / 13%); transform: translateY(-1px); }
.photo-review-card label { display: block; cursor: pointer; }
.photo-review-card input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.photo-review-image { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; background: #eef0f3; }
.photo-review-checkbox { position: absolute; top: 9px; right: 9px; display: grid; place-items: center; width: 27px; height: 27px; border: 2px solid #fff; border-radius: 7px; color: transparent; background: rgb(255 255 255 / 90%); box-shadow: 0 2px 9px rgb(16 32 53 / 18%); font-size: 15px; font-weight: 900; }
.photo-review-card.selected .photo-review-checkbox,
.lounge-review-card.selected .photo-review-checkbox { color: #fff; background: var(--mint); }
.photo-review-meta { display: grid; gap: 2px; padding: 9px 10px 10px; }
.photo-review-meta strong { overflow: hidden; color: var(--navy); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.photo-review-meta span { color: var(--muted); font-size: 10px; }
.photo-action-panel { position: sticky; top: 22px; padding: 18px; border: 1px solid #f0c7e1; border-radius: 16px; background: #fff9fd; box-shadow: 0 8px 24px rgb(16 32 53 / 7%); }
.photo-action-panel h2 { margin: 0; color: var(--navy); font-size: 18px; }
.selected-photo-count { margin: 7px 0 18px; color: var(--muted); font-size: 12px; font-weight: 700; }
.photo-action-panel select { width: 100%; min-width: 0; }
.photo-notification-preview { padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.photo-notification-preview strong { color: var(--navy); font-size: 11px; }
.photo-notification-preview p { margin: 7px 0 0; color: var(--text); font-size: 12px; line-height: 1.5; white-space: pre-line; }
.photo-action-note { margin: 12px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.button.danger { color: #fff; background: #d92d20; }
.repeat-violators-pane { display: grid; gap: 14px; }
.repeat-violators-pane td:nth-child(2) { color: #b42318; font-weight: 800; }
.repeat-violators-pane td:nth-child(3) { max-width: 360px; line-height: 1.45; }
.deleted-photos-pane { display: grid; gap: 14px; }
.deleted-photo-card { display: grid; align-content: start; }
.deleted-photo-card .photo-review-meta { gap: 4px; }
.deleted-photo-reason { min-height: 30px; white-space: normal !important; line-height: 1.4; }
.deleted-photo-retention { color: #b54708 !important; font-weight: 800; }
.deleted-photo-restore { min-height: 34px; margin: 0 10px 10px; border: 1px solid #b7dfd3; border-radius: 9px; color: #08745b; background: #ecfdf7; cursor: pointer; font-size: 11px; font-weight: 800; }
.deleted-photo-restore:disabled { cursor: wait; opacity: .55; }
.lounge-moderation-view { display: grid; gap: 20px; }
.lounge-review-layout { display: grid; grid-template-columns: minmax(0, 1fr) 288px; align-items: start; gap: 22px; }
.lounge-review-main { min-width: 0; }
.lounge-review-grid { display: grid; gap: 18px; }
.lounge-date-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.lounge-review-card { position: relative; min-width: 0; overflow: hidden; border: 2px solid transparent; border-radius: 16px; background: #fff; box-shadow: 0 5px 18px rgb(16 32 53 / 8%); transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.lounge-review-card.selected { border-color: var(--mint); box-shadow: 0 0 0 3px rgb(240 75 188 / 13%); transform: translateY(-1px); }
.lounge-review-card label { display: block; cursor: pointer; }
.lounge-review-card input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.lounge-review-card label:has(input:disabled) { cursor: default; }
.lounge-review-card input:disabled ~ .lounge-review-image-wrap .photo-review-checkbox { opacity: .4; }
.lounge-review-image-wrap { position: relative; background: #f1eef6; }
.lounge-review-image { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.lounge-review-placeholder { display: grid; width: 100%; aspect-ratio: 1; place-items: center; color: #98a2b3; background: linear-gradient(145deg, #f8eafa, #e9e8f8 55%, #e4f2f7); font-size: 11px; font-weight: 800; }
.lounge-review-card .photo-review-checkbox { z-index: 1; }
.lounge-review-copy { display: grid; gap: 8px; padding: 12px; }
.lounge-review-meta { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 8px; }
.lounge-review-meta strong { overflow: hidden; color: var(--navy); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.lounge-review-meta time { flex: none; color: var(--muted); font-size: 10px; }
.lounge-review-body { display: -webkit-box; min-height: 56px; margin: 0; overflow: hidden; color: var(--text); font-size: 12px; line-height: 1.55; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.lounge-review-badges { display: flex; flex-wrap: wrap; gap: 5px; min-height: 22px; }
.lounge-review-badge { display: inline-flex; align-items: center; min-height: 22px; padding: 0 7px; border-radius: 999px; color: #667085; background: #f2f4f7; font-size: 9px; font-weight: 800; }
.lounge-review-badge.flagged { color: #b54708; background: #fff4e5; }
.lounge-review-badge.deleted { color: #b42318; background: #fee4e2; }
.lounge-review-badge.author-deleted { color: #667085; background: #f2f4f7; }
.lounge-review-deleted-at { align-self: center; color: var(--muted); font-size: 10px; }
.lounge-action-panel[aria-disabled="true"] { background: #f8f9fb; }
.filter-row { display: flex; align-items: center; justify-content: space-between; }
.filter-row h2 { margin: 0; font-size: 18px; }
select { min-height: 40px; padding: 0 38px 0 13px; border: 1px solid var(--line); border-radius: 10px; color: var(--text); background: var(--surface); }
.operations-panel { padding: 0; border: 0; background: transparent; box-shadow: none; }
.operations-filter { display: flex; flex-wrap: wrap; gap: 10px; min-height: 76px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.operations-search { flex: 1; }
.operations-search input { width: 100%; min-height: 42px; padding: 0 13px; border: 1px solid #d0d5dd; border-radius: 10px; color: var(--text); background: #fff; }
.operations-filter select { min-width: 130px; }
.operations-member-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  flex-basis: 100%;
  gap: 10px;
  align-items: end;
  padding-top: 4px;
}
.member-filter-field { display: grid; gap: 5px; }
.member-filter-field > span { color: var(--muted); font-size: 12px; font-weight: 700; }
.member-filter-field input,
.member-filter-field select { width: 100%; min-height: 38px; }
.operations-member-filters .button.secondary { min-height: 38px; margin-top: 0; align-self: end; }
.operations-active-filters {
  display: flex;
  flex-basis: 100%;
  flex-wrap: wrap;
  gap: 7px;
  padding-top: 2px;
}
.operations-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 5px 8px 5px 11px;
  border: 1px solid #f3b9dc;
  border-radius: 999px;
  background: #fff5fb;
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
}
.operations-filter-chip button {
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f7d8eb;
  color: #8f3d70;
  cursor: pointer;
  font: inherit;
  line-height: 1;
}
@media (max-width: 980px) {
  .operations-member-filters { grid-template-columns: repeat(2, minmax(140px, 1fr)); }
}
.button.compact { min-height: 42px; white-space: nowrap; }
.operations-summary { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 16px 0; }
.operations-summary .metric-card { min-height: 60px; padding: 10px; border-radius: 10px; }
.operations-summary .metric-card strong { margin-top: 0; font-size: 18px; }
.operations-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.operations-table-wrap th { background: #f2f4f7; }
.operations-table-wrap td { padding-block: 13px; }
.delta-positive { color: #027a48; font-weight: 800; }
.delta-negative { color: #d92d20; font-weight: 800; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.adjustment-form { display: grid; gap: 14px; }
.adjustment-type { display: flex; gap: 10px; }
.adjustment-type label { flex: 1; }
.adjustment-type input { position: absolute; opacity: 0; }
.adjustment-type span { display: flex; min-height: 42px; align-items: center; justify-content: center; gap: 7px; border: 2px solid #d0d5dd; border-radius: 999px; color: #667085; background: #f8fafc; cursor: pointer; font-size: 13px; font-weight: 800; transition: border-color 120ms ease, color 120ms ease, background 120ms ease, box-shadow 120ms ease, transform 120ms ease; }
.adjustment-type span::before { display: grid; width: 18px; height: 18px; place-items: center; border: 1px solid currentcolor; border-radius: 50%; content: ""; font-size: 11px; line-height: 1; }
.adjustment-type label:hover span { border-color: #98a2b3; background: #fff; }
.adjustment-type input:focus-visible + span { outline: 3px solid rgb(240 75 188 / 24%); outline-offset: 2px; }
.adjustment-type input:checked + span { color: #fff; transform: translateY(-1px); }
.adjustment-type input:checked + span::before { border-color: rgb(255 255 255 / 75%); content: "✓"; }
.adjustment-type label[data-adjustment-type="grant"] input:checked + span { border-color: #d92fa4; background: #e83fb1; box-shadow: 0 5px 14px rgb(232 63 177 / 28%); }
.adjustment-type label[data-adjustment-type="deduct"] input:checked + span { border-color: #b42318; background: #d92d20; box-shadow: 0 5px 14px rgb(217 45 32 / 24%); }
.member-search-results { display: grid; gap: 8px; }
.member-result { width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--text); background: #fff; cursor: pointer; text-align: left; }
.member-result.selected { border-color: var(--mint); background: #fff5fc; }
.church-grant-picker { min-width: 0; border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.church-grant-picker > div, .church-grant-picker > div > div { margin-block: 10px; }
.church-grant-picker [aria-pressed="true"] { border-color: var(--mint); background: #fff5fc; }
.church-grant-picker p, .church-grant-picker [role="status"] { white-space: pre-line; overflow-wrap: anywhere; }
.church-grant-members { max-height: 420px; overflow-y: auto; border-top: 1px solid var(--line); }
.church-grant-member { display: flex; align-items: flex-start; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.church-grant-member input { flex: 0 0 20px; width: 20px; height: 20px; margin-top: 3px; accent-color: var(--mint); }
.church-grant-member span { min-width: 0; white-space: pre-line; overflow-wrap: anywhere; line-height: 1.6; }
.church-grant-member:has(input:disabled) { color: var(--muted); }
.audit-detail { padding: 14px; border-radius: 12px; color: #fff; background: var(--navy); }
.audit-detail p { margin: 5px 0 0; color: #d0d5dd; font-size: 12px; overflow-wrap: anywhere; }
.inline-status { min-height: 22px; margin: 14px 0 4px; color: var(--muted); font-size: 13px; }
#detail-status:empty { display: none; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { padding: 13px 10px; border-bottom: 1px solid var(--line); color: var(--muted); text-align: left; font-size: 12px; font-weight: 700; }
td { padding: 17px 10px; border-bottom: 1px solid #eef0f1; font-size: 13px; vertical-align: middle; }
tbody tr { cursor: pointer; }
tbody tr:hover { background: #fafbf9; }
.member-name { display: block; margin-bottom: 4px; font-weight: 800; }
.member-id { display: block; max-width: 150px; overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.status-pill { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: 999px; color: var(--mint-dark); background: #e5f6f0; font-size: 11px; font-weight: 800; }
.status-pill[data-status="needsRevision"], .status-pill[data-status="needs_revision"] { color: #865d0a; background: #fff3d6; }
.status-pill[data-status="rejected"] { color: #9f3141; background: #fde8eb; }
.status-pill[data-status="approved"] { color: #386f3c; background: #e8f5e9; }
.status-pill[data-status="open"], .status-pill[data-status="in_progress"], .status-pill[data-status="investigating"] { color: #865d0a; background: #fff3d6; }
.status-pill[data-status="unreviewed"] { color: #865d0a; background: #fff3d6; }
.status-pill[data-status="reviewed"] { color: #386f3c; background: #e8f5e9; }
.status-pill[data-status="actioned"], .status-pill[data-status="rejected"] { color: #9f3141; background: #fde8eb; }
.status-pill[data-status="answered"], .status-pill[data-status="closed"], .status-pill[data-status="dismissed"], .status-pill[data-status="reversed"] { color: #4d6474; background: #edf1f3; }
.report-target-pill { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: 999px; color: #344054; background: #f2f4f7; font-size: 11px; font-weight: 800; white-space: nowrap; }
.report-target-pill[data-target-type="profile"] { color: #6941c6; background: #f4ebff; }
.report-target-pill[data-target-type="lounge"] { color: #c11574; background: #fce7f6; }
.report-target-pill[data-target-type="chat"] { color: #175cd3; background: #eff8ff; }
.row-open { color: var(--muted); font-size: 18px; }

.detail-panel { position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 28px; border-left: 1px solid var(--line); background: var(--surface); box-shadow: -12px 0 38px rgb(16 32 53 / 8%); }
.detail-header { display: flex; align-items: flex-start; justify-content: space-between; }
.detail-title-row { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.detail-header h2 { margin: 0; font-size: 23px; }
.detail-content { padding: 20px 0 8px; }
.detail-panel--signup .detail-content { padding-top: 12px; }
.metadata { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 24px; }
.metadata div { padding: 12px; border-radius: 12px; background: #f7f8f6; }
.metadata dt { color: var(--muted); font-size: 11px; }
.metadata dd { margin: 5px 0 0; font-size: 13px; font-weight: 700; }
.support-inquiry-metadata { grid-template-columns: minmax(0, 1fr); }
.support-inquiry-metadata dd { white-space: pre-wrap; overflow-wrap: anywhere; }
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 24px; }
.photo-grid img { width: 100%; aspect-ratio: 3 / 4; border-radius: 10px; object-fit: cover; background: #eef0f0; }
.report-chat-evidence { display: grid; gap: 10px; margin-bottom: 24px; }
.report-chat-message { padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #f8fafc; }
.report-chat-message > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.report-chat-message strong { color: var(--navy); font-size: 12px; }
.report-chat-message time { color: var(--muted); font-size: 10px; }
.report-chat-message p { margin: 8px 0 0; color: var(--text); font-size: 13px; line-height: 1.55; white-space: pre-wrap; }
.report-chat-message img { width: min(220px, 100%); margin-top: 10px; border-radius: 10px; }
.profile-edit-photo-comparison { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 24px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: #fbfcfd; }
.profile-edit-photo-comparison figure { display: grid; justify-items: center; gap: 9px; margin: 0; }
.profile-edit-photo-comparison img { width: min(100%, 150px); aspect-ratio: 1; border: 3px solid #fff; border-radius: 50%; object-fit: cover; background: #eef0f0; box-shadow: 0 5px 18px rgb(16 32 53 / 12%); }
.profile-edit-photo-comparison figcaption { color: var(--muted); font-size: 11px; font-weight: 800; text-align: center; }
.profile-edit-review-empty { margin: 0; padding: 14px; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); background: #fbfcfd; font-size: 12px; text-align: center; }
.profile-edit-item-metadata { margin-top: -12px; }
.signup-review-metadata { grid-template-columns: auto auto minmax(0, 1fr); gap: 0; margin: 0 0 4px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.signup-review-metadata div { min-width: 0; padding: 0 12px; border-right: 1px solid var(--line); border-radius: 0; background: transparent; }
.signup-review-metadata div:first-child { padding-left: 0; }
.signup-review-metadata div:last-child { padding-right: 0; border-right: 0; }
.signup-review-metadata dd { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.signup-review-section-title { display: grid; gap: 4px; margin: 22px 0 10px; }
.signup-review-section-title h3, .signup-review-section-title p { margin: 0; }
.signup-review-section-title h3 { color: var(--navy); font-size: 14px; }
.signup-review-section-title p { color: var(--muted); font-size: 11px; line-height: 1.45; }
.signup-photo-review-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.signup-photo-option { position: relative; min-width: 0; cursor: pointer; }
.signup-photo-option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.signup-photo-frame { position: relative; display: block; overflow: hidden; aspect-ratio: 1; border: 2px solid transparent; background: #f5f2f6; transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.signup-photo-frame--profile { border-radius: 50%; }
.signup-photo-frame--feed { border-radius: 13px; }
.signup-photo-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.signup-photo-caption { position: absolute; right: 6px; bottom: 6px; left: 6px; overflow: hidden; padding: 5px 6px; border-radius: 8px; color: #fff; background: rgb(20 43 74 / 72%); font-size: 10px; font-weight: 800; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.signup-review-checkmark { position: absolute; top: 7px; right: 7px; display: grid; place-items: center; width: 24px; height: 24px; border: 2px solid #fff; border-radius: 50%; color: transparent; background: rgb(255 255 255 / 88%); box-shadow: 0 2px 8px rgb(16 32 53 / 18%); font-size: 13px; font-weight: 900; }
.signup-photo-option input:checked + .signup-photo-frame { border-color: var(--mint); box-shadow: 0 0 0 3px rgb(240 75 188 / 13%); transform: translateY(-1px); }
.signup-photo-option input:checked + .signup-photo-frame .signup-review-checkmark { color: #fff; background: var(--mint); }
.signup-photo-option input:focus-visible + .signup-photo-frame { outline: 3px solid rgb(240 75 188 / 25%); outline-offset: 2px; }
.church-review-option { position: relative; display: block; cursor: pointer; }
.church-review-option > input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.church-review-card { position: relative; display: grid; gap: 5px; min-height: 98px; padding: 15px 104px 15px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fbfcfd; transition: border-color .16s ease, background .16s ease, box-shadow .16s ease; }
.church-review-title-row { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; min-width: 0; }
.church-review-heading { color: var(--navy); font-size: 15px; font-weight: 800; }
.church-review-meta { color: var(--muted); font-size: 11px; line-height: 1.45; }
.church-verification-badge { display: inline-flex; align-items: center; min-height: 24px; padding: 0 8px; border-radius: 999px; font-size: 10px; font-weight: 800; white-space: nowrap; }
.church-verification-badge--verified { color: #027a48; background: #e8f7ef; }
.church-verification-badge--manual { color: #8a6100; background: #fff3cd; }
.church-verification-copy { color: var(--muted); font-size: 10px; line-height: 1.45; }
.church-review-mark { position: absolute; top: 50%; right: 14px; min-width: 74px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: #fff; font-size: 10px; font-weight: 800; text-align: center; transform: translateY(-50%); }
.church-review-option > input:checked + .church-review-card { border-color: var(--mint); background: #fff5fc; box-shadow: 0 0 0 3px rgb(240 75 188 / 10%); }
.church-review-option > input:checked + .church-review-card .church-review-mark { border-color: var(--mint); color: #fff; background: var(--mint); }
.church-review-option > input:focus-visible + .church-review-card { outline: 3px solid rgb(240 75 188 / 25%); outline-offset: 2px; }
.signup-review-accordions { display: grid; gap: 9px; margin-top: 22px; }
.signup-review-accordion { overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.signup-review-accordion summary { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 0 14px; color: var(--navy); cursor: pointer; font-size: 12px; font-weight: 800; list-style: none; }
.signup-review-accordion summary::-webkit-details-marker { display: none; }
.signup-review-accordion summary::after { content: "⌄"; margin-left: 8px; color: var(--muted); font-size: 16px; transition: transform .16s ease; }
.signup-review-accordion[open] summary::after { transform: rotate(180deg); }
.signup-review-accordion summary > span:last-of-type { margin-left: auto; color: var(--muted); font-size: 10px; font-weight: 600; }
.signup-review-accordion-content { display: grid; gap: 8px; padding: 0 12px 12px; border-top: 1px solid #f1f2f4; }
.signup-review-accordion-content .comparison { margin-top: 10px; }
.signup-detail-option { position: relative; display: block; cursor: pointer; }
.signup-detail-option > input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.signup-detail-card { position: relative; min-height: 68px; padding-right: 104px; transition: border-color .16s ease, background .16s ease, box-shadow .16s ease; }
.signup-detail-mark { position: absolute; top: 50%; right: 12px; min-width: 74px; padding: 6px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: #fff; font-size: 10px; font-weight: 800; text-align: center; transform: translateY(-50%); }
.signup-detail-option > input:checked + .signup-detail-card { border-color: var(--mint); background: #fff5fc; box-shadow: 0 0 0 3px rgb(240 75 188 / 10%); }
.signup-detail-option > input:checked + .signup-detail-card .signup-detail-mark { border-color: var(--mint); color: #fff; background: var(--mint); }
.signup-detail-option > input:focus-visible + .signup-detail-card { outline: 3px solid rgb(240 75 188 / 25%); outline-offset: 2px; }
.section-title { margin: 24px 0 10px; font-size: 14px; }
.comparison-list { display: grid; gap: 10px; }
.comparison { padding: 13px; border: 1px solid var(--line); border-radius: 12px; }
.comparison-label { display: block; margin-bottom: 8px; color: var(--muted); font-size: 11px; font-weight: 800; }
.comparison-values { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: start; line-height: 1.45; font-size: 13px; }
.comparison-old { color: var(--muted); }
.comparison-new { color: var(--navy); font-weight: 700; }
.text-block { margin-bottom: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcfb; }
.text-block p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; line-height: 1.6; }
.response-time { display: block; margin-bottom: 7px; color: var(--muted); font-size: 10px; }

.decision-form { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.decision-form--signup-top { margin: 16px 0 4px; padding: 16px 0 20px; border-top: 0; border-bottom: 1px solid var(--line); }
fieldset { padding: 0; margin: 0 0 18px; border: 0; }
legend, .form-field > span { display: block; margin-bottom: 9px; font-size: 12px; font-weight: 800; }
.segmented-control { display: grid; grid-template-columns: repeat(3, 1fr); padding: 4px; border-radius: 12px; background: #f0f2f1; }
.segmented-control input { position: absolute; opacity: 0; pointer-events: none; }
.segmented-control span { display: grid; place-items: center; min-height: 36px; border-radius: 9px; color: var(--muted); cursor: pointer; font-size: 12px; font-weight: 700; }
.segmented-control input:checked + span { color: var(--navy); background: var(--surface); box-shadow: 0 2px 8px rgb(16 32 53 / 9%); }
.report-sanction-options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
.report-sanction-options input { position: absolute; opacity: 0; pointer-events: none; }
.report-sanction-options span { display: grid; min-height: 38px; padding: 0 8px; place-items: center; border: 1px solid var(--line); border-radius: 11px; color: var(--muted); background: #fff; cursor: pointer; font-size: 11px; font-weight: 800; text-align: center; }
.report-sanction-options input:checked + span { border-color: #f0a7d5; color: #c82689; background: #fff2fa; box-shadow: 0 2px 8px rgb(200 38 137 / 8%); }
.report-account-summary { margin: 18px 0 24px; padding: 15px; border: 1px solid #f0d2e5; border-radius: 14px; background: #fff9fd; }
.report-account-summary h3 { margin: 0 0 12px; color: var(--navy); font-size: 13px; }
.report-metric-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; }
.report-metric-grid > div { display: grid; gap: 4px; min-width: 0; padding: 10px; border-radius: 10px; background: #fff; }
.report-metric-grid span { color: var(--muted); font-size: 9px; white-space: nowrap; }
.report-metric-grid strong { color: var(--navy); font-size: 14px; }
.report-current-sanction { margin: 11px 0 0; color: #b42318; font-size: 11px; font-weight: 800; }
.field-options { display: flex; flex-wrap: wrap; gap: 8px; }
.field-option input { position: absolute; opacity: 0; }
.field-option span { display: inline-flex; align-items: center; min-height: 32px; padding: 0 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); cursor: pointer; font-size: 12px; }
.field-option input:checked + span { border-color: var(--mint-dark); color: var(--mint-dark); background: #eaf8f4; }
.supplement-reasons { display: grid; gap: 9px; margin-top: 12px; }
.review-reason-group { display: grid; gap: 8px; padding: 11px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcfd; }
.review-reason-group h4 { margin: 0; color: var(--navy); font-size: 12px; }
.reason-field { display: grid; grid-template-columns: minmax(105px, .8fr) minmax(180px, 1.2fr); align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 11px; background: #fbfcfd; }
.review-reason-group .reason-field { padding: 0; border: 0; background: transparent; }
.reason-field > span { color: var(--text); font-size: 12px; font-weight: 700; }
.reason-field select { width: 100%; min-height: 36px; font-size: 12px; }
.form-field { display: block; margin-bottom: 16px; }
.form-field select { width: 100%; }
textarea { width: 100%; min-height: 82px; resize: vertical; padding: 12px; border: 1px solid var(--line); border-radius: 11px; color: var(--text); background: #fff; line-height: 1.45; }
.form-field input { width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 11px; color: var(--text); background: #fff; }
.privacy-note { margin: -5px 0 12px; color: var(--muted); font-size: 11px; }
.field-note { margin: 9px 0 0; line-height: 1.45; }
.approval-blocker { margin: 0 0 12px; padding: 11px 12px; border: 1px solid #f7c7ce; border-radius: 11px; color: #9f3141; background: #fff1f3; font-size: 12px; line-height: 1.5; }
.form-error { min-height: 20px; color: #b53749; font-size: 12px; }
.button { min-height: 42px; padding: 0 18px; border: 0; border-radius: 11px; cursor: pointer; font-weight: 800; }
.button.primary { color: #fff; background: var(--mint); }
.button.secondary { margin-top: 18px; color: var(--text); background: #edf0ee; }
.button.wide { width: 100%; }
.button:disabled { cursor: wait; opacity: .55; }
.member-ops-actions { display: flex; margin: 14px 0 18px; }
.member-ops-actions .button { display: inline-flex; align-items: center; justify-content: center; min-width: 180px; text-decoration: none; }
.member-detail-shell { display: grid; gap: 18px; }
.member-identity-metadata { margin: 0; }
.member-identity-metadata > div:last-child { grid-column: 1 / -1; overflow-wrap: anywhere; }
.member-detail-tabs { position: sticky; top: -20px; z-index: 3; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; padding: 5px; border: 1px solid var(--line); border-radius: 13px; background: rgb(255 255 255 / 96%); box-shadow: 0 5px 16px rgb(16 32 53 / 6%); backdrop-filter: blur(8px); }
.member-detail-tab { min-height: 38px; padding: 0 8px; border: 0; border-radius: 9px; color: var(--muted); background: transparent; cursor: pointer; font-size: 11px; font-weight: 800; }
.member-detail-tab.active { color: var(--navy); background: #fdebf7; box-shadow: 0 2px 8px rgb(16 32 53 / 8%); }
.member-detail-pane { display: grid; gap: 14px; min-width: 0; }
.member-profile-hero { display: grid; grid-template-columns: 92px minmax(0, 1fr); align-items: center; gap: 16px; padding: 16px; border: 1px solid #f0c7e1; border-radius: 18px; background: linear-gradient(135deg, #fff9fd, #f8f7ff); }
.member-profile-hero > img, .member-profile-avatar-placeholder { display: grid; width: 92px; aspect-ratio: 1; place-items: center; border: 3px solid #fff; border-radius: 50%; object-fit: cover; color: #98a2b3; background: linear-gradient(145deg, #f8d8eb, #d8d4ff); box-shadow: 0 5px 16px rgb(16 32 53 / 12%); font-size: 10px; font-weight: 800; }
.member-profile-hero h3, .member-profile-hero p { margin: 0; }
.member-profile-hero h3 { color: var(--navy); font-size: 17px; }
.member-profile-hero strong { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }
.member-profile-hero p { margin-top: 8px; color: var(--text); font-size: 12px; line-height: 1.55; }
.member-preview-section-title { display: grid; gap: 3px; margin-top: 5px; }
.member-preview-section-title h3, .member-preview-section-title p { margin: 0; }
.member-preview-section-title h3 { color: var(--navy); font-size: 14px; }
.member-preview-section-title p { color: var(--muted); font-size: 10px; line-height: 1.5; }
.member-public-photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.member-public-photo-grid figure { min-width: 0; margin: 0; }
.member-public-photo-grid img { display: block; width: 100%; aspect-ratio: 1; border-radius: 11px; object-fit: cover; background: #eef0f3; }
.member-public-photo-grid .main-photo img { border-radius: 50%; }
.member-public-photo-grid figcaption { margin-top: 5px; overflow: hidden; color: var(--muted); font-size: 9px; font-weight: 700; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.member-public-metadata { margin: 0; }
.member-public-metadata div { padding: 10px; }
.member-profile-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.member-profile-tag { display: inline-flex; align-items: center; min-height: 29px; padding: 0 10px; border: 1px solid #f2b8dd; border-radius: 999px; color: var(--mint-dark); background: #fff7fc; font-size: 10px; font-weight: 700; }
.member-profile-tag.empty { border-color: var(--line); color: var(--muted); background: #f8fafc; }
.member-faith-list { display: grid; gap: 8px; }
.member-faith-list article { overflow: hidden; border: 1px solid #edddea; border-radius: 12px; background: #fff; }
.member-faith-list article strong { display: block; padding: 9px 11px; color: var(--text); background: #fff7fc; font-size: 10px; line-height: 1.45; }
.member-faith-list article p { margin: 0; padding: 10px 11px; color: var(--text); font-size: 11px; line-height: 1.6; }
.member-lounge-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.member-lounge-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 4px 14px rgb(16 32 53 / 6%); }
.member-lounge-card img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; background: #eef0f3; }
.member-lounge-card > div { display: grid; gap: 6px; padding: 10px; }
.member-lounge-card time { color: var(--muted); font-size: 9px; }
.member-lounge-card p { display: -webkit-box; min-height: 52px; margin: 0; overflow: hidden; color: var(--text); font-size: 11px; line-height: 1.55; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }

@media (max-width: 1360px) {
  .sidebar { padding-inline: 14px; }
  .workspace { padding-inline: 24px; }
  .photo-review-layout { grid-template-columns: minmax(0, 1fr) 260px; }
  .lounge-review-layout { grid-template-columns: minmax(0, 1fr) 260px; }
}

@media (max-width: 1120px) {
  .lounge-date-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: no-preference) {
  .detail-panel { animation: slide-in .18s ease-out; }
  @keyframes slide-in { from { opacity: 0; transform: translateX(16px); } }
}

/* Keep detail content readable instead of shrinking the list to make room. */
.sidebar { overflow-y: auto; }
.metadata > div { min-width: 0; }
.metadata dd { overflow-wrap: anywhere; }
.detail-header { position: sticky; top: -28px; z-index: 2; padding-block: 12px; background: var(--surface); }
.detail-header .icon-button { flex-shrink: 0; }
.monitoring-tabs { display: flex; gap: 8px; margin-bottom: 24px; }
.monitoring-tabs [aria-pressed="true"] { color: #b42386; border: 1px solid #edabd5; background: #fff0fa; }
.service-cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.service-card { min-width: 0; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.service-card h3 { margin-top: 0; }
.service-card dl { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; font-size: 13px; }
.service-card dd { margin: 0; text-align: right; overflow-wrap: anywhere; font-weight: 700; }
.service-card p { font-size: 12px; line-height: 1.7; }
.console.has-detail [data-list-kind="members"] :is(th,td):is(:nth-child(2),:nth-child(3),:nth-child(4),:nth-child(7),:nth-child(8),:nth-child(9)) { display: none; }
@media (max-width: 1599px) {
  .console.has-detail { grid-template-columns: 220px minmax(0, 1fr); }
  .detail-panel { position: fixed; inset: 0 0 0 auto; z-index: 30; width: min(600px, 65vw); height: 100dvh; overscroll-behavior: contain; box-shadow: -20px 0 45px rgb(16 32 53 / 18%); }
  body.detail-overlay-open { overflow: hidden; }
  .console.has-detail::after { content: ''; position: fixed; inset: 0; z-index: 29; background: rgb(16 32 53 / 25%); }
}
@media (max-width: 1200px) {
  [data-list-kind="members"] :is(th,td):is(:nth-child(2),:nth-child(3),:nth-child(4),:nth-child(7),:nth-child(8),:nth-child(9)) { display: none; }
  .priority-table { overflow-x: auto; }
  .priority-row { min-width: 760px; }
}
@media (max-width: 760px) {
  .console, .console.has-detail { display: block; }
  .sidebar { position: static; height: auto; padding: 16px; }
  .brand { padding: 0 0 12px; }
  .sidebar nav { display: flex; gap: 6px; overflow-x: auto; }
  .sidebar .nav-heading { display: none; }
  .sidebar .nav-item { flex-shrink: 0; gap: 8px; }
  .logout-button { margin-top: 12px; align-self: flex-end; }
  .workspace { padding: 20px 12px 40px; }
  .topbar { gap: 12px; flex-wrap: wrap; }
  .topbar h1 { font-size: 22px; }
  .queue-panel, .operations-panel { padding: 14px; }
  .detail-panel { inset: 0; width: 100%; height: 100dvh; padding: 16px 16px max(24px, env(safe-area-inset-bottom)); border: 0; }
  .detail-header { top: -16px; }
  .detail-header h2 { font-size: 21px; }
  .dashboard-metrics, .operations-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .operations-filter, .operations-member-filters { display: flex; flex-direction: column; align-items: stretch; }
  .operations-member-filters > *, .operations-filter > * { min-width: 0; width: 100%; }
  .table-wrap th, .table-wrap td, .operations-table-wrap th, .operations-table-wrap td { padding: 10px 8px; white-space: nowrap; }
  [data-list-kind] .member-id { display: none; }
  [data-list-kind="signup"] :is(th,td):nth-child(3),
  [data-list-kind="profileEdit"] :is(th,td):nth-child(3),
  [data-list-kind="support"] :is(th,td):nth-child(2),
  [data-list-kind="support"] :is(th,td):nth-child(3),
  [data-list-kind="reports"] :is(th,td):nth-child(5) { display: none; }
  .photo-review-layout, .lounge-review-layout { grid-template-columns: minmax(0, 1fr); }
}

.ops-page { min-width: 1030px; min-height: 700px; background: #f8fafc; }
.ops-console { display: grid; grid-template-columns: 220px 810px; width: 1030px; height: 700px; margin: 0 auto; overflow: hidden; border: 1px solid #e4e7ec; border-radius: 22px; background: #f8fafc; }
.ops-sidebar { min-height: 700px; padding: 24px; color: #d0d5dd; background: #142b4a; }
.ops-brand { display: block; color: #f04bbc; text-decoration: none; font-size: 22px; font-weight: 800; letter-spacing: .04em; }
.ops-sidebar > strong { display: block; margin-top: 14px; font-size: 13px; }
.ops-sidebar nav { display: grid; gap: 18px; margin-top: 22px; }
.ops-sidebar nav a { display: flex; align-items: center; width: 172px; height: 44px; padding: 10px; border-radius: 10px; color: #d0d5dd; text-decoration: none; font-size: 14px; }
.ops-sidebar nav a.active { color: #fff; background: #2a4160; font-weight: 700; }
.ops-workspace { width: 810px; height: 700px; padding: 28px; overflow: hidden; }
.ops-header { display: flex; width: 754px; align-items: flex-start; justify-content: space-between; margin-bottom: 18px; }
.ops-header h1 { margin: 0; color: #142b4a; font-size: 25px; line-height: 36px; }
.ops-header span { color: #667085; font-size: 13px; font-weight: 500; }
.ops-status { min-height: 0; margin: 0; color: #c72f8c; font-size: 13px; }
.ops-status:empty { display: none; }
.ops-content { display: flex; flex-direction: column; gap: 18px; width: 754px; }
.ops-card { position: relative; display: flex; flex-direction: column; gap: 8px; width: 754px; padding: 18px; overflow: hidden; border: 1px solid #e4e7ec; border-radius: 14px; background: #fff; }
.ops-card h2, .ops-card h3, .ops-card p { margin: 0; white-space: pre-line; }
.ops-card h2, .ops-card h3 { color: #142b4a; line-height: 1.45; }
.ops-card p { color: #667085; font-size: 13px; line-height: 1.45; }
.ops-account-summary { min-height: 100px; padding: 16px; }
.ops-account-summary h2 { width: 430px; }
.ops-account-summary .ops-pill { position: absolute; top: 16px; left: 455px; width: 110px; }
.ops-account-summary .ops-muted { position: absolute; top: 23px; right: 16px; width: 120px; }
.ops-pill { display: inline-flex; align-items: center; justify-content: center; width: fit-content; min-width: 100px; min-height: 30px; padding: 7px 14px; border-radius: 999px; color: #475467; background: #f2f4f7; font-size: 12px; font-weight: 700; }
.ops-pill[data-tone="pink"] { color: #c72f8c; background: #fdebf7; }
.ops-pill[data-tone="warning"] { color: #b54708; background: #fff4e5; }
.ops-state-badges { flex-direction: row; align-items: flex-start; height: 100px; padding: 12px; gap: 10px; }
.ops-strong-copy { color: #c72f8c !important; font-weight: 500; }
.ops-actions { display: flex; gap: 10px; width: 100%; }
.ops-button { width: 150px; height: 38px; border: 1px solid #d0d5dd; border-radius: 9px; color: #344054; background: #fff; cursor: pointer; font-size: 13px; font-weight: 700; }
.ops-button:last-child:not(.danger), .ops-button.primary { border-color: #f04bbc; color: #fff; background: #f04bbc; }
.ops-button.secondary { border-color: #d0d5dd; color: #344054; background: #fff; }
.ops-actions .ops-button.secondary:last-child:not(.danger) { border-color: #d0d5dd; color: #344054; background: #fff; }
.ops-button.danger { border-color: #d92d20; color: #fff; background: #d92d20; }
.ops-card textarea { width: 100%; min-height: 72px; padding: 12px; resize: vertical; border: 1px solid #d0d5dd; border-radius: 9px; }
.ops-card select { width: 160px; min-height: 38px; }
#lounge-retention-panel .ops-card { width: 100%; max-width: 800px; padding: 28px; gap: 16px; }
#lounge-retention-panel form { display: grid; gap: 18px; }
#lounge-retention-panel label { display: grid; gap: 8px; font-size: 14px; }
#lounge-retention-panel input, #lounge-retention-panel select { max-width: 100%; min-height: 42px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
#lounge-retention-panel [data-save] { justify-self: start; }
#lounge-retention-panel [data-current] { color: #142b4a; font-weight: 600; }
.ops-controls { flex-direction: row; align-items: flex-start; height: 100px; padding: 12px; gap: 10px; }
.ops-controls input { width: 470px; height: 38px; padding: 0 12px; border: 1px solid transparent; color: #344054; }
.ops-controls .ops-button { width: 220px; }
.ops-table-wrap { width: 754px; overflow: hidden; border: 1px solid #e4e7ec; border-radius: 14px; background: #fff; }
.ops-table-wrap table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.ops-table-wrap th, .ops-table-wrap td { padding: 10px; border-bottom: 1px solid #eaecf0; color: #344054; text-align: left; font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }
.ops-table-wrap th { color: #475467; background: #f2f4f7; font-size: 11px; }
.ops-table-wrap tr:last-child td { border-bottom: 0; }
.ops-reason-table th, .ops-reason-table td { padding-inline: 5px; }
.ops-role-principle { width: 754px; padding: 14px; border-radius: 12px; color: #c72f8c; background: #fff7fc; }
.ops-role-principle h3, .ops-role-principle p { margin: 0; white-space: pre-line; }
.ops-role-principle p { color: #475467; font-size: 13px; line-height: 1.45; }
.ops-reason-info { width: 754px; padding: 14px; border-radius: 12px; background: #fff7ed; }
.ops-reason-info h3, .ops-reason-info p { margin: 0; }
.ops-reason-info h3 { color: #b54708; }
.ops-reason-info p { margin-top: 5px; color: #7c2d12; font-size: 12px; }
.restriction-controls { width:100%; border:1px solid var(--border,#e4e6ec);border-radius:16px;padding:18px;margin:16px 0; }
.restriction-controls summary { cursor:pointer;font-weight:700; }
.restriction-form { display:grid;gap:14px;margin-top:20px; }
.restriction-form select,.restriction-form textarea,.member-restriction-confirm input { width:100%;padding:12px;border:1px solid #d8dce6;border-radius:10px;font:inherit; }
.restriction-form textarea { min-height:100px; }
.member-restriction-confirm { max-width:min(520px,90vw);border:0;border-radius:24px;padding:28px;color:#263950;overflow-wrap:anywhere; }
.member-restriction-confirm::backdrop { background:rgba(16,30,48,.5); }
.member-restriction-confirm form { display:grid;gap:16px; }
.member-restriction-confirm label { display:grid;gap:8px; }
/* Member action history: readable summaries, native keyboard-accessible disclosure. */
.operation-history-card { border:1px solid var(--line,#e2e5ec);border-radius:16px;background:#fff;overflow-wrap:anywhere; }
.operation-history-card summary { cursor:pointer;padding:18px;display:grid;gap:7px;position:relative;padding-right:42px;list-style:none; }
.operation-history-card summary::-webkit-details-marker { display:none; }
.operation-history-card summary::after { content:'＋';position:absolute;right:18px;top:18px;color:#6c7485; }
.operation-history-card[open] summary::after { content:'−'; }
.operation-history-card summary:focus-visible { outline:3px solid #cc288f;outline-offset:-3px;border-radius:16px; }
.operation-history-title { font-weight:750;color:#172f4c; }
.operation-history-meta,.operation-history-hint { color:#657084;font-size:.85rem; }
.operation-history-highlight { color:#344258;font-size:.95rem; }
.operation-history-details { padding:0 18px 18px;margin:0;display:grid;gap:12px; }
.operation-history-details div { border-top:1px solid #edf0f4;padding-top:12px; }
.operation-history-details dt { color:#657084;font-size:.85rem;margin-bottom:4px; }
.operation-history-details dd { margin:0;color:#344258;white-space:pre-wrap; }
/* Operational notices use the same typography and controls as the console. */
.notice-compose { display: grid; gap: 18px; max-width: 880px; }
.notice-compose label, .notice-confirm label { display: grid; gap: 8px; }
.notice-compose .notice-push-option { display: flex; align-items: center; }
.notice-push-option input[type="checkbox"] { width: 18px; height: 18px; margin: 0; flex: 0 0 auto; }
.notice-compose input:not([type="checkbox"]), .notice-compose textarea,
.notice-compose select, .notice-confirm input { width: 100%; padding: 12px; border: 1px solid #d7dce5; border-radius: 12px; font: inherit; box-sizing: border-box; }
.notice-compose [data-results], .notice-compose [data-selected] { display: grid; gap: 8px; margin: 12px 0; overflow-wrap: anywhere; }
.notice-confirm { width: min(560px, calc(100vw - 40px)); border: 0; border-radius: 24px; padding: 28px; max-height: 85vh; overflow: auto; color: #354256; }
.notice-confirm::backdrop { background: #142c4b66; }
#deletions-panel .table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
#deletions-panel input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--pink, #cf278d); }
#deletions-panel [data-search] { padding: 10px; border: 1px solid var(--line); border-radius: 10px; font: inherit; }
#deletions-panel [data-more] { margin-top: 16px; }
#deletions-panel [data-search-form] label { display: grid; gap: 8px; }
.notice-message { white-space: pre-wrap; overflow-wrap: anywhere; }
.notice-history { background: #fff; padding: 20px; border: 1px solid #e2e5ec; border-radius: 16px; margin: 12px 0; overflow-wrap: anywhere; }
