﻿:root {
  --bg: #f4f7fb;
  --panel: #ffffff;
  --ink: #1f2937;
  --muted: #667085;
  --line: #d8e0eb;
  --accent: #1463ff;
  --accent-2: #02a88a;
  --danger: #d92d20;
  --warning: #b65c00;
  --good: #087443;
  --sidebar: #162033;
  --sidebar-ink: #edf2f7;
  --shadow: 0 20px 45px rgba(31, 41, 55, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--bg);
  font-family:
    Inter, "Segoe UI", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

body.auth-locked {
  overflow: hidden;
}

button,
input,
select {
  font: inherit;
}

.app-shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
}

.app-shell.app-locked {
  display: none;
}

.login-screen {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(20, 99, 255, 0.10), rgba(2, 168, 138, 0.08)),
    var(--bg);
}

.login-screen[hidden] {
  display: none;
}

.login-panel {
  display: grid;
  gap: 24px;
  width: min(520px, 100%);
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.login-brand strong,
.login-brand span {
  display: block;
}

.login-brand span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.login-copy {
  display: grid;
  gap: 8px;
}

.login-copy h1 {
  font-size: 30px;
}

.login-copy p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.login-form {
  display: grid;
  gap: 12px;
}

.login-form label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.login-form select,
.login-form .primary-btn {
  width: 100%;
  min-height: 44px;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
  height: 100vh;
  padding: 24px 18px;
  color: var(--sidebar-ink);
  background: var(--sidebar);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  color: white;
  background: linear-gradient(135deg, #1463ff, #02a88a);
  font-weight: 800;
}

.brand-lockup strong,
.brand-lockup span {
  display: block;
}

.brand-lockup span {
  margin-top: 2px;
  color: #b9c2d0;
  font-size: 12px;
}

.nav-list {
  display: grid;
  gap: 8px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  color: #ccd6e5;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.nav-item:hover,
.nav-item.active {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

.icon {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.11);
  font-size: 13px;
}

.sidebar-footer {
  margin-top: auto;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.sidebar-footer span,
.sidebar-footer strong {
  display: block;
}

.sidebar-footer span {
  color: #b9c2d0;
  font-size: 12px;
}

.sidebar-footer strong {
  margin-top: 5px;
}

.main-content {
  display: grid;
  gap: 22px;
  padding: 28px;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: 28px;
  line-height: 1.2;
}

h2 {
  font-size: 17px;
}

.topbar-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

select,
input {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
}

select {
  min-width: 136px;
  padding: 0 34px 0 12px;
}

input {
  width: 260px;
  padding: 0 12px;
}

.primary-btn {
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  color: white;
  background: var(--accent);
  cursor: pointer;
}

.primary-btn:hover {
  background: #0c54dd;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.metric-card,
.panel {
  border: 1px solid rgba(216, 224, 235, 0.9);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.metric-card {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.metric-card span,
.metric-card small {
  color: var(--muted);
}

.metric-card strong {
  font-size: 30px;
  line-height: 1.08;
}

.metric-card small.up {
  color: var(--good);
}

.metric-card small.down {
  color: var(--danger);
}

.alert-card strong {
  color: var(--danger);
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(320px, 0.9fr);
  gap: 18px;
}

.bottom-grid {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
}

.panel {
  min-width: 0;
  padding: 18px;
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.legend {
  display: flex;
  gap: 14px;
  color: var(--muted);
  font-size: 13px;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.line {
  width: 22px;
  height: 3px;
  border-radius: 999px;
}

.line.followers {
  background: var(--accent);
}

.line.interactions {
  background: var(--accent-2);
}

canvas {
  width: 100%;
  height: 320px;
}

.brand-list,
.alert-list,
.rule-list {
  display: grid;
  gap: 12px;
}

.brand-row {
  display: grid;
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.brand-row:last-child {
  border-bottom: 0;
}

.brand-row-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.brand-row-top strong,
.brand-row-top span {
  overflow-wrap: anywhere;
}

.brand-row-top span {
  color: var(--muted);
  font-size: 13px;
}

.progress {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf1f6;
}

.progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.account-panel {
  padding-bottom: 0;
}

.table-wrap {
  overflow-x: auto;
  margin: 0 -18px;
}

table {
  width: 100%;
  min-width: 840px;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

th {
  color: var(--muted);
  background: #f8fafc;
  font-size: 12px;
  font-weight: 700;
}

td {
  font-size: 14px;
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.status.good {
  color: var(--good);
  background: #e7f6ee;
}

.status.warning {
  color: var(--warning);
  background: #fff1db;
}

.status.danger {
  color: var(--danger);
  background: #fde8e6;
}

.alert-item {
  display: grid;
  gap: 7px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.alert-item strong {
  font-size: 14px;
}

.alert-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.rule-list label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.rule-list input {
  width: 16px;
  min-height: 16px;
}

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

  .trend-panel {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
  }

  .nav-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topbar {
    display: grid;
  }

  .topbar-actions {
    justify-content: stretch;
  }

  select,
  input,
  .primary-btn,
  .search-wrap {
    width: 100%;
  }

  .summary-grid,
  .workspace-grid,
  .bottom-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .main-content {
    padding: 18px;
  }

  h1 {
    font-size: 23px;
  }

  .metric-card strong {
    font-size: 25px;
  }

  .panel-heading {
    display: grid;
  }
}

.hot-card strong {
  color: #b65c00;
}

.pill-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill-tabs span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: #f8fafc;
  font-size: 12px;
  font-weight: 700;
}

.viral-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.viral-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  overflow: hidden;
  min-height: 196px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.viral-cover {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px;
  color: white;
  background: linear-gradient(145deg, #1463ff, #02a88a);
}

.viral-card.beauty .viral-cover {
  background: linear-gradient(145deg, #bc4d7b, #6f5cff);
}

.viral-card.medical .viral-cover {
  background: linear-gradient(145deg, #087443, #1463ff);
}

.viral-card.food .viral-cover {
  background: linear-gradient(145deg, #b65c00, #02a88a);
}

.viral-card.tech .viral-cover {
  background: linear-gradient(145deg, #162033, #1463ff);
}

.viral-cover span {
  font-size: 13px;
  font-weight: 800;
}

.viral-cover strong {
  font-size: 38px;
  line-height: 1;
}

.viral-body {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 14px;
}

.viral-meta {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.viral-body h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.38;
}

.viral-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.viral-stats span {
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  color: var(--muted);
  background: #edf1f6;
  font-size: 12px;
  font-weight: 700;
}

.viral-body p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.secondary-btn,
.close-btn {
  border: 0;
  cursor: pointer;
}

.secondary-btn {
  justify-self: start;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  color: white;
  background: var(--ink);
}

.secondary-btn:hover {
  background: #111827;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.54);
}

.modal-backdrop.open {
  display: flex;
}

.content-modal {
  position: relative;
  width: min(1040px, 100%);
  max-height: 92vh;
  overflow: auto;
  border-radius: 8px;
  background: white;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.32);
}

.close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  font-size: 26px;
  line-height: 1;
}

.modal-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 26px 58px 26px 24px;
  color: white;
  background: linear-gradient(145deg, #1463ff, #02a88a);
}

.modal-hero .eyebrow {
  color: rgba(255, 255, 255, 0.82);
}

.modal-hero h2 {
  max-width: 760px;
  font-size: 24px;
  line-height: 1.35;
}

.modal-hero.beauty {
  background: linear-gradient(145deg, #bc4d7b, #6f5cff);
}

.modal-hero.medical {
  background: linear-gradient(145deg, #087443, #1463ff);
}

.modal-hero.food {
  background: linear-gradient(145deg, #b65c00, #02a88a);
}

.modal-hero.tech {
  background: linear-gradient(145deg, #162033, #1463ff);
}

.score-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-weight: 800;
  white-space: nowrap;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  padding: 16px 18px 0;
}

.metrics-six {
  padding-top: 10px;
}

.detail-card {
  display: grid;
  gap: 5px;
  min-height: 72px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.detail-card span {
  color: var(--muted);
  font-size: 12px;
}

.detail-card strong {
  overflow-wrap: anywhere;
  font-size: 15px;
}

.modal-section {
  padding: 18px;
}

.modal-section h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

.modal-section p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.6;
}

.modal-table {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
}

.two-col article {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

@media (max-width: 820px) {
  .viral-card {
    grid-template-columns: 1fr;
  }

  .viral-cover {
    min-height: 100px;
  }

  .detail-grid,
  .two-col {
    grid-template-columns: 1fr;
  }

  .modal-hero {
    display: grid;
    padding-right: 58px;
  }
}
.account-intake-panel {
  border-left: 4px solid var(--accent);
}

.account-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 10px;
}

.account-form input,
.account-form select {
  width: 100%;
  min-width: 0;
}

.account-form .primary-btn {
  min-width: 120px;
}

.intake-log {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.intake-empty,
.intake-item {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.intake-empty {
  color: var(--muted);
  font-size: 13px;
}

.intake-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.intake-item strong {
  font-size: 13px;
}

.intake-item span {
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.text-btn {
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--danger);
  background: #fff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.text-btn:hover {
  background: #fde8e6;
}

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

@media (max-width: 820px) {
  .account-form,
  .intake-item {
    grid-template-columns: 1fr;
  }

  .intake-item {
    display: grid;
  }

  .intake-item span {
    text-align: left;
  }
}
.owner-pie-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  min-height: 260px;
}

.pie-chart {
  position: relative;
  display: grid;
  width: min(240px, 100%);
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(31, 41, 55, 0.08);
}

.pie-chart::after {
  position: absolute;
  inset: 24%;
  content: "";
  border-radius: 50%;
  background: white;
  box-shadow: 0 10px 24px rgba(31, 41, 55, 0.12);
}

.pie-chart div {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  gap: 4px;
  text-align: center;
}

.pie-chart strong {
  font-size: 24px;
  line-height: 1;
}

.pie-chart span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.pie-legend {
  display: grid;
  gap: 10px;
}

.pie-legend-row {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.pie-legend-row:last-child {
  border-bottom: 0;
}

.pie-legend-row i {
  width: 12px;
  height: 12px;
  margin-top: 4px;
  border-radius: 4px;
}

.pie-legend-row strong,
.pie-legend-row span {
  display: block;
  overflow-wrap: anywhere;
}

.pie-legend-row span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 820px) {
  .owner-pie-layout {
    grid-template-columns: 1fr;
  }

  .pie-chart {
    justify-self: center;
  }
}
.sidebar {
  overflow-y: auto;
}

.sidebar-intake {
  display: grid;
  gap: 12px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  transition: max-height 0.22s ease, opacity 0.18s ease, padding 0.18s ease, border-color 0.18s ease;
}

.sidebar-intake.open {
  max-height: 760px;
  opacity: 1;
  padding: 12px 10px;
  border-color: rgba(255, 255, 255, 0.12);
}

.sidebar-intake-head {
  display: grid;
  gap: 3px;
}

.sidebar-intake-head strong {
  color: white;
  font-size: 14px;
}

.sidebar-intake-head span {
  color: #b9c2d0;
  font-size: 12px;
}

.sidebar-intake .account-form {
  grid-template-columns: 1fr;
  gap: 8px;
}

.sidebar-intake .account-form select,
.sidebar-intake .account-form input,
.sidebar-intake .account-form .primary-btn {
  width: 100%;
  min-width: 0;
}

.sidebar-intake .account-form select,
.sidebar-intake .account-form input {
  min-height: 36px;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.92);
}

.sidebar-intake .intake-log {
  margin-top: 0;
}

.sidebar-intake .intake-empty,
.sidebar-intake .intake-item {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
}

.sidebar-intake .intake-empty,
.sidebar-intake .intake-item span {
  color: #b9c2d0;
}

.sidebar-intake .intake-item {
  display: grid;
}

.sidebar-intake .intake-item strong {
  color: white;
}

@media (max-width: 820px) {
  .sidebar-intake.open {
    max-height: none;
  }
}
.page-hidden {
  display: none;
}

.main-content.entry-mode > :not(#accountEntryPage) {
  display: none;
}

.main-content.entry-mode {
  align-content: start;
}

.main-content.entry-mode #accountEntryPage {
  display: grid;
}

.account-entry-page {
  min-height: calc(100vh - 56px);
  align-content: start;
  gap: 18px;
  padding-bottom: 18px;
}

.entry-page-heading {
  align-items: center;
}

.entry-page-body {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.65fr);
  gap: 16px;
}

.entry-page-form {
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.entry-page-form .primary-btn {
  min-width: 140px;
}

.auth-bind-btn {
  min-height: 40px;
  border-radius: 8px;
}

.entry-help {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.entry-help strong {
  font-size: 15px;
}

.entry-help p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.auth-bind-status {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #f8fafc;
  font-size: 13px;
  line-height: 1.5;
}

.auth-bind-status.success {
  color: var(--good);
  border-color: rgba(8, 116, 67, 0.22);
  background: #e7f6ee;
}

.auth-bind-status.failed {
  color: var(--danger);
  border-color: rgba(217, 45, 32, 0.22);
  background: #fde8e6;
}

.oauth-chip {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  margin-left: 6px;
  padding: 0 7px;
  border-radius: 999px;
  color: var(--good);
  background: #e7f6ee;
  font-size: 11px;
  font-weight: 800;
}

.entry-log-section {
  display: grid;
  gap: 12px;
}

.compact-heading {
  margin-bottom: 0;
}

@media (max-width: 1120px) {
  .entry-page-body,
  .entry-page-form {
    grid-template-columns: 1fr;
  }
}
.page-section {
  display: none;
}

.page-section.active {
  display: grid;
  gap: 22px;
}
.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.9fr);
  gap: 18px;
}

.secondary-overview-grid {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
}

.overview-brand-rank,
.overview-focus-list,
.overview-list {
  display: grid;
  gap: 12px;
}

.overview-rank-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) minmax(120px, auto);
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.rank-index {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  color: white;
  background: var(--accent);
  font-weight: 800;
}

.overview-rank-row.risk .rank-index {
  background: var(--warning);
}

.rank-main {
  display: grid;
  gap: 8px;
}

.rank-title {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.rank-title span {
  color: var(--muted);
  font-weight: 800;
}

.rank-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf1f6;
}

.rank-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.rank-meta {
  display: grid;
  justify-items: end;
  gap: 4px;
}

.rank-meta strong {
  font-size: 18px;
}

.rank-meta span,
.overview-mini-row span,
.overview-focus-item p {
  color: var(--muted);
  font-size: 13px;
}

.overview-focus-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.overview-focus-item > span {
  display: inline-grid;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  color: var(--accent);
  background: #edf3ff;
  font-size: 12px;
  font-weight: 800;
}

.overview-focus-item strong,
.overview-focus-item p {
  display: block;
  margin: 0;
  overflow-wrap: anywhere;
}

.overview-focus-item p {
  margin-top: 4px;
  line-height: 1.5;
}

.overview-mini-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(110px, auto);
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.overview-mini-row:last-child {
  border-bottom: 0;
}

.overview-mini-row strong,
.overview-mini-row span {
  display: block;
  overflow-wrap: anywhere;
}

.overview-mini-row span {
  margin-top: 4px;
}

.mini-value {
  display: grid;
  justify-items: end;
  gap: 7px;
}

.mini-value > span {
  display: block;
  width: 100%;
  max-width: 112px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent-2);
}

.platform-score {
  display: grid;
  min-width: 44px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  font-weight: 800;
}

.platform-score.good {
  color: var(--good);
  background: #e7f6ee;
}

.platform-score.risk {
  color: var(--warning);
  background: #fff1db;
}

@media (max-width: 1120px) {
  .overview-grid,
  .secondary-overview-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .overview-rank-row,
  .overview-mini-row {
    grid-template-columns: 1fr;
  }

  .rank-meta,
  .mini-value {
    justify-items: start;
  }
}
.overview-viral-spotlight {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.overview-viral-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  overflow: hidden;
  min-height: 220px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.viral-play-surface {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 10px;
  min-height: 100%;
  padding: 18px;
  border: 0;
  color: white;
  background: linear-gradient(145deg, #1463ff, #02a88a);
  cursor: pointer;
}

.overview-viral-card.beauty .viral-play-surface,
.modal-player.beauty {
  background: linear-gradient(145deg, #bc4d7b, #6f5cff);
}

.overview-viral-card.medical .viral-play-surface,
.modal-player.medical {
  background: linear-gradient(145deg, #087443, #1463ff);
}

.overview-viral-card.food .viral-play-surface,
.modal-player.food {
  background: linear-gradient(145deg, #b65c00, #02a88a);
}

.overview-viral-card.tech .viral-play-surface,
.modal-player.tech {
  background: linear-gradient(145deg, #162033, #1463ff);
}

.play-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  font-size: 22px;
  line-height: 1;
}

.play-icon.large {
  width: 76px;
  height: 76px;
  font-size: 32px;
}

.viral-play-surface strong {
  font-size: 18px;
}

.overview-viral-info {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 16px;
}

.viral-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.viral-meta-line span {
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  color: var(--accent);
  background: #edf3ff;
  font-size: 12px;
  font-weight: 800;
}

.overview-viral-info h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.4;
}

.overview-viral-info p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.modal-player {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 18px;
  padding: 22px;
  color: white;
}

.player-frame {
  display: grid;
  min-height: 320px;
  place-items: center;
  gap: 16px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
  text-align: center;
}

.player-frame strong,
.player-frame span {
  display: block;
}

.player-frame strong {
  max-width: 620px;
  font-size: 22px;
  line-height: 1.42;
}

.player-frame span,
.player-side p {
  color: rgba(255, 255, 255, 0.82);
}

.player-side {
  display: grid;
  align-content: center;
  gap: 12px;
}

.player-side .eyebrow {
  color: rgba(255, 255, 255, 0.78);
}

.player-side h2,
.player-side p {
  margin: 0;
}

@media (max-width: 920px) {
  .overview-viral-card,
  .modal-player {
    grid-template-columns: 1fr;
  }

  .viral-play-surface {
    min-height: 150px;
  }
}
.grade-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.grade-pill,
.grade-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.grade-badge {
  min-width: 34px;
}

.grade-S {
  color: #7c2d12;
  background: #ffedd5;
}

.grade-A {
  color: var(--good);
  background: #e7f6ee;
}

.grade-B {
  color: var(--accent);
  background: #edf3ff;
}

.grade-C {
  color: var(--warning);
  background: #fff1db;
}

.grade-D {
  color: var(--danger);
  background: #fde8e6;
}

.grade-待同步 {
  color: var(--muted);
  background: #edf1f6;
}
.ding-config {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.ding-config span {
  color: var(--muted);
  font-size: 13px;
}

.ding-config strong {
  font-size: 14px;
}

.ding-alert-list {
  display: grid;
  gap: 12px;
}

.ding-alert-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  background: #fff7ed;
}

.ding-alert-card.sent {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.ding-alert-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ding-alert-head span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  color: #9a3412;
  background: #ffedd5;
  font-size: 12px;
  font-weight: 800;
}

.ding-alert-card.sent .ding-alert-head span {
  color: var(--good);
  background: #dcfce7;
}

.ding-alert-card h3,
.ding-alert-card p {
  margin: 0;
}

.ding-alert-card h3 {
  font-size: 16px;
  line-height: 1.4;
}

.ding-alert-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.ding-alert-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ding-alert-meta span {
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  color: var(--accent);
  background: #edf3ff;
  font-size: 12px;
  font-weight: 800;
}

.ding-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ding-actions .primary-btn:disabled {
  cursor: default;
  background: #98a2b3;
}
.base-comment-list {
  display: grid;
  gap: 12px;
}

.base-comment-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.base-comment-card.pending {
  border-color: #fed7aa;
  background: #fff7ed;
}

.base-comment-card.missed {
  border-color: #fecaca;
  background: #fef2f2;
}

.base-comment-card.passed {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.base-comment-card h3,
.base-comment-card p {
  margin: 0;
}

.base-comment-card h3 {
  font-size: 16px;
  line-height: 1.4;
}

.base-comment-card p,
.base-comment-message {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.base-comment-message {
  padding: 10px 12px;
  border: 1px dashed rgba(102, 112, 133, 0.36);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
}

.base-comment-card .text-btn:disabled,
.base-comment-card .primary-btn:disabled {
  cursor: default;
  opacity: 0.62;
}
.brand-entry-page {
  border-top: 4px solid #10b981;
}

.brand-entry-body .brand-entry-form {
  grid-template-columns: repeat(2, minmax(180px, 1fr));
}

.brand-entry-form .primary-btn {
  grid-column: span 2;
  min-height: 44px;
}

.brand-entry-help {
  border-color: rgba(16, 185, 129, 0.24);
  background: linear-gradient(135deg, rgba(236, 253, 245, 0.96), rgba(240, 253, 250, 0.78));
}

.brand-intake-item strong {
  color: #065f46;
}

@media (max-width: 820px) {
  .brand-entry-body .brand-entry-form,
  .brand-entry-form .primary-btn {
    grid-template-columns: 1fr;
    grid-column: auto;
  }
}
.platform-status-cell {
  min-width: 260px;
  white-space: normal;
}

.platform-status-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.platform-status-card {
  display: grid;
  gap: 5px;
  min-width: 122px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.platform-status-card strong {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
}

.platform-status-card b {
  min-width: 26px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #0f172a;
  background: #ffffff;
  font-size: 12px;
}

.platform-status-card > span {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.platform-status-card.good {
  border-color: rgba(24, 138, 90, 0.22);
  background: #f0fdf4;
}

.platform-status-card.warning {
  border-color: rgba(217, 119, 6, 0.28);
  background: #fffbeb;
}

.platform-status-card.danger {
  border-color: rgba(220, 38, 38, 0.3);
  background: #fef2f2;
}

.platform-status-card.pending {
  border-color: rgba(100, 116, 139, 0.24);
  background: #f1f5f9;
}

.platform-status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.platform-status-chip.good {
  color: var(--good);
  background: #dff7eb;
}

.platform-status-chip.warning {
  color: var(--warning);
  background: #fff1db;
}

.platform-status-chip.danger {
  color: var(--danger);
  background: #fde8e6;
}

.platform-empty {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  color: var(--muted);
  background: #edf1f6;
  font-size: 12px;
  font-weight: 800;
}
.platform-status-chip.pending {
  color: var(--muted);
  background: #e5eaf0;
}

.team-viral-cell {
  min-width: 260px;
  white-space: normal;
}

.team-viral-links {
  display: grid;
  gap: 7px;
}

.team-viral-link {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 7px 8px;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 8px;
  background: #f8fbff;
}

.team-viral-link span {
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  padding: 0 7px;
  border-radius: 999px;
  color: var(--accent);
  background: #edf3ff;
  font-size: 12px;
  font-weight: 800;
}

.team-viral-link a {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.team-viral-link a:hover {
  text-decoration: underline;
}

.text-btn.mini {
  min-height: 24px;
  padding: 0 7px;
  font-size: 12px;
}

.viral-link-empty {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  color: var(--muted);
  background: #edf1f6;
  font-size: 12px;
  font-weight: 800;
}
.brand-viral-panel {
  margin-top: 18px;
}

.brand-viral-list {
  display: grid;
  gap: 12px;
}

.brand-viral-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.brand-viral-score {
  display: grid;
  place-items: center;
  gap: 2px;
  width: 62px;
  height: 62px;
  border-radius: 8px;
  color: #7c2d12;
  background: #ffedd5;
}

.brand-viral-score strong {
  font-size: 26px;
  line-height: 1;
}

.brand-viral-score span {
  font-size: 11px;
  font-weight: 800;
}

.brand-viral-main {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.brand-viral-main h3 {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.35;
}

.brand-viral-main p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.brand-viral-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.brand-viral-actions a {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 999px;
  color: var(--accent);
  background: #edf3ff;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.brand-viral-actions a:hover {
  text-decoration: underline;
}

.brand-viral-empty {
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #f8fafc;
  font-weight: 700;
}

@media (max-width: 820px) {
  .brand-viral-item {
    grid-template-columns: 1fr;
  }

  .brand-viral-actions {
    justify-content: flex-start;
  }
}
.auth-widget {
  display: grid;
  grid-template-columns: auto minmax(150px, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.auth-badge {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  color: #075985;
  background: #e0f2fe;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.auth-scope {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.ding-login-btn {
  min-height: 32px;
  padding: 0 10px;
  white-space: nowrap;
}

.backend-widget {
  display: grid;
  gap: 4px;
  min-height: 50px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.backend-widget strong {
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  width: max-content;
  padding: 0 8px;
  border-radius: 999px;
  color: var(--warning);
  background: #fff1db;
  font-size: 12px;
  font-weight: 800;
}

.backend-widget strong.online {
  color: var(--good);
  background: #e7f6ee;
}

.backend-widget strong.offline {
  color: var(--danger);
  background: #fde8e6;
}

.backend-widget span {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.permission-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(20, 99, 255, 0.16);
  border-radius: 8px;
  background: #f8fbff;
}

.permission-banner div {
  display: grid;
  gap: 4px;
}

.permission-banner strong {
  font-size: 14px;
}

.permission-banner span,
.permission-banner small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.permission-banner small {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  color: var(--accent);
  background: #edf3ff;
  font-weight: 800;
  white-space: nowrap;
}

@media (max-width: 920px) {
  .auth-widget {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .backend-widget {
    width: 100%;
  }

  .permission-banner {
    display: grid;
  }
}
