/* ============================================================
   Campus moderator console — mobile-first
   ============================================================ */
:root {
  --mod-ink: #25233c;
  --mod-soft: #6e6685;
  --mod-muted: #978ba6;
  --mod-line: rgba(97, 77, 124, .13);
  --mod-pink: #ff8dc3;
  --mod-lilac: #a98bff;
  --mod-cream: #fffaf5;
  --mod-danger: #d9546d;
  --mod-ok: #2e8d6d;
  --mod-font: "Segoe UI Variable Display", "Manrope", "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { background: #fff8fb; }
body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  padding-bottom: calc(34px + env(safe-area-inset-bottom));
  color: var(--mod-ink);
  background:
    radial-gradient(circle at 5% -5%, rgba(255, 173, 209, .45), transparent 23rem),
    radial-gradient(circle at 98% 0%, rgba(183, 216, 255, .55), transparent 24rem),
    linear-gradient(180deg, #fff9fd, #fbfbff 60%, #fff8f3);
  font-family: var(--mod-font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 58px;
  padding: 0 max(14px, env(safe-area-inset-left)) 0 max(14px, env(safe-area-inset-right));
  background: rgba(255, 250, 253, .86);
  border-bottom: 1px solid var(--mod-line);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.brand { display: flex; align-items: center; gap: 8px; min-width: 0; }
.brand img { width: 33px; height: 33px; flex: none; object-fit: contain; }
.brand span { display: flex; flex-direction: column; min-width: 0; font-size: 11.5px; font-weight: 800; line-height: 1.2; letter-spacing: -.02em; }
.brand small { margin-top: 2px; color: #9a82a9; font-size: 6px; font-weight: 600; letter-spacing: .14em; }
.top-link {
  flex: none;
  padding: 6px 9px;
  color: #7c5a91;
  background: rgba(255, 255, 255, .65);
  border: 1px solid rgba(156, 121, 187, .24);
  border-radius: 999px;
  font-size: 7.5px;
  font-weight: 600;
}
.mod-shell { width: min(100%, 780px); margin: 0 auto; padding: 14px; }
.login-card {
  width: min(100%, 390px);
  margin: 9vh auto 0;
  padding: 22px;
  background: rgba(255, 255, 255, .88);
  border: 1px solid rgba(255, 255, 255, .96);
  border-radius: 23px;
  box-shadow: 0 24px 60px rgba(102, 74, 133, .16);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}
.login-kicker { margin: 0; color: #b35c92; font-size: 6.5px; font-weight: 800; letter-spacing: .2em; }
.login-card h1 { margin: 7px 0 3px; color: #39294c; font-size: 29px; font-weight: 900; letter-spacing: -.055em; line-height: 1.15; }
.login-card > p { margin: 0 0 15px; color: #8b7a9d; font-size: 8px; line-height: 1.8; }
.field { margin-bottom: 10px; }
.field label { display: block; margin-bottom: 4px; color: #7d6a91; font-size: 7px; font-weight: 700; }
.field input {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  color: #30243f;
  background: #fffafd;
  border: 1.5px solid #efdce9;
  border-radius: 10px;
  outline: none;
  font-size: 11px;
}
.field input:focus { border-color: #e7a7ca; box-shadow: 0 0 0 3px rgba(255, 154, 201, .1); }
.login-submit {
  width: 100%;
  min-height: 43px;
  margin-top: 5px;
  color: #fff;
  background: linear-gradient(135deg, #ff7fbb, #9e79ff);
  border: 0;
  border-radius: 11px;
  box-shadow: 0 8px 20px rgba(170, 99, 209, .25);
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}
.login-submit:disabled { opacity: .6; }
.login-hint { min-height: 16px; margin: 8px 0 0; color: var(--mod-danger); font-size: 7.5px; text-align: center; }
.login-note { margin: 14px 0 0; padding-top: 11px; border-top: 1px dashed #ead9e6; color: #a094ad; font-size: 7px; line-height: 1.8; text-align: center; }
.mod-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin: 3px 0 12px;
}
.mod-head h1 { margin: 0; color: #342446; font-size: clamp(28px, 6.6vw, 38px); font-weight: 900; letter-spacing: -.055em; line-height: 1.1; }
.mod-kicker { margin: 0 0 3px; color: #ad6592; font-size: 6.5px; font-weight: 800; letter-spacing: .18em; }
.mod-who { display: flex; align-items: center; gap: 5px; padding: 5px 8px; color: #6b567e; background: rgba(255, 255, 255, .7); border: 1px solid var(--mod-line); border-radius: 999px; font-size: 7px; white-space: nowrap; }
.mod-who i { width: 5px; height: 5px; border-radius: 50%; background: #5dbd94; box-shadow: 0 0 0 3px rgba(93, 189, 148, .14); }
.mod-tools { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.mod-btn {
  min-height: 32px;
  padding: 5px 10px;
  color: #6f587f;
  background: rgba(255, 255, 255, .72);
  border: 1px solid var(--mod-line);
  border-radius: 8px;
  font-size: 7.5px;
  font-weight: 600;
  cursor: pointer;
}
.mod-btn:active { transform: translateY(1px); }
.mod-btn.danger { color: #b8455c; border-color: rgba(217, 84, 109, .22); background: #fff6f8; }
.mod-btn.primary { color: #fff; background: #4a315f; border-color: transparent; }
.mod-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 11px; }
.mod-stat { padding: 10px; background: rgba(255, 255, 255, .78); border: 1px solid rgba(255, 255, 255, .9); border-radius: 13px; box-shadow: 0 8px 20px rgba(106, 81, 132, .06); }
.mod-stat strong { display: block; color: #3e2b51; font-size: 21px; font-weight: 900; letter-spacing: -.04em; line-height: 1.1; }
.mod-stat span { display: block; margin-top: 2px; color: #9a8aa7; font-size: 6.5px; letter-spacing: .08em; }
.mod-tabs { display: flex; gap: 5px; padding: 4px; background: rgba(255, 255, 255, .72); border: 1px solid var(--mod-line); border-radius: 12px; }
.mod-tab { flex: 1; min-height: 33px; color: #8a7899; background: transparent; border: 0; border-radius: 9px; font-size: 8px; font-weight: 700; cursor: pointer; }
.mod-tab.is-active { color: #4a2f5e; background: linear-gradient(135deg, #ffe4f0, #ece2ff); }
.mod-filter { display: flex; gap: 6px; margin: 9px 0; }
.mod-filter input { flex: 1; min-width: 0; min-height: 34px; padding: 6px 9px; color: #39294a; background: rgba(255,255,255,.78); border: 1px solid var(--mod-line); border-radius: 9px; outline: none; font-size: 8px; }
.mod-filter select { flex: none; min-height: 34px; padding: 5px 7px; color: #6e587e; background: rgba(255,255,255,.78); border: 1px solid var(--mod-line); border-radius: 9px; font-size: 8px; }
.mod-list { display: grid; gap: 8px; }
.review-card {
  position: relative;
  padding: 12px;
  background: rgba(255, 255, 255, .88);
  border: 1px solid rgba(255, 255, 255, .96);
  border-radius: 15px;
  box-shadow: 0 10px 26px rgba(100, 76, 128, .07);
}
.review-card-head { display: flex; align-items: center; gap: 7px; min-width: 0; }
.review-avatar { width: 30px; height: 30px; flex: none; overflow: hidden; display: grid; place-items: center; color: #4a2e5b; background: linear-gradient(145deg, #ffe4f0, #dfe9ff); border-radius: 50%; font-size: 11px; font-weight: 800; }
.review-avatar img { width: 100%; height: 100%; display: block; object-fit: cover; }
.review-who { min-width: 0; flex: 1; }
.review-who strong { display: block; color: #49335d; font-size: 10px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.review-who span { display: block; margin-top: 1px; color: #9a8ba6; font-size: 6.5px; }
.review-status { flex: none; padding: 3px 6px; border-radius: 5px; font-size: 6px; font-weight: 700; }
.review-status.approved { color: #287d60; background: #e8f8f1; }
.review-status.waiting { color: #9b6a20; background: #fff4dc; }
.review-status.spam { color: #a33d54; background: #ffe9ee; }
.review-text { margin: 8px 0 0; color: #4f4461; font-size: 9px; line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; }
.review-photo { display: block; width: min(100%, 230px); max-height: 230px; margin-top: 8px; object-fit: cover; border-radius: 10px; border: 2px solid #fff; box-shadow: 0 5px 14px rgba(89, 64, 111, .12); }
.review-caption { margin: 6px 0 0; color: #8b6b95; font-size: 7.5px; }
.review-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 9px; padding-top: 8px; border-top: 1px dashed #ecdeea; }
.review-id { color: #b0a1b8; font-size: 6px; letter-spacing: .04em; }
.review-delete { min-height: 32px; padding: 6px 12px; color: #bd435b; background: #fff4f7; border: 1px solid #f3c9d2; border-radius: 7px; font-size: 7px; font-weight: 700; cursor: pointer; }
.review-delete:disabled { opacity: .5; }
.mod-empty { padding: 32px 14px; color: #9a89a6; background: rgba(255,255,255,.6); border: 1px dashed #e6d6e4; border-radius: 15px; text-align: center; font-size: 8.5px; line-height: 1.8; }
.mod-empty strong { display: block; margin-bottom: 3px; color: #5d446f; font-size: 14px; font-weight: 800; }
.mod-loading { padding: 30px 12px; color: #9887a4; text-align: center; font-size: 8.5px; }
.mod-toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 80; transform: translate(-50%, 14px); max-width: calc(100% - 28px); padding: 9px 14px; color: #fff; background: rgba(53, 34, 65, .92); border-radius: 999px; box-shadow: 0 10px 24px rgba(47, 27, 59, .25); font-size: 8px; opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.mod-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.mod-toast.error { background: rgba(168, 53, 76, .94); }
.mod-foot { margin: 15px 0 0; color: #a295ac; font-size: 6.5px; line-height: 1.8; text-align: center; }
@media (max-width: 380px) {
  .mod-shell { padding: 10px; }
  .login-card { padding: 17px; border-radius: 19px; }
  .login-card h1 { font-size: 26px; }
  .mod-head h1 { font-size: 28px; }
  .mod-stats { gap: 5px; }
  .mod-stat { padding: 8px; }
  .review-card { padding: 10px; }
  .brand span { font-size: 10px; }
  .brand img { width: 29px; height: 29px; }
}
