.review-management-tabs {
  display: inline-flex;
  gap: 4px;
  margin-bottom: 16px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #e9ecf2;
}

.review-management-tabs button {
  min-height: 38px;
  padding: 8px 16px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #737e92;
  font-weight: 700;
}

.review-management-tabs button:hover { color: var(--ink); }
.review-management-tabs button:focus-visible { outline: 3px solid #6157e833; outline-offset: 2px; }
.review-management-tabs button.active { background: #fff; color: var(--ink); box-shadow: 0 3px 10px #29334a14; }
.review-management-pane[hidden] { display: none !important; }

.official-account-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 154px;
  padding: 28px 32px;
  border: 1px solid #e8e5ff;
  border-radius: 18px;
  background: linear-gradient(120deg, #fff, #f4f2ff);
}

.official-account-hero h2 { margin: 10px 0 5px; font-size: 27px; }
.official-account-hero p { max-width: 720px; font-size: 13px; }

.official-account-summary {
  min-width: 168px;
  display: grid;
  justify-items: end;
  padding: 16px 18px;
  border: 1px solid #e5e1ff;
  border-radius: 14px;
  background: #ffffffc9;
  color: #747f93;
}

.official-account-summary b { color: #5148ca; font: 800 30px var(--mono); }
.official-account-summary small { font-size: 11px; }

.official-account-search {
  display: flex;
  align-items: end;
  gap: 10px;
  margin: 18px 0 10px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 3px 12px #29334a08;
}

.official-account-search label { flex: 1; min-width: 240px; margin: 0; }
.official-account-search label span { color: #707b90; font-size: 11px; }
.official-account-search input { width: 100%; height: 41px; }
.official-account-search button { flex: 0 0 auto; min-height: 41px; }

.official-account-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
}

.official-account-toolbar p { font-size: 12px; }
.official-account-toolbar button:disabled { cursor: wait; opacity: .55; }

.official-account-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.official-account-card { min-width: 0; padding: 18px; border: 1px solid #e2e5ec; border-radius: 16px; background: #fff; box-shadow: 0 5px 18px #29334a0d; }
.official-account-identity { display: flex; align-items: center; gap: 11px; min-width: 0; }
.official-account-identity > div { min-width: 0; }
.official-account-identity code { display: block; overflow: hidden; color: #8b95a8; font: 10px/1.5 var(--mono); text-overflow: ellipsis; white-space: nowrap; }

.official-account-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: linear-gradient(145deg, #ebe8ff, #e7f2ff);
  color: #5b51d8;
  font-size: 15px;
  font-weight: 800;
}

.official-account-name { display: flex; align-items: center; gap: 7px; min-width: 0; }
.official-account-name b { overflow: hidden; color: #30394d; text-overflow: ellipsis; white-space: nowrap; }
.official-v { width: 20px; height: 20px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 6px; background: #ff9a64; color: #fff; font-size: 11px; font-weight: 800; }

.official-account-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 16px 0;
  padding: 12px;
  border-radius: 12px;
  background: #f7f8fb;
  color: #778297;
  font-size: 11px;
}

.official-account-details span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.official-account-details code { color: #6d778b; font: 10px var(--mono); }

.official-account-verification { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid #edf0f5; }
.official-account-verification > div { min-width: 0; display: flex; flex-direction: column; }
.official-account-verification b { color: #657086; font-size: 12px; }
.official-account-verification.verified b { color: #c56d38; }
.official-account-verification small { margin-top: 2px; color: #929caf; font-size: 10px; }
.official-account-verification button { min-width: 112px; }
.official-account-remove { color: #c84d4d; }

.official-account-empty {
  grid-column: 1 / -1;
  min-height: 280px;
  display: grid;
  place-content: center;
  gap: 4px;
  border: 1px dashed #dfe3eb;
  border-radius: 14px;
  background: #fff;
  color: #9ba4b5;
  text-align: center;
}

.official-account-empty b { color: #667186; }
.official-account-empty span { font-size: 12px; }
.official-account-empty.error { border-color: #f1cdcd; background: #fffafa; }
.official-account-empty.error b { color: var(--bad); }

.official-account-dialog {
  width: min(440px, calc(100vw - 32px));
  padding: 24px;
  border: 0;
  border-radius: 18px;
  color: var(--ink);
  box-shadow: 0 24px 80px #10162b42;
}

.official-account-dialog::backdrop { background: #1117278c; backdrop-filter: blur(2px); }
.official-account-dialog[open] { display: grid; grid-template-columns: 48px 1fr; gap: 14px; animation: official-dialog-enter .16s ease-out; }
.official-account-dialog-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: #fff0e8; color: #e37d45; font-weight: 800; }
.official-account-dialog h3 { margin: 1px 0 6px; font-size: 18px; }
.official-account-dialog p { font-size: 13px; line-height: 1.65; }
.official-account-dialog-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.official-account-dialog-actions button { min-width: 104px; }
.official-account-dialog-actions .danger { border: 0; border-radius: 9px; padding: 11px 17px; background: #d95757; color: #fff; font-weight: 700; }

@keyframes official-dialog-enter { from { opacity: 0; transform: translateY(8px) scale(.98); } }

@media (prefers-reduced-motion: reduce) { .official-account-dialog[open] { animation: none; } }
@media (max-width: 1180px) { .official-account-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .review-management-tabs { width: 100%; }
  .review-management-tabs button { flex: 1; }
  .official-account-hero { align-items: flex-start; flex-direction: column; padding: 22px; }
  .official-account-summary { width: 100%; justify-items: start; }
  .official-account-search { align-items: stretch; flex-direction: column; }
  .official-account-search label { min-width: 0; }
  .official-account-list { grid-template-columns: 1fr; gap: 12px; }
}
