:root {
  --bg: #f6f7fb;
  --panel: #ffffff;
  --text: #1f2440;
  --muted: #6b7280;
  --line: #e7eaf3;
  --primary: #3056d3;
  --primary-soft: #eef3ff;
  --success: #0f9f6e;
  --danger: #d64545;
  --shadow: 0 18px 40px rgba(41, 58, 114, 0.08);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: linear-gradient(180deg, #f8f9fd 0%, #f3f5fb 100%);
  color: var(--text);
  font: 14px/1.6 "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

a { color: inherit; text-decoration: none; }

.app-shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  padding: 28px 20px;
  border-right: 1px solid var(--line);
  background: #fbfcff;
}

.brand-box {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 28px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  background: linear-gradient(135deg, #2048d8, #6d50ff);
}

.brand-box h2 {
  margin: 0;
  font-size: 18px;
}

.brand-box p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.sidebar-nav {
  display: grid;
  gap: 8px;
}

.nav-link {
  padding: 12px 14px;
  border-radius: 12px;
  color: #46506a;
  transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 600;
}

.nav-group {
  display: grid;
  gap: 6px;
}

.nav-group-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  color: #46506a;
  cursor: pointer;
  list-style: none;
  transition: 0.2s ease;
}

.nav-group-summary::-webkit-details-marker {
  display: none;
}

.nav-group-summary::marker {
  content: '';
}

.nav-group-summary:hover,
.nav-group.is-active .nav-group-summary,
.nav-group[open] .nav-group-summary {
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 600;
}

.nav-group-arrow {
  font-size: 18px;
  line-height: 1;
  transition: transform 0.2s ease;
}

.nav-group[open] .nav-group-arrow {
  transform: rotate(90deg);
}

.nav-submenu {
  display: grid;
  gap: 6px;
  padding: 2px 0 4px 14px;
}

.nav-sublink {
  display: block;
  padding: 10px 14px;
  border-radius: 10px;
  color: #64708a;
  font-size: 13px;
  transition: 0.2s ease;
}

.nav-sublink:hover,
.nav-sublink.is-active {
  background: #eef3ff;
  color: var(--primary);
  font-weight: 600;
}

.main-panel {
  padding: 28px;
}

.topbar {
  margin-bottom: 22px;
}

.topbar h1 {
  margin: 0;
  font-size: 26px;
}

.topbar p {
  margin: 6px 0 0;
  color: var(--muted);
}

.page-body {
  display: grid;
  gap: 20px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.card-title {
  margin: 0 0 14px;
  font-size: 18px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 20px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.metric {
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
  border: 1px solid var(--line);
}

.metric .label {
  color: var(--muted);
  font-size: 13px;
}

.metric .value {
  margin-top: 8px;
  font-size: 28px;
  font-weight: 700;
}

.form-grid {
  display: grid;
  gap: 16px;
}

.form-grid.columns-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #d9dfec;
  border-radius: 14px;
  padding: 12px 14px;
  font: inherit;
  background: #fff;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.checkbox-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.checkbox-item {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid #d9dfec;
  background: #fff;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 12px;
}

.platform-card {
  position: relative;
  min-height: 74px;
  padding: 16px 18px;
  border-radius: 22px;
  border: 1px solid #dbe2f3;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 10px 24px rgba(43, 63, 122, 0.05);
  cursor: pointer;
  transition: 0.2s ease;
}

.platform-card:hover {
  border-color: #a9baf4;
  box-shadow: 0 14px 28px rgba(43, 63, 122, 0.1);
  transform: translateY(-1px);
}

.platform-checkbox {
  appearance: none;
  -webkit-appearance: none;
  position: absolute;
  top: 12px;
  right: 12px;
  width: 18px;
  height: 18px;
  margin: 0;
  border: 1.5px solid #bac6e8;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  transition: 0.2s ease;
}

.platform-checkbox:checked {
  border-color: #2f5fe3;
  background: linear-gradient(135deg, #2f5fe3, #5d6bff);
  box-shadow: 0 6px 12px rgba(47, 95, 227, 0.28);
}

.platform-checkbox:checked::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.platform-option {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-right: 26px;
  min-width: 0;
  font-weight: 600;
  color: #1f2440;
  line-height: 1.2;
}

.platform-option-icon {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  object-fit: contain;
  background: #fff;
  flex: 0 0 26px;
}

.platform-card:has(.platform-checkbox:checked) {
  border-color: #5f77f0;
  background: linear-gradient(180deg, #f7f9ff 0%, #eef3ff 100%);
  box-shadow: 0 16px 30px rgba(53, 92, 219, 0.14);
}

.platform-card:has(.platform-checkbox:checked) .platform-option {
  color: #2448d8;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  border: 0;
  border-radius: 14px;
  padding: 11px 18px;
  font: inherit;
  cursor: pointer;
  transition: 0.2s ease;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #2448d8, #6d50ff);
}

.btn-secondary {
  color: var(--primary);
  background: var(--primary-soft);
}

.btn:hover {
  transform: translateY(-1px);
}

.table-wrap {
  overflow: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.table th {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}

.tag {
  display: inline-block;
  flex: 0 0 auto;
  width: fit-content;
  max-width: 100%;
  padding: 7px 11px;
  border-radius: 14px;
  background: #eef3ff;
  color: var(--primary);
  font-size: 12px;
  line-height: 1.45;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: keep-all;
  vertical-align: top;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
}

.badge-success { background: #e9fbf4; color: var(--success); }
.badge-danger { background: #fff0f0; color: var(--danger); }
.badge-muted { background: #f1f3f8; color: var(--muted); }

.empty {
  padding: 28px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed #d7dcea;
  border-radius: 16px;
}

.geo-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  min-width: 220px;
  max-width: 360px;
  border-radius: 14px;
  padding: 12px 14px;
  color: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: 0.25s ease;
  z-index: 99;
}

.geo-toast.is-show {
  opacity: 1;
  transform: translateY(0);
}

.geo-toast.info { background: #2f5fe3; }
.geo-toast.success { background: #0f9f6e; }
.geo-toast.error { background: #d64545; }

.chart-box {
  width: 100%;
  height: 320px;
}

.muted {
  color: var(--muted);
}

@media (max-width: 1080px) {
  .grid-2,
  .grid-4,
  .form-grid.columns-2,
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

.align-end {
  align-self: end;
}

.link-list {
  display: grid;
  gap: 6px;
}

.link-list a {
  color: var(--primary);
}

.bar-list {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

.bar-item {
  display: grid;
  gap: 8px;
}

.bar-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
}

.bar-head strong {
  color: var(--text);
}

.bar-track {
  height: 10px;
  border-radius: 999px;
  background: #edf1fb;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #2448d8, #52a7ff);
}

.btn-sm {
  padding: 8px 14px;
  border-radius: 12px;
}

.page-actions {
  display: flex;
  justify-content: flex-end;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.detail-item {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
}

.detail-label {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
}

.detail-value {
  font-weight: 600;
  word-break: break-word;
}

.license-status-panel {
  display: grid;
  gap: 10px;
  margin: 18px 0;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #f8faff;
}

.license-key-input {
  min-height: 180px;
  font-family: Consolas, Monaco, monospace;
}

.license-detail-grid {
  margin-bottom: 16px;
}

.license-error-note {
  margin-top: 14px;
  border-color: #ffd0d0;
  background: #fff4f4;
  color: #b42323;
}

.detail-block {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfcff;
  word-break: break-word;
}

.response-box {
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #0f172a;
  color: #e5eefc;
  white-space: pre-wrap;
  word-break: break-word;
  font: 13px/1.7 Consolas, Monaco, monospace;
}

@media (max-width: 1080px) {
  .detail-grid {
    grid-template-columns: 1fr;
  }
}
.modal-open {
  overflow: hidden;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.52);
}

.modal-overlay[hidden] {
  display: none !important;
}

.modal-card {
  width: min(960px, 100%);
  max-height: 86vh;
  overflow: auto;
  background: #fff;
  border-radius: 24px;
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px rgba(20, 34, 74, 0.22);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px 0;
}

.modal-head h3 {
  margin: 0;
  font-size: 20px;
}

.modal-close {
  border: 0;
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: 12px;
  padding: 8px 14px;
  cursor: pointer;
}

.modal-body {
  padding: 20px 24px 24px;
  display: grid;
  gap: 16px;
}

.dialog-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.chat-thread {
  display: grid;
  gap: 14px;
}

.chat-bubble {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
}

.chat-user {
  background: #f6f8ff;
}

.chat-ai {
  background: #f8fbff;
}

.chat-role {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.chat-text {
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.8;
}

.chat-links {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.chat-links a {
  color: var(--primary);
  word-break: break-all;
}

@media (max-width: 1080px) {
  .detail-grid,
  .dialog-meta-grid {
    grid-template-columns: 1fr;
  }

  .modal-overlay {
    padding: 12px;
  }
}
.notice {
  padding: 14px 16px;
  border-radius: 16px;
  background: #f7f9ff;
  border: 1px solid #dfe6ff;
  color: #46506a;
}

.share-report-body {
  min-height: 100vh;
  background: #ffffff;
  color: #fff;
}

.share-report-shell {
  width: min(1440px, calc(100% - 40px));
  margin: 28px auto 40px;
  display: grid;
  gap: 20px;
}

.share-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 34px;
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgb(169 185 255 / 34%), rgba(20, 44, 108, 0.18)),
    radial-gradient(circle at 78% 34%, rgba(120, 202, 255, 0.12), transparent 18%),
    url('/assets/images/banner.png') center/cover no-repeat;
  box-shadow: 0 28px 70px rgba(7, 12, 49, 0.42);
}

.share-hero::after {
  content: none;
}

.share-hero-copy,
.share-hero-actions {
  position: relative;
  z-index: 1;
}

.share-eyebrow {
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
  letter-spacing: 0.08em;
}

.share-hero h1 {
  margin: 14px 0 10px;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.1;
}

.share-hero p,
.share-meta {
  margin: 0;
  max-width: 620px;
  color: rgba(255, 255, 255, 0.84);
}

.share-meta {
  margin-top: 18px;
  font-size: 13px;
}

.share-hero-actions {
  display: flex;
  align-items: flex-start;
}

.share-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.share-stat-card,
.share-panel,
.share-footer-note {
  color: var(--text);
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(227, 233, 247, 0.9);
  box-shadow: 0 18px 40px rgba(9, 14, 52, 0.22);
}

.share-stat-card {
  padding: 24px;
  border-radius: 24px;
}

.share-stat-button {
  width: 100%;
  display: block;
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.share-stat-button:hover {
  transform: translateY(-2px);
  border-color: rgba(74, 105, 255, 0.35);
  box-shadow: 0 22px 46px rgba(20, 38, 96, 0.18);
}

.share-stat-label {
  color: var(--muted);
  font-size: 13px;
}

.share-stat-value {
  margin-top: 10px;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
}

.share-stat-note {
  margin-top: 8px;
  color: #5e6885;
  font-size: 12px;
}

.share-panel-grid {
  display: grid;
  grid-template-columns: 420px minmax(0, 1fr);
  gap: 20px;
}

.share-panel {
  padding: 24px;
  border-radius: 28px;
}

.share-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.share-panel-head h3 {
  margin: 0;
  font-size: 22px;
}

.share-panel-head span {
  color: var(--muted);
  font-size: 13px;
}

.share-donut-block {
  display: grid;
  gap: 22px;
}

.share-donut-ring {
  width: min(280px, 100%);
  aspect-ratio: 1;
  margin: 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(#e6ebff 0deg 360deg);
}

.share-donut-hole {
  width: 58%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 20px;
}

.share-donut-hole strong {
  display: block;
  font-size: 34px;
}

.share-donut-hole span {
  color: var(--muted);
  font-size: 12px;
}

.share-legend {
  display: grid;
  gap: 10px;
}

.share-legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #334155;
}

.share-legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  flex: 0 0 auto;
}

.share-bar-list {
  display: grid;
  gap: 16px;
  padding-top: 6px;
}

.share-bar-item {
  display: grid;
  gap: 8px;
}

.share-bar-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #475569;
}

.share-bar-top strong {
  color: var(--text);
}

.share-bar-track {
  height: 14px;
  border-radius: 999px;
  background: #edf1fb;
  overflow: hidden;
}

.share-bar-fill {
  height: 100%;
  min-width: 10px;
  border-radius: 999px;
}

.share-table-panel {
  padding-bottom: 12px;
}

.share-table-head {
  align-items: center;
}

.share-table-toolbar {
  display: grid;
  gap: 12px;
  justify-items: end;
}

.share-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.share-chip {
  border: 1px solid #d7dff6;
  background: #f8faff;
  color: #50607a;
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  transition: 0.2s ease;
}

.share-chip.is-active {
  background: linear-gradient(135deg, #2448d8, #6d50ff);
  border-color: transparent;
  color: #fff;
}

.share-search-box input {
  width: 260px;
  border: 1px solid #d9dfec;
  border-radius: 14px;
  padding: 12px 14px;
  font: inherit;
}

.share-keyword-table td,
.share-keyword-table th {
  white-space: nowrap;
}

.share-action-link {
  border: 0;
  background: transparent;
  color: var(--primary);
  font: inherit;
  cursor: pointer;
}

.share-action-link:hover {
  text-decoration: underline;
}

.share-footer-note {
  padding: 18px 22px;
  border-radius: 22px;
  color: #556074;
  font-size: 13px;
}

.share-empty-inline {
  color: var(--muted);
}

.share-modal-card {
  width: min(1080px, 100%);
  color: var(--text);
}

.share-keyword-modal-card {
  width: min(720px, 100%);
  color: var(--text);
}

.share-primary-keyword-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  max-height: min(62vh, 520px);
  overflow: auto;
  padding-right: 4px;
}

.share-primary-keyword-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid #dde6fb;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  color: #13213d;
}

.share-primary-keyword-index {
  flex: 0 0 auto;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
}

.share-primary-keyword-text {
  min-width: 0;
  line-height: 1.55;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.share-primary-keyword-empty {
  padding: 24px;
  border: 1px dashed #dbe4f7;
  border-radius: 14px;
  color: var(--muted);
  text-align: center;
  background: #fbfdff;
}

.share-modal-section {
  display: grid;
  gap: 14px;
}

.share-response-box {
  margin-top: 10px;
}

@media (max-width: 1200px) {
  .share-panel-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1080px) {
  .share-report-shell {
    width: min(100%, calc(100% - 24px));
    margin: 12px auto 24px;
  }

  .share-hero,
  .share-metrics,
  .share-table-head {
    grid-template-columns: 1fr;
  }

  .share-hero {
    flex-direction: column;
    padding: 24px;
  }

  .share-hero::after {
    right: -20px;
    top: 40px;
    width: 180px;
    height: 180px;
  }

  .share-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .share-table-toolbar,
  .share-filter-chips {
    justify-items: stretch;
    justify-content: flex-start;
  }

  .share-search-box input {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .share-metrics {
    grid-template-columns: 1fr;
  }

  .share-panel,
  .share-stat-card {
    padding: 18px;
  }
}
.share-chip {
  color: var(--chip-color, #4f5d78);
  border-color: color-mix(in srgb, var(--chip-color, #4f5d78) 28%, white);
  background: color-mix(in srgb, var(--chip-color, #4f5d78) 8%, white);
}

.share-chip.is-active {
  color: #fff;
  background: var(--chip-color, #3056d3);
  border-color: transparent;
}

.share-platform-name {
  font-weight: 700;
}

.share-vertical-chart {
  display: grid;
  grid-template-columns: repeat(8, minmax(68px, 1fr));
  gap: 14px;
  align-items: end;
  min-height: 320px;
  padding-top: 14px;
}

.share-vertical-item {
  display: grid;
  gap: 10px;
  align-self: end;
}

.share-vertical-value {
  text-align: center;
  font-weight: 700;
  font-size: 14px;
}

.share-vertical-track {
  height: 220px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 10px 12px 0;
  border-radius: 20px 20px 10px 10px;
  background: linear-gradient(180deg, #f8fbff 0%, #edf2fd 100%);
}

.share-vertical-fill {
  width: 100%;
  min-height: 4px;
  border-radius: 16px 16px 6px 6px;
  transition: height 0.25s ease;
}

.share-vertical-label {
  text-align: center;
  font-weight: 700;
  font-size: 13px;
  word-break: break-word;
}

@media (max-width: 1080px) {
  .share-vertical-chart {
    grid-template-columns: repeat(4, minmax(68px, 1fr));
  }
}

@media (max-width: 720px) {
  .share-vertical-chart {
    grid-template-columns: repeat(2, minmax(68px, 1fr));
    min-height: auto;
  }
}

.share-donut-block {
  justify-items: center;
}

.share-donut-ring {
  width: min(320px, 100%);
  box-shadow: inset 0 0 0 1px rgba(91, 143, 249, 0.08);
}

.share-legend {
  width: 100%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 18px;
}

.share-legend-item {
  align-items: flex-start;
  padding: 4px 0;
}

.share-legend-copy {
  display: grid;
  gap: 2px;
}

.share-legend-name {
  color: var(--text);
  font-size: 13px;
  line-height: 1.2;
}

.share-legend-percent {
  font-size: 13px;
  line-height: 1.2;
}

@media (max-width: 720px) {
  .share-legend {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.toolbar-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.card-subtitle {
  margin: -6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.metric-compact {
  min-width: 140px;
  padding: 16px 18px;
}

.metric-compact .value {
  font-size: 22px;
}

.table-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-danger {
  color: #fff;
  background: linear-gradient(135deg, #d64545, #f97316);
}
.platform-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.platform-option-icon {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  object-fit: contain;
  background: #fff;
  flex: 0 0 18px;
}
.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.platform-tile {
  display: block;
  cursor: pointer;
}

.platform-tile-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.platform-tile-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 74px;
  padding: 16px 18px;
  border-radius: 22px;
  border: 1px solid #dbe2f3;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
  box-shadow: 0 10px 24px rgba(43, 63, 122, 0.05);
  transition: 0.2s ease;
}

.platform-tile:hover .platform-tile-box {
  border-color: #adc0fb;
  box-shadow: 0 14px 30px rgba(43, 63, 122, 0.1);
  transform: translateY(-1px);
}

.platform-tile-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.platform-tile-icon {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  object-fit: contain;
  flex: 0 0 24px;
}

.platform-tile-name {
  color: var(--text);
  font-weight: 600;
  line-height: 1.2;
  word-break: break-word;
}

.platform-tile-check {
  position: relative;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  border-radius: 999px;
  border: 1.5px solid #c4cfea;
  background: #fff;
  transition: 0.2s ease;
}

.platform-tile-input:checked + .platform-tile-box {
  border-color: #4a68ee;
  background: linear-gradient(180deg, #f7f9ff 0%, #eef3ff 100%);
  box-shadow: 0 16px 32px rgba(53, 92, 219, 0.14);
}

.platform-tile-input:checked + .platform-tile-box .platform-tile-name {
  color: #2448d8;
}

.platform-tile-input:checked + .platform-tile-box .platform-tile-check {
  border-color: #2f5fe3;
  background: linear-gradient(135deg, #2f5fe3, #5d6bff);
  box-shadow: 0 6px 12px rgba(47, 95, 227, 0.28);
}

.platform-tile-input:checked + .platform-tile-box .platform-tile-check::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 3px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.platform-tile-input:disabled + .platform-tile-box {
  opacity: 0.58;
  cursor: not-allowed;
  box-shadow: none;
}

.platform-tile-input:disabled + .platform-tile-box .platform-tile-check {
  border-color: #d5dcec;
  background: #f4f6fb;
}

.api-config-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.api-config-item {
  padding: 20px;
  border: 1px solid #dde5f7;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 16px 34px rgba(39, 58, 113, 0.06);
}

.api-config-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.card-subsection + .card-subsection {
  margin-top: 12px;
}

.api-config-shell {
  gap: 22px;
}

.api-config-form-shell {
  gap: 22px;
}

.api-overview-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 20px;
  padding: 26px 28px;
  border-radius: 26px;
  border: 1px solid #d9e2f8;
  background:
    radial-gradient(circle at top right, rgba(92, 119, 255, 0.2), transparent 30%),
    linear-gradient(135deg, #ffffff 0%, #f2f6ff 100%);
  box-shadow: 0 22px 48px rgba(42, 63, 122, 0.08);
}

.api-overview-eyebrow {
  color: #5c6f9f;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.api-overview-copy h2 {
  margin: 10px 0 12px;
  font-size: 30px;
  line-height: 1.15;
}

.api-overview-copy p {
  margin: 0;
  max-width: 620px;
  color: #56627f;
  font-size: 15px;
}

.api-overview-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-self: end;
}

.api-overview-stat {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid #dbe4fb;
  background: rgba(255, 255, 255, 0.88);
}

.api-overview-label {
  display: block;
  color: #687691;
  font-size: 12px;
}

.api-overview-value {
  display: block;
  margin-top: 6px;
  font-size: 28px;
  font-weight: 700;
  color: #2048d8;
}

.api-overview-value.is-text {
  font-size: 18px;
  line-height: 1.3;
}

.api-section-card {
  padding: 24px;
  border-radius: 24px;
  border: 1px solid #dde5f7;
  background: #fff;
  box-shadow: 0 16px 38px rgba(40, 57, 110, 0.06);
}

.api-distill-card {
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
}

.api-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.api-section-kicker {
  margin-bottom: 8px;
  color: #6a78a1;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.api-section-head .card-title {
  margin-bottom: 8px;
}

.api-section-head .card-subtitle {
  margin: 0;
  color: #63708a;
}

.api-section-note {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: #f4f7ff;
  border: 1px solid #dbe4fb;
  color: #516080;
  font-size: 13px;
  white-space: nowrap;
}

.api-form-grid {
  align-items: start;
}

.api-config-item.is-ready {
  border-color: #cfe0ff;
  background: linear-gradient(180deg, #ffffff 0%, #f5f9ff 100%);
}

.api-config-item.is-empty {
  background: linear-gradient(180deg, #ffffff 0%, #fbfbfd 100%);
}

.api-config-platform {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.api-config-platform-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #eff3ff, #f9fbff);
  border: 1px solid #dbe4fb;
  flex: 0 0 48px;
  overflow: hidden;
  position: relative;
}

.api-config-platform-icon-wrap.is-fallback {
  background: linear-gradient(135deg, #2f5fe3, #5d6bff);
  color: #fff;
}

.api-config-platform-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.api-config-platform-fallback {
  display: none;
  font-size: 18px;
  font-weight: 700;
}

.api-config-platform-icon-wrap.is-fallback .api-config-platform-fallback {
  display: block;
}

.api-config-platform-name {
  display: block;
  font-size: 18px;
  line-height: 1.2;
}

.api-config-platform-key {
  margin-top: 4px;
  color: #72809d;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.api-platform-fields {
  gap: 14px;
}

.api-inline-metrics {
  gap: 14px;
}

.api-inline-actions {
  justify-content: flex-start;
  margin-top: 4px;
}

.api-config-actions {
  justify-content: flex-end;
}


@media (max-width: 960px) {
  .api-overview-card {
    grid-template-columns: 1fr;
  }

  .api-overview-stats {
    grid-template-columns: 1fr;
  }

  .api-config-grid {
    grid-template-columns: 1fr;
  }

  .api-section-head {
    flex-direction: column;
  }
}
.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid #dbe2f3;
  background: #fff;
  color: var(--text);
  font-weight: 600;
}

.auth-body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    radial-gradient(circle at top left, rgba(84, 102, 255, 0.24), transparent 24%),
    radial-gradient(circle at 85% 12%, rgba(117, 59, 255, 0.18), transparent 22%),
    linear-gradient(180deg, #f7f9ff 0%, #eef2fb 100%);
}

.auth-shell {
  width: min(1080px, 100%);
  display: grid;
  grid-template-columns: 1.1fr 460px;
  gap: 22px;
  align-items: stretch;
}

.auth-hero,
.auth-card {
  border-radius: 28px;
  border: 1px solid #dde5fb;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 24px 56px rgba(38, 58, 112, 0.1);
}

.auth-hero {
  padding: 36px;
  background:
    radial-gradient(circle at top right, rgba(109, 80, 255, 0.2), transparent 28%),
    linear-gradient(135deg, rgba(48, 86, 211, 0.96), rgba(109, 80, 255, 0.88));
  color: #fff;
}

.auth-eyebrow {
  font-size: 13px;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.76);
}

.auth-hero h1 {
  margin: 14px 0 16px;
  font-size: 38px;
  line-height: 1.18;
}

.auth-hero p {
  margin: 0;
  max-width: 560px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 15px;
}

.auth-card {
  padding: 32px;
  display: grid;
  gap: 18px;
}

.auth-card h2 {
  margin: 0 0 6px;
  font-size: 28px;
}

.auth-alert {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid #ffd0d0;
  background: #fff4f4;
  color: #c13535;
  font-weight: 600;
}

.auth-submit {
  min-width: 140px;
}

.auth-tip {
  padding: 14px 16px;
  border-radius: 16px;
  background: #f6f8ff;
  border: 1px solid #dfe6ff;
  color: #46506a;
}

.auth-tip code {
  padding: 2px 6px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #dfe6ff;
  font-family: Consolas, Monaco, monospace;
}

.install-shell {
  width: min(1180px, 100%);
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 22px;
  align-items: stretch;
}

.install-card {
  max-height: calc(100vh - 56px);
  overflow: auto;
}

.install-hero {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 420px;
}

.install-domain {
  margin-top: 28px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.9);
  word-break: break-word;
}

.install-section-title {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--primary);
  font-weight: 700;
}

@media (max-width: 1080px) {
  .auth-shell,
  .install-shell {
    grid-template-columns: 1fr;
  }

  .install-card {
    max-height: none;
  }
}
.keyword-list-card {
  overflow: hidden;
}

.keyword-list-toolbar {
  align-items: center;
  margin-bottom: 18px;
}

.keyword-list-stats {
  display: flex;
  align-items: stretch;
  gap: 12px;
  flex-wrap: wrap;
}

.keyword-stat-card {
  min-width: 132px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid #dfe5f6;
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  box-shadow: 0 10px 24px rgba(41, 58, 114, 0.05);
}

.keyword-stat-label {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.keyword-stat-value {
  display: block;
  margin-top: 8px;
  font-size: 24px;
  line-height: 1;
}

.keyword-scope-chip {
  min-width: 180px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid #dce4fb;
  background: linear-gradient(135deg, #eef3ff, #f7f9ff);
}

.keyword-scope-label {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.keyword-scope-chip strong {
  display: block;
  margin-top: 8px;
  color: var(--primary);
  font-size: 15px;
  word-break: break-word;
}

.keyword-card-list {
  display: grid;
  gap: 16px;
}

.keyword-item-card {
  padding: 20px;
  border-radius: 24px;
  border: 1px solid #e3e9f7;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
  box-shadow: 0 14px 30px rgba(41, 58, 114, 0.06);
}

.keyword-item-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.keyword-item-headline {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.keyword-id-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: #edf3ff;
  color: var(--primary);
  font-weight: 700;
  font-size: 12px;
}

.keyword-time-text {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.keyword-company-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #1f3fb6, #5a63ff);
  color: #fff;
  font-weight: 600;
  max-width: 280px;
  word-break: break-word;
}

.keyword-meta-grid {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
  gap: 14px;
  margin-bottom: 16px;
}

.keyword-meta-card {
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid #e4e9f7;
  background: #fff;
}

.keyword-meta-card.is-primary {
  background: linear-gradient(135deg, #f6f8ff, #eef3ff);
  border-color: #d9e2ff;
}

.keyword-meta-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.02em;
}

.keyword-meta-value {
  display: block;
  color: var(--text);
  font-size: 15px;
  line-height: 1.75;
  word-break: break-word;
}

.keyword-primary-text {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.6;
}

.keyword-distill-box {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid #e4e9f7;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.keyword-distill-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.keyword-distill-panel {
  display: block;
}

.keyword-distill-panel .keyword-distill-head {
  align-items: center;
  margin-bottom: 0;
  cursor: pointer;
  list-style: none;
}

.keyword-distill-panel .keyword-distill-head::-webkit-details-marker {
  display: none;
}

.keyword-distill-panel[open] .keyword-distill-head {
  margin-bottom: 14px;
}

.keyword-distill-title {
  display: block;
  font-size: 15px;
}

.keyword-distill-subtitle {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.keyword-distill-count {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: #edf3ff;
  color: var(--primary);
  font-weight: 700;
  font-size: 12px;
  white-space: nowrap;
}

.keyword-distill-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.keyword-distill-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  min-height: 34px;
  padding: 8px 14px;
  border: 1px solid #d7e1fb;
  border-radius: 999px;
  background: #fff;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(41, 76, 185, 0.08);
}

.keyword-distill-toggle::after {
  content: ">";
  margin-left: 8px;
  transform: rotate(90deg);
  transition: transform 0.2s ease;
}

.keyword-distill-panel[open] .keyword-distill-toggle::after {
  transform: rotate(-90deg);
}

.keyword-distill-toggle-open {
  display: none;
}

.keyword-distill-panel[open] .keyword-distill-toggle-closed {
  display: none;
}

.keyword-distill-panel[open] .keyword-distill-toggle-open {
  display: inline;
}

.keyword-tag-cloud {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 10px;
  min-width: 0;
}

.keyword-tag-cloud .tag {
  display: block;
  width: 100%;
  max-width: none;
  min-width: 0;
  padding: 10px 13px;
  border: 1px solid #dce5ff;
  border-radius: 16px;
  background: linear-gradient(180deg, #eef4ff 0%, #f8fbff 100%);
  color: #2c4fcb;
  font-size: 13px;
  line-height: 1.55;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
}

.keyword-more {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed #dbe2f2;
}

.keyword-more summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--primary);
  font-weight: 600;
  list-style: none;
}

.keyword-more summary::-webkit-details-marker {
  display: none;
}

.keyword-more summary::before {
  content: '+';
  width: 18px;
  height: 18px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: #edf3ff;
}

.keyword-more[open] summary::before {
  content: '-';
}

.keyword-tag-cloud-all {
  margin-top: 14px;
  max-height: 280px;
  overflow: auto;
  padding-right: 4px;
}

.keyword-distill-panel[open] .keyword-tag-cloud-all {
  margin-top: 0;
}

.keyword-distill-empty {
  padding: 14px 16px;
  border: 1px dashed #dbe4f7;
  border-radius: 14px;
  color: var(--muted);
  background: #fbfdff;
  font-size: 13px;
}

@media (max-width: 1080px) {
  .keyword-meta-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .keyword-list-stats,
  .keyword-item-head,
  .keyword-distill-head {
    grid-template-columns: 1fr;
    display: grid;
  }

  .keyword-company-chip,
  .keyword-time-text,
  .keyword-distill-count,
  .keyword-distill-actions {
    white-space: normal;
  }

  .keyword-item-card {
    padding: 16px;
  }
}

.customer-list-card {
  overflow: hidden;
  border-radius: 10px;
  padding: 26px 28px 10px;
  background: #fff;
}

.customer-list-toolbar {
  margin-bottom: 18px;
}

.customer-list-title {
  margin-bottom: 6px;
  color: #081126;
  font-size: 34px;
  line-height: 1.2;
  font-weight: 800;
}

.customer-group-list {
  display: grid;
  gap: 16px;
}

.customer-company-group {
  border: 1px solid #dbe5f6;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(20, 36, 78, 0.05);
  overflow: hidden;
}

.customer-company-summary {
  list-style: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 20px;
  min-height: 92px;
  padding: 22px 28px;
  cursor: pointer;
  background: #fbfdff;
}

.customer-company-summary::-webkit-details-marker {
  display: none;
}

.customer-company-main {
  display: flex;
  align-items: center;
  gap: 24px;
  min-width: 0;
}

.customer-company-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 76px;
  height: 40px;
  padding: 0 18px;
  border-radius: 8px;
  background: linear-gradient(135deg, #2448d8, #3c63ff);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(36, 72, 216, 0.2);
}

.customer-company-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #091329;
  font-size: 26px;
  line-height: 1.35;
  font-weight: 800;
}

.customer-company-stats {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.customer-company-stat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #dbe3fb;
  color: #101a32;
  font-size: 17px;
  font-weight: 800;
  white-space: nowrap;
}

.customer-stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #eef3ff;
  color: #2555df;
  font-size: 14px;
}

.customer-company-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 104px;
  height: 48px;
  padding: 0 18px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #d7dff6;
  color: var(--primary);
  font-size: 17px;
  font-weight: 800;
  white-space: nowrap;
}

.customer-company-toggle .toggle-open {
  display: none;
}

.customer-company-group[open] .customer-company-toggle .toggle-closed {
  display: none;
}

.customer-company-group[open] .customer-company-toggle .toggle-open {
  display: inline;
}

.customer-toggle-arrow {
  font-size: 18px;
  transition: transform 0.2s ease;
}

.customer-company-group:not([open]) .customer-toggle-arrow {
  transform: rotate(180deg);
}

.customer-company-body {
  padding: 14px 36px 30px;
  border-top: 1px solid #e7edf8;
}

.customer-keyword-grid {
  display: grid;
  gap: 20px;
}

.customer-keyword-card {
  padding: 16px;
  border-radius: 10px;
  border: 1px solid #dbe5f6;
  background: #fff;
  box-shadow: 0 16px 34px rgba(20, 36, 78, 0.04);
}

.customer-keyword-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
}

.customer-keyword-headline {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.customer-record-chip {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 8px;
  background: #f0f5ff;
  color: var(--primary);
  font-size: 18px;
  font-weight: 800;
}

.customer-record-time {
  color: #61708d;
  font-size: 19px;
  white-space: nowrap;
}

.customer-keyword-head .table-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.customer-keyword-head .btn {
  min-height: 46px;
  padding: 0 18px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 800;
}

.customer-keyword-meta-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.62fr) minmax(0, 1fr);
  gap: 20px;
  margin-bottom: 16px;
}

.customer-inline-meta {
  padding: 20px 22px;
  border-radius: 10px;
  border: 1px solid #dfe7f7;
  background: #fbfdff;
}

.customer-inline-meta.is-primary {
  background: #fbfdff;
  border-color: #dfe7f7;
}

.customer-inline-label {
  display: block;
  margin-bottom: 12px;
  color: #64708a;
  font-size: 16px;
}

.customer-inline-value {
  display: block;
  color: #091329;
  font-size: 21px;
  line-height: 1.55;
  font-weight: 800;
  word-break: break-word;
}

.customer-primary-text {
  font-size: 22px;
}

.customer-distill-panel {
  border-radius: 10px;
  border: 1px solid #dfe7f7;
  background: #fff;
  overflow: hidden;
}

.customer-distill-head {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 74px;
  padding: 14px 18px;
  cursor: pointer;
  border-bottom: 1px solid #e6edf8;
}

.customer-distill-head::-webkit-details-marker {
  display: none;
}

.customer-distill-panel:not([open]) .customer-distill-head {
  border-bottom: 0;
}

.customer-distill-title-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.customer-distill-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: #eef3ff;
  color: #2555df;
  font-size: 24px;
  font-weight: 800;
}

.customer-distill-title {
  display: inline-flex;
  align-items: center;
  color: #101a32;
  font-size: 20px;
  font-weight: 800;
}

.customer-distill-subtitle {
  display: inline-flex;
  margin-left: 28px;
  color: #8a96ae;
  font-size: 14px;
}

.customer-distill-count {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin-left: 10px;
  padding: 0 12px;
  border-radius: 8px;
  background: #edf3ff;
  color: var(--primary);
  font-size: 16px;
  font-weight: 800;
  white-space: nowrap;
}

.customer-distill-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid #dbe5f6;
  background: #f7faff;
  color: #2555df;
  font-size: 20px;
  transition: transform 0.2s ease;
}

.customer-distill-panel:not([open]) .customer-distill-arrow {
  transform: rotate(180deg);
}

.customer-distill-body {
  padding: 20px;
}

.customer-distill-tools {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(260px, 420px) auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
}

.customer-distill-total {
  color: #53617d;
  font-size: 16px;
}

.customer-distill-search {
  position: relative;
  display: block;
}

.customer-distill-search input {
  width: 100%;
  min-height: 44px;
  padding: 0 44px 0 18px;
  border: 1px solid #dbe5f6;
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font: inherit;
}

.customer-distill-search span {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  color: #63728e;
  pointer-events: none;
}

.customer-distill-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.customer-distill-actions .btn {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  color: var(--primary);
  font-size: 15px;
  font-weight: 800;
}

.customer-tag-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px 18px;
  min-width: 0;
}

.customer-tag-list .tag {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #dce5ff;
  border-radius: 8px;
  background: #fff;
  color: #1b2945;
  font-size: 16px;
  line-height: 1.35;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
}

.customer-distill-panel:not(.is-show-all):not(.is-searching) .customer-tag-list .tag.is-extra {
  display: none;
}

.customer-distill-more-row {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

.customer-distill-more {
  border: 0;
  background: transparent;
  color: var(--primary);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.customer-distill-footnote {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #e7edf8;
  color: #8a96ae;
  font-size: 14px;
  text-align: center;
}

@media (max-width: 1280px) {
  .customer-tag-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1080px) {
  .customer-company-summary,
  .customer-keyword-meta-grid,
  .customer-distill-tools {
    grid-template-columns: 1fr;
  }

  .customer-company-stats,
  .customer-company-toggle {
    justify-self: start;
  }
}

@media (max-width: 720px) {
  .customer-list-card {
    padding: 22px 16px 8px;
  }

  .customer-list-title {
    font-size: 28px;
  }

  .customer-company-summary,
  .customer-keyword-head,
  .customer-distill-head {
    display: grid;
    grid-template-columns: 1fr;
  }

  .customer-company-title,
  .customer-record-time,
  .customer-distill-count {
    white-space: normal;
  }

  .customer-company-body {
    padding: 14px;
  }

  .customer-tag-list {
    grid-template-columns: 1fr;
  }
}

.query-main-stack {
  display: grid;
  gap: 22px;
}

.query-batch-card {
  padding: 34px 34px 30px;
  border: 1px solid #dbe5f6;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(20, 36, 78, 0.05);
}

.query-batch-hero {
  max-width: 940px;
}

.query-batch-hero h2 {
  margin: 0;
  color: #081126;
  font-size: 36px;
  line-height: 1.18;
  font-weight: 800;
}

.query-batch-hero p {
  margin: 16px 0 0;
  color: #66738e;
  font-size: 16px;
  line-height: 1.8;
}

.query-batch-form,
.query-keyword-picker-shell {
  display: grid;
  gap: 22px;
}

.query-keyword-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.query-keyword-toolbar-title {
  display: block;
  color: #101a32;
  font-size: 20px;
  line-height: 1.45;
  font-weight: 800;
}

.query-keyword-toolbar-subtitle {
  margin: 6px 0 0;
  color: #71809b;
  font-size: 14px;
  line-height: 1.7;
}

.query-keyword-result-count {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  background: #eef3ff;
  color: #244ed8;
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
}

.query-keyword-result-count::before {
  content: 'i';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #2d5be8;
  color: #fff;
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
}

.query-selection-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.query-action-btn {
  min-height: 50px;
  padding: 0 24px;
  border-radius: 8px;
  font-size: 17px;
  font-weight: 800;
}

.query-action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  font-size: 17px;
  line-height: 1;
}

.query-keyword-current {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 112px;
  padding: 22px;
  border: 1px solid #dbe5f6;
  border-radius: 10px;
  background: #fbfdff;
}

.query-keyword-current.is-empty {
  border-style: dashed;
}

.query-keyword-current-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  border-radius: 16px;
  background: #eef3ff;
  color: #2555df;
  font-size: 34px;
  font-weight: 800;
}

.query-keyword-current-copy {
  min-width: 0;
}

.query-keyword-current-label {
  display: block;
  color: #66738e;
  font-size: 14px;
  font-weight: 700;
}

.query-keyword-current strong {
  display: block;
  margin-top: 8px;
  color: #071126;
  font-size: 24px;
  line-height: 1.35;
  font-weight: 800;
}

.query-keyword-current-meta {
  display: block;
  margin-top: 8px;
  color: #66738e;
  font-size: 15px;
  line-height: 1.55;
}

.query-keyword-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 22px;
  align-content: start;
}

.query-keyword-option {
  position: relative;
  min-width: 0;
  min-height: 196px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 22px;
  border: 1px solid #dbe5f6;
  border-radius: 10px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.query-keyword-option:hover {
  border-color: #aebff1;
  box-shadow: 0 16px 34px rgba(31, 54, 108, 0.08);
  transform: translateY(-1px);
}

.query-keyword-option.is-selected {
  border-color: #2555df;
  box-shadow: 0 18px 38px rgba(37, 85, 223, 0.12);
}

.query-keyword-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.query-keyword-company {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
  color: #101a32;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 800;
}

.query-keyword-company span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.query-keyword-company-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #eef3ff;
  color: #2555df;
  font-size: 20px;
  font-weight: 800;
}

.query-keyword-select-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border: 2px solid #d4dced;
  border-radius: 6px;
  background: #fff;
}

.query-keyword-option.is-selected .query-keyword-select-mark {
  border-color: #2555df;
  background: #2555df;
}

.query-keyword-option.is-selected .query-keyword-select-mark::before {
  content: '\2713';
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

.query-keyword-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.query-keyword-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: #edf2fb;
  color: #33415f;
  font-size: 14px;
  font-weight: 800;
}

.query-keyword-chip.is-soft {
  border: 1px solid #c8d8ff;
  background: #fff;
  color: #2456e6;
}

.query-keyword-primary {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin-top: 22px;
  color: #091329;
  font-size: 22px;
  line-height: 1.35;
  font-weight: 800;
}

.query-keyword-option-actions {
  display: flex;
  align-items: center;
  margin-top: auto;
  padding-top: 22px;
}

.query-keyword-view-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 30px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #2456e6;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.query-keyword-view-link span {
  font-size: 22px;
  line-height: 1;
}

.query-keyword-empty {
  grid-column: 1 / -1;
  padding: 36px 18px;
  border: 1px dashed #d9e1f5;
  border-radius: 10px;
  background: #fbfcff;
  color: var(--muted);
  text-align: center;
}

.query-keyword-empty-guide {
  display: grid;
  gap: 8px;
  place-items: center;
  min-height: 150px;
}

.query-keyword-empty-guide strong {
  color: #101a32;
  font-size: 18px;
}

.query-keyword-empty-guide span {
  max-width: 620px;
  color: #66738e;
  font-size: 14px;
  line-height: 1.7;
}

.query-batch-settings {
  display: grid;
  gap: 16px;
  margin-top: 2px;
  padding-top: 24px;
  border-top: 1px solid #e7edf8;
}

.query-batch-settings-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.query-batch-settings-head strong {
  color: #101a32;
  font-size: 18px;
}

.query-batch-settings-head span {
  color: #71809b;
  font-size: 13px;
}

.query-batch-settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: start;
}

.query-batch-submit-panel {
  display: grid;
  gap: 14px;
}

.query-batch-submit {
  min-height: 48px;
  border-radius: 8px;
}

.query-distill-modal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.query-distill-modal-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef3ff;
  color: #44557d;
  font-size: 12px;
  font-weight: 700;
}

.query-distill-modal-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 4px;
}

.form-grid.columns-2 .query-filter-actions {
  grid-column: 1 / -1;
}

.query-manual-row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 20px;
  align-items: start;
}

.query-side-card {
  align-self: start;
  position: static;
}

.query-force-toggle {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid #dfe6f7;
  border-radius: 8px;
  background: #fbfcff;
  cursor: pointer;
}

.query-force-toggle input {
  margin-top: 2px;
  width: 16px;
  height: 16px;
  accent-color: #4a68ee;
}

.query-force-toggle strong {
  display: block;
  color: var(--text);
  font-size: 14px;
}

.query-force-toggle small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

@media (max-width: 1080px) {
  .query-keyword-list,
  .query-batch-settings-grid,
  .query-manual-row {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 720px) {
  .query-batch-card {
    padding: 24px 18px;
  }

  .query-batch-hero h2 {
    font-size: 28px;
  }

  .query-keyword-toolbar,
  .query-batch-settings-head {
    display: grid;
    grid-template-columns: 1fr;
  }

  .query-keyword-result-count {
    justify-self: start;
  }

  .query-selection-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .query-keyword-current {
    align-items: flex-start;
  }
}
.auth-captcha-group {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 168px;
  gap: 12px;
  align-items: stretch;
}

.auth-captcha-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}

.auth-captcha-image {
  width: 100%;
  height: 52px;
  border-radius: 14px;
  border: 1px solid #d9dfec;
  background: #fff;
  cursor: pointer;
}

.auth-captcha-refresh {
  height: 52px;
  padding: 0 14px;
  border: 1px solid #d9dfec;
  border-radius: 14px;
  background: #f7f9ff;
  color: var(--primary);
  cursor: pointer;
  font: inherit;
  white-space: nowrap;
}

.auth-captcha-refresh:hover {
  background: #eef3ff;
}

@media (max-width: 640px) {
  .auth-captcha-group,
  .auth-captcha-box {
    grid-template-columns: 1fr;
  }
}


.user-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.user-summary-item {
  min-width: 0;
  padding: 14px;
  border: 1px solid #e1e7f5;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.user-summary-item span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.user-summary-item strong {
  display: block;
  margin-top: 6px;
  font-size: 22px;
  line-height: 1;
}

.user-list-card {
  padding-bottom: 16px;
}

.user-list-head {
  margin-bottom: 16px;
}

.user-list-total {
  min-width: 128px;
  padding: 12px 16px;
  border: 1px solid #dfe6f5;
  border-radius: 16px;
  background: #f8faff;
  text-align: right;
}

.user-list-total span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.user-list-total strong {
  display: block;
  margin-top: 4px;
  font-size: 24px;
  line-height: 1;
}

.user-table {
  min-width: 920px;
}

.user-table th {
  white-space: nowrap;
}

.user-table td {
  vertical-align: middle;
}

.user-account-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.user-avatar {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  color: #2448d8;
  background: #eef3ff;
  border: 1px solid #dce5ff;
  font-weight: 800;
}

.user-account-main {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.user-account-main strong {
  font-size: 14px;
  word-break: break-word;
}

.user-account-main span,
.user-account-main small,
.user-last-login {
  color: var(--muted);
  font-size: 12px;
}

.user-status-stack {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.user-role-chip,
.quota-unlimited {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #f4f6fb;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.quota-block {
  display: grid;
  gap: 8px;
  width: min(260px, 100%);
}

.quota-topline {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.quota-topline strong {
  color: var(--text);
  font-size: 15px;
}

.quota-topline span {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.quota-track {
  height: 8px;
  border-radius: 999px;
  background: #e9eef8;
  overflow: hidden;
}

.quota-track span {
  display: block;
  height: 100%;
  min-width: 4px;
  border-radius: inherit;
  background: linear-gradient(90deg, #21a67a, #6d50ff);
}

.user-row-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-start;
  min-width: 330px;
}

@media (max-width: 720px) {
  .user-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .user-list-total {
    text-align: left;
  }
}


@media (max-width: 720px) {
  .keyword-tag-cloud,
  .customer-tag-list {
    grid-template-columns: 1fr;
  }
}


.content-opt-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.content-opt-stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.content-opt-filter {
  align-items: end;
}

.content-opt-list {
  display: grid;
  gap: 14px;
}

.content-opt-card {
  display: grid;
  gap: 16px;
}

.content-opt-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.content-opt-meta-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.content-opt-company,
.content-opt-platform {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eef3ff;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
}

.content-opt-platform {
  background: #f4f6fb;
  color: #56627f;
}

.content-opt-query {
  margin: 12px 0 6px;
  font-size: 20px;
  line-height: 1.45;
  word-break: break-word;
}

.content-opt-sub {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.content-opt-miss {
  min-width: 96px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid #ffe1d2;
  background: #fff7f2;
  text-align: center;
}

.content-opt-miss span {
  display: block;
  color: #9a5a33;
  font-size: 12px;
}

.content-opt-miss strong {
  display: block;
  margin-top: 4px;
  color: #d45b25;
  font-size: 24px;
  line-height: 1;
}

.content-opt-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.content-opt-suggestion,
.content-opt-link,
.content-opt-note {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid #e2e8f7;
  background: #fbfcff;
}

.content-opt-suggestion span,
.content-opt-link span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
}

.content-opt-suggestion strong,
.content-opt-link a {
  color: var(--text);
  font-weight: 700;
  word-break: break-word;
}

.content-opt-link,
.content-opt-note {
  grid-column: 1 / -1;
}

.content-opt-note {
  color: #46506a;
  line-height: 1.7;
  word-break: break-word;
}

.content-opt-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px dashed #dfe5f2;
}

.content-opt-actions select {
  min-height: 38px;
  border: 1px solid #d9dfec;
  border-radius: 12px;
  padding: 0 12px;
  background: #fff;
  font: inherit;
}

@media (max-width: 720px) {
  .content-opt-card-head,
  .content-opt-hero {
    display: grid;
  }

  .content-opt-body {
    grid-template-columns: 1fr;
  }
}


/* Customer report compact platform cards */
.share-panel-grid {
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
  align-items: stretch;
}

.share-panel-grid .share-panel {
  min-width: 0;
}

.share-panel {
  border-radius: 22px;
}

.share-panel-head {
  gap: 12px;
  margin-bottom: 14px;
  align-items: center;
}

.share-panel-head h3 {
  font-size: 20px;
  line-height: 1.2;
}

.share-panel-head span {
  max-width: 360px;
  line-height: 1.5;
}

.share-donut-block {
  gap: 16px;
  justify-items: center;
}

.share-donut-ring {
  width: min(220px, 70vw);
}

.share-donut-hole strong {
  font-size: 30px;
}

.share-legend {
  width: 100%;
  grid-template-columns: repeat(auto-fit, minmax(124px, 1fr));
  gap: 10px 12px;
  max-height: 180px;
  overflow: auto;
  padding-right: 4px;
}

.share-legend-item {
  min-width: 0;
  padding: 6px 8px;
  border: 1px solid #e6ebf7;
  border-radius: 12px;
  background: #f8fbff;
}

.share-legend-copy {
  min-width: 0;
}

.share-legend-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.share-vertical-chart {
  grid-template-columns: repeat(auto-fit, minmax(238px, 1fr));
  gap: 14px;
  align-items: stretch;
  min-height: auto;
  padding-top: 4px;
}

.share-vertical-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  align-self: stretch;
  gap: 12px;
  min-height: 78px;
  padding: 14px 16px;
  border: 1px solid color-mix(in srgb, var(--platform-color, #3056d3) 24%, #e5ebf7);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 251, 255, 0.96) 100%),
    color-mix(in srgb, var(--platform-color, #3056d3) 8%, white);
  box-shadow: 0 12px 28px rgba(24, 35, 78, 0.06);
}

.share-platform-logo-wrap {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--platform-color, #3056d3);
  box-shadow: 0 10px 20px color-mix(in srgb, var(--platform-color, #3056d3) 28%, transparent);
  overflow: hidden;
}

.share-platform-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.share-platform-logo-fallback {
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

.share-platform-copy {
  min-width: 0;
  display: grid;
  gap: 10px;
}

.share-vertical-label {
  min-width: 0;
  text-align: left;
  color: #102047;
  font-size: 15px;
  line-height: 1.25;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.share-vertical-value {
  text-align: right;
  color: var(--platform-color, #3056d3);
  font-size: 17px;
  line-height: 1.1;
  font-weight: 900;
}

.share-vertical-track {
  width: 100%;
  height: 6px;
  display: block;
  padding: 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--platform-color, #3056d3) 16%, #eef3fb);
  overflow: hidden;
}

.share-vertical-fill {
  display: block;
  height: 100%;
  min-width: 0;
  border-radius: inherit;
  transition: width 0.25s ease;
}

.share-filter-chips {
  max-width: 100%;
}

.share-chip {
  padding: 7px 12px;
  font-size: 13px;
}

@media (max-width: 1180px) {
  .share-panel-grid {
    grid-template-columns: 1fr;
  }

  .share-donut-block {
    grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
    align-items: center;
  }
}

@media (max-width: 720px) {
  .share-donut-block {
    grid-template-columns: 1fr;
  }

  .share-vertical-chart {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .share-report-body {
    background: #f6f9ff;
  }

  .share-report-shell {
    width: 100%;
    margin: 0;
    padding: 12px;
    gap: 14px;
  }

  .share-hero {
    min-height: auto;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 16px 34px rgba(28, 48, 104, 0.18);
  }

  .share-eyebrow {
    font-size: 12px;
    letter-spacing: 0;
  }

  .share-hero h1 {
    margin-top: 10px;
    font-size: 30px;
    line-height: 1.18;
    overflow-wrap: anywhere;
  }

  .share-hero-actions {
    width: 100%;
  }

  .share-hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .share-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .share-stat-card {
    min-height: 112px;
    padding: 16px;
    border-radius: 18px;
    box-shadow: 0 12px 26px rgba(24, 35, 78, 0.08);
  }

  .share-stat-value {
    font-size: 30px;
  }

  .share-panel {
    padding: 16px;
    border-radius: 18px;
    box-shadow: 0 12px 26px rgba(24, 35, 78, 0.08);
  }

  .share-panel-head {
    display: grid;
    gap: 10px;
  }

  .share-panel-head h3 {
    font-size: 18px;
  }

  .share-donut-ring {
    width: min(220px, 78vw);
  }

  .share-legend {
    max-height: 210px;
  }

  .share-vertical-item {
    min-height: 66px;
    padding: 12px;
    border-radius: 16px;
  }

  .share-platform-logo-wrap {
    width: 36px;
    height: 36px;
  }

  .share-vertical-label {
    font-size: 14px;
  }

  .share-vertical-value {
    font-size: 16px;
  }

  .share-table-head {
    align-items: stretch;
  }

  .share-table-toolbar {
    justify-items: stretch;
  }

  .share-filter-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 4px;
    scrollbar-width: thin;
  }

  .share-chip {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .share-search-box input {
    width: 100%;
    min-height: 42px;
  }

  .share-table-panel .table-wrap {
    overflow: visible;
  }

  .share-keyword-table {
    display: block;
    width: 100%;
    border-collapse: separate;
  }

  .share-keyword-table thead {
    display: none;
  }

  .share-keyword-table tbody {
    display: grid;
    gap: 12px;
  }

  .share-keyword-table tr {
    display: grid;
    gap: 8px;
    padding: 14px;
    border: 1px solid #e2e9f6;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(24, 35, 78, 0.06);
  }

  .share-keyword-table td {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 0;
    border: 0;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.5;
  }

  .share-keyword-table td::before {
    content: attr(data-label);
    color: #72809a;
    font-size: 12px;
    line-height: 1.6;
  }

  .share-keyword-table td[colspan] {
    display: block;
    text-align: center;
  }

  .share-keyword-table td[colspan]::before {
    content: none;
  }

  .share-keyword-table td:last-child {
    display: flex;
    justify-content: flex-end;
    padding-top: 4px;
  }

  .share-keyword-table td:last-child::before {
    content: none;
  }

  .share-action-link {
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    background: #eef4ff;
    text-decoration: none;
  }

  .share-pagination {
    gap: 10px;
  }

  .share-page-summary {
    width: 100%;
  }

  .share-page-controls {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 2px;
  }
}

@media (max-width: 520px) {
  .share-report-shell {
    padding: 10px;
  }

  .share-hero {
    padding: 18px;
  }

  .share-hero h1 {
    font-size: 26px;
  }

  .share-metrics {
    grid-template-columns: 1fr;
  }

  .share-stat-card {
    min-height: 96px;
  }

  .share-vertical-item {
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 10px;
  }

  .share-platform-logo-wrap {
    width: 34px;
    height: 34px;
  }

  .share-keyword-table td {
    grid-template-columns: 68px minmax(0, 1fr);
  }
}


/* Report manual and sync cards */
.report-entry-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.report-entry-card {
  min-width: 0;
}

.report-sync-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.report-sync-platforms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 10px;
}

.report-sync-platform {
  min-width: 0;
}

.report-sync-platform .platform-tile-box {
  min-height: 68px;
  padding: 14px 16px;
}

.report-sync-platform .platform-tile-meta {
  min-width: 0;
}

.report-sync-platform .platform-tile-name {
  white-space: normal;
  word-break: break-word;
  line-height: 1.35;
}

.report-sync-note {
  padding: 10px 12px;
  border-radius: 12px;
  background: #eef6ff;
  color: #47637d;
  font-size: 13px;
}

@media (max-width: 1080px) {
  .report-entry-grid {
    grid-template-columns: 1fr;
  }
}

.report-recent-task-wrap,
.report-matrix-wrap {
  width: 100%;
}

.report-recent-task-table {
  min-width: 820px;
  table-layout: fixed;
}

.report-recent-task-table th:nth-child(1) {
  width: 42%;
}

.report-recent-task-table th:nth-child(2) {
  width: 24%;
}

.report-recent-task-table th:nth-child(3) {
  width: 68px;
}

.report-recent-task-table th:nth-child(4) {
  width: 88px;
}

.report-recent-task-table th:nth-child(5) {
  width: 116px;
}

.report-recent-task-table td {
  line-height: 1.65;
}

.report-task-name,
.report-task-meta {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.report-hit-cell,
.report-status-cell {
  white-space: nowrap;
}

.report-hit-cell,
.report-status-cell {
  text-align: center;
}

.report-status-cell .badge {
  min-width: 64px;
  justify-content: center;
  white-space: nowrap;
}

.report-matrix-table {
  min-width: 920px;
}

.report-matrix-table th,
.report-matrix-table td {
  white-space: nowrap;
}

.report-matrix-table th:nth-child(-n + 3),
.report-matrix-table td:nth-child(-n + 3) {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}


/* Pagination */
.app-pagination,
.share-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 16px 2px 4px;
}

.app-page-summary,
.share-page-summary {
  color: #64748b;
  font-size: 13px;
}

.app-page-controls,
.share-page-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.app-page-btn,
.share-page-btn {
  min-width: 34px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid #d9e2f2;
  border-radius: 999px;
  background: #fff;
  color: #334155;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.app-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.app-page-btn:hover:not(.is-disabled),
.share-page-btn:hover:not(:disabled) {
  border-color: #9bb7ff;
  background: #f5f8ff;
  color: #2453d4;
  text-decoration: none;
}

.app-page-btn.is-active,
.share-page-btn.is-active {
  border-color: transparent;
  background: #3056d3;
  color: #fff;
}

.app-page-btn.is-disabled,
.share-page-btn:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.app-page-gap,
.share-page-gap {
  color: #94a3b8;
  padding: 0 2px;
}

@media (max-width: 720px) {
  .app-pagination,
  .share-pagination {
    align-items: stretch;
  }

  .app-page-controls,
  .share-page-controls {
    justify-content: flex-start;
  }
}


/* Brand insight */
.brand-insight-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.8fr);
  gap: 18px;
  align-items: start;
}

.brand-form-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.brand-form-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: #eef6ff;
  color: #2453d4;
  font-size: 13px;
  font-weight: 700;
}

.brand-platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 10px;
}

.brand-platform-item {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #dfe7f5;
  border-radius: 12px;
  background: #fff;
  color: #334155;
}

.brand-platform-item.is-disabled {
  opacity: 0.55;
  background: #f3f6fb;
}

.brand-history-list {
  display: grid;
  gap: 10px;
}

.brand-history-item {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid #e0e8f5;
  border-radius: 14px;
  background: #fff;
  color: #1f2a44;
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.brand-history-item:hover,
.brand-history-item.is-active {
  border-color: #8fb1ff;
  background: #f5f8ff;
}

.brand-history-item strong,
.brand-history-item span,
.brand-history-item em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-history-item em {
  color: #64748b;
  font-size: 12px;
  font-style: normal;
}

.brand-report-sheet {
  margin-top: 20px;
  padding: 26px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 16% 12%, rgba(88, 142, 255, 0.22), transparent 24%),
    radial-gradient(circle at 86% 10%, rgba(96, 218, 236, 0.22), transparent 22%),
    linear-gradient(180deg, #f8fbff 0%, #eef6ff 100%);
  box-shadow: 0 18px 48px rgba(28, 61, 126, 0.13);
  color: #14213f;
}

.brand-report-hero {
  position: relative;
  overflow: hidden;
  min-height: 285px;
  padding: 28px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 88% 28%, rgba(188, 245, 255, 0.9), transparent 24%),
    linear-gradient(135deg, #6aa0ff 0%, #1e67ff 58%, #6fd9ff 100%);
  color: #fff;
}

.brand-report-hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: 44px;
  width: 430px;
  height: 160px;
  border-radius: 999px 0 0 999px;
  background: rgba(255, 255, 255, 0.62);
  transform: rotate(-7deg);
}

.brand-hero-top,
.brand-hero-main,
.brand-report-meta {
  position: relative;
  z-index: 1;
}

.brand-hero-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 16px;
  font-weight: 800;
}

.brand-hero-main {
  text-align: center;
  margin: 54px auto 38px;
}

.brand-hero-main h2 {
  margin: 0;
  font-size: 38px;
  line-height: 1.18;
  letter-spacing: 0;
}

.brand-hero-main p {
  margin: 14px 0 0;
  font-size: 16px;
  font-weight: 700;
  opacity: 0.92;
}

.brand-report-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.brand-report-meta div {
  min-width: 0;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.84);
  color: #1f376a;
  box-shadow: 0 14px 28px rgba(31, 76, 148, 0.14);
}

.brand-report-meta span {
  display: block;
  color: #4d6594;
  font-size: 13px;
  font-weight: 700;
}

.brand-report-meta strong {
  display: block;
  margin-top: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 28px 0 14px;
  color: #1f56dc;
  font-size: 22px;
  font-weight: 900;
}

.brand-section-title span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 34px;
  border-radius: 10px;
  background: #2f70ff;
  color: #fff;
  box-shadow: 0 8px 18px rgba(47, 112, 255, 0.3);
}

.brand-section-title em {
  color: #627696;
  font-size: 14px;
  font-style: normal;
}

.brand-report-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.brand-overview-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
}

.brand-card {
  min-width: 0;
  padding: 22px;
  border: 1px solid rgba(203, 216, 236, 0.76);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 34px rgba(26, 52, 104, 0.08);
}

.brand-card h3 {
  margin: 0 0 18px;
  color: #19315e;
  font-size: 17px;
}

.brand-card h3 em {
  color: #7085a8;
  font-style: normal;
  font-size: 13px;
}

.brand-sov-wrap {
  display: grid;
  grid-template-columns: minmax(160px, 210px) minmax(0, 1fr);
  gap: 22px;
  align-items: center;
}

.brand-sov-ring {
  width: 190px;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.brand-sov-ring > div {
  width: 112px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  text-align: center;
  color: #2563eb;
}

.brand-sov-ring strong {
  font-size: 28px;
  line-height: 1;
}

.brand-sov-ring span {
  color: #5a6f92;
  font-size: 12px;
}

.brand-sov-list {
  display: grid;
  gap: 10px;
}

.brand-sov-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #3b4c6d;
}

.brand-sov-list span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.brand-metric-grid div {
  padding: 16px;
  border-radius: 14px;
  background: #f7faff;
  box-shadow: inset 0 0 0 1px #e6eefb;
}

.brand-metric-grid span {
  display: block;
  color: #566986;
  font-size: 13px;
}

.brand-metric-grid strong {
  display: block;
  margin-top: 8px;
  color: #2563eb;
  font-size: 28px;
}

.brand-summary-card p {
  margin: 0 0 14px;
  color: #3f5272;
  line-height: 1.8;
}

.brand-risk-text {
  color: #e5484d !important;
  font-weight: 700;
}

.brand-sentiment-grid {
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
}

.brand-sentiment-row {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
}

.brand-sentiment-row div {
  display: flex;
  justify-content: space-between;
  color: #52627b;
  font-weight: 700;
}

.brand-sentiment-row i,
.brand-mini-bar {
  display: block;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8eef8;
}

.brand-sentiment-row b,
.brand-mini-bar b {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.brand-sentiment-positive b { background: #42c982; }
.brand-sentiment-neutral b { background: #5e8cff; }
.brand-sentiment-negative b { background: #ff6572; }

.brand-mini-bar {
  display: inline-block;
  width: 92px;
  margin-right: 10px;
  vertical-align: middle;
}

.brand-mini-bar b {
  background: linear-gradient(90deg, #38c984 0%, #5e8cff 60%, #ff6b75 100%);
}

.brand-ranking-table .is-brand-row {
  background: #fff4f5;
  color: #e5484d;
  font-weight: 800;
}

.brand-term-card.positive {
  background: linear-gradient(135deg, #ffffff 0%, #effdf5 100%);
}

.brand-term-card.negative {
  background: linear-gradient(135deg, #ffffff 0%, #fff2f4 100%);
}

.brand-term-cloud {
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  align-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.brand-term-cloud span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 15px;
  border-radius: 999px;
  background: rgba(62, 201, 130, 0.14);
  color: #1d9c5b;
  font-weight: 800;
}

.brand-term-card.negative .brand-term-cloud span {
  background: rgba(255, 94, 111, 0.14);
  color: #e13c4d;
}

.brand-term-cloud span:nth-child(3n + 1) {
  font-size: 20px;
}

.brand-term-cloud span:nth-child(4n + 2) {
  font-size: 15px;
}

.brand-term-cloud em {
  color: #7b8ca8;
  font-style: normal;
}

.brand-source-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.brand-source-grid div {
  min-height: var(--source-size);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  padding: 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, #1f67ff 0%, #78a8ff 100%);
  color: #fff;
  overflow: hidden;
}

.brand-source-grid div:nth-child(2n) {
  background: linear-gradient(135deg, #5f8cff 0%, #a6c4ff 100%);
}

.brand-source-grid div:nth-child(3n) {
  background: linear-gradient(135deg, #75d6ff 0%, #b9e8ff 100%);
  color: #153560;
}

.brand-source-grid strong,
.brand-source-grid span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-risk-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-weight: 800;
}

.brand-risk-high {
  background: #ffe1e6;
  color: #e43145;
}

.brand-risk-medium {
  background: #fff2cf;
  color: #b87300;
}

.brand-risk-low {
  background: #e6fbef;
  color: #18864b;
}

.brand-record-table td:nth-child(2),
.brand-record-table td:nth-child(5) {
  max-width: 360px;
  white-space: normal;
  line-height: 1.55;
}

.brand-report-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
  color: #607391;
  font-size: 13px;
}

@media (max-width: 1180px) {
  .brand-insight-grid,
  .brand-report-grid,
  .brand-overview-grid,
  .brand-sentiment-grid,
  .brand-report-meta {
    grid-template-columns: 1fr;
  }

  .brand-hero-main h2 {
    font-size: 30px;
  }
}

@media (max-width: 720px) {
  .brand-report-sheet {
    padding: 14px;
    border-radius: 18px;
  }

  .brand-report-hero {
    padding: 20px;
  }

  .brand-sov-wrap,
  .brand-metric-grid,
  .brand-source-grid {
    grid-template-columns: 1fr;
  }

  .brand-sov-ring {
    width: 170px;
    margin: 0 auto;
  }
}
