:root {
  color-scheme: light;
  --pink: #eb2888;
  --berry: #a81760;
  --ink: #4d2540;
  --light: #fff4fa;
  --border: #f4c9df;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--light);
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
}
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid #932c78;
  outline-offset: 3px;
}
.hidden { display: none !important; }
.topbar {
  min-height: 72px;
  padding: 12px clamp(16px, 4vw, 48px);
  background: #fff;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  color: var(--berry);
  font: bold 21px Georgia, serif;
  text-decoration: none;
}
.brand span {
  display: block;
  margin-top: 4px;
  color: #ad6990;
  font: 700 10px Arial, sans-serif;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.top-actions, .heading, .editor-heading, .form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.page { max-width: 1180px; margin: 0 auto; padding: 36px clamp(16px, 4vw, 44px) 70px; }
.heading { margin-bottom: 24px; }
.heading h1 { margin: 5px 0; color: var(--berry); font: 700 clamp(30px, 5vw, 42px) Georgia, serif; }
.eyebrow { margin: 0; color: #bd4380; font-size: 11px; font-weight: 800; letter-spacing: 2px; }
.muted, .hint { color: #89677c; }
.heading .muted { margin: 8px 0 0; }
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 40px;
  padding: 9px 15px;
  border-radius: 24px;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}
.primary { background: var(--pink); color: #fff; border: 1px solid var(--pink); }
.secondary { background: #fff; color: var(--berry); border: 1px solid #eeb2d0; }
.button:disabled { cursor: wait; opacity: .65; }
.notice {
  margin: 0 0 18px;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  line-height: 1.45;
}
.notice[data-kind="error"] { color: #a31349; border-color: #e8a4bd; background: #fff4f7; }
.notice[data-kind="success"] { color: #27643d; border-color: #b7dfc1; background: #f3fff6; }
.panel { padding: clamp(16px, 3vw, 25px); border: 1px solid var(--border); border-radius: 18px; background: #fff; box-shadow: 0 8px 28px #9f3d7910; }
.toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.search-label { font-weight: 750; }
.toolbar input { flex: 1 1 260px; }
input:not([type="checkbox"]):not([type="file"]), select, textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid #e8aacb;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: 12px 10px; border-bottom: 1px solid #f3d9e6; vertical-align: middle; }
th { color: #87526e; font-size: 12px; letter-spacing: .04em; }
td { font-size: 14px; }
.product-name { min-width: 160px; font-weight: 750; }
.path { max-width: 250px; overflow-wrap: anywhere; color: #806276; font-size: 12px; }
.status { font-size: 12px; font-weight: 800; }
.status.active { color: #267441; }
.status.inactive { color: #935d25; }
.row-actions { display: flex; gap: 7px; flex-wrap: wrap; }
.row-actions .button { min-height: 34px; padding: 6px 10px; font-size: 12px; }
.editor { margin-top: 22px; }
.member-panel { margin-top: 22px; }
.member-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.member-heading h2 { margin: 0; color: var(--berry); font: 700 25px Georgia, serif; }
.member-heading p { margin: 7px 0 0; font-size: 13px; }
.member-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 20px 0;
}
.pending-center {
  margin: 24px 0;
  padding: 20px;
  background: #fff4fa;
  border: 1px solid #ffd0e5;
  border-radius: 16px;
}
.pending-center h3 { margin: 0; color: var(--berry); font: 700 20px Georgia, serif; }
.pending-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid #f4c9dd;
}
.pending-item .member-id { overflow-wrap: anywhere; }
.pending-item .muted { margin-top: 5px; font-size: 12px; }
.member-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 16px;
  margin: 20px 0;
}
.member-toolbar > div { flex: 1 1 220px; }
.member-toolbar label { display: block; margin-bottom: 6px; }
.member-toolbar input, .member-toolbar select { width: 100%; }
.stat-card {
  background: #fff0f7;
  border: 1px solid #ffc1dc;
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.stat-card span { font-size: 13px; color: #7a3154; }
.stat-card strong { font-size: 30px; color: #d90078; }
.member-notice { margin: 8px 0 12px; color: #89677c; font-size: 13px; line-height: 1.45; }
.member-id { min-width: 180px; font-family: Consolas, monospace; font-size: 12px; overflow-wrap: anywhere; }
.member-actions { display: flex; gap: 7px; flex-wrap: wrap; }
.member-actions .button { min-height: 34px; padding: 6px 10px; font-size: 12px; }
.approve-btn {
  background: #eb2888;
  color: #fff;
  border: 0;
  border-radius: 9px;
  padding: 10px 16px;
  font-weight: 700;
  cursor: pointer;
}
.approve-btn:hover { background: #d90078; }
.approve-btn:disabled { opacity: .5; cursor: wait; }
.editor-heading { margin-bottom: 16px; }
.editor-heading h2 { margin: 0; color: var(--berry); font: 700 25px Georgia, serif; }
.editor form { display: grid; gap: 9px; }
.editor form > label { margin-top: 6px; font-size: 13px; font-weight: 750; }
.editor textarea { resize: vertical; }
.editor input[type="file"] { width: 100%; padding: 9px 0; }
.editor .hint { margin: 0; font-size: 12px; line-height: 1.5; }
.checkbox-label { display: flex; align-items: center; gap: 9px; }
.checkbox-label input { width: 18px; height: 18px; accent-color: var(--pink); }
.form-actions { justify-content: flex-start; margin-top: 10px; }
.empty { padding: 22px 10px; text-align: center; color: #89677c; }
.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;
}
@media (max-width: 650px) {
  .topbar { align-items: flex-start; }
  .brand { font-size: 18px; }
  .top-actions { align-items: flex-end; flex-direction: column; }
  .heading { align-items: flex-start; flex-direction: column; }
  .member-heading { align-items: flex-start; flex-direction: column; }
  th, td { padding: 10px 8px; }
}
@media (max-width: 700px) {
  .member-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
#activityDashboard {
  margin-top: 24px;
}

#activityDashboard h2 {
  color: #d90078;
}

#activityDashboard .member-id {
  font-size: 12px;
  overflow-wrap: anywhere;
}

#activityDashboard tbody tr:hover {
  background: #fff0f7;
}

#refreshActivity {
  border-color: #eb2888;
}

@media (max-width: 700px) {
  #activityDashboard .member-heading {
    flex-wrap: wrap;
    gap: 12px;
  }
}
