@import url("./styles.css");

/* ==========================================================================
   LLMsMonitor Demo-1 Visual Identity & Dashboard System
   Replaces Veylo pink/navy theme with LLMsMonitor Violet (#6d28d9 / #7c3aed)
   while keeping Demo-1's pastel mesh, dot-grid, orbital wheel & Motion.js.
   ========================================================================== */

:root {
  /* Override Demo-1 Pink -> LLMsMonitor Violet/Mor */
  --pink: #7c3aed;
  --pink-soft: #a78bfa;
  --pink-20: rgba(124, 58, 237, 0.2);
  --pink-12: rgba(124, 58, 237, 0.12);
  --pink-06: rgba(124, 58, 237, 0.06);

  --navy: #18181b;
  --navy-deep: #09090b;
  --slate: #52525b;
  --slate-40: rgba(82, 82, 91, 0.48);
  --slate-20: rgba(82, 82, 91, 0.2);
  --slate-12: rgba(82, 82, 91, 0.12);
  --slate-08: rgba(82, 82, 91, 0.08);
  --slate-04: rgba(82, 82, 91, 0.04);
  --slate-02: rgba(82, 82, 91, 0.02);

  --sky: #8b5cf6;
  --llms-violet: #6d28d9;
  --llms-violet-bright: #7c3aed;
  --llms-violet-soft: #ede9fe;
  --llms-lavender: #f5f3ff;
  --llms-green: #16a34a;
  --llms-green-deep: #166534;
  --llms-green-bg: #dcfce7;
  --llms-orange: #ea580c;
  --llms-orange-bg: #ffedd5;
  --llms-amber: #d97706;
  --llms-amber-bg: #fef3c7;
  --llms-blue: #2563eb;
  --llms-blue-bg: #dbeafe;
  --llms-rose: #e11d48;
  --llms-rose-bg: #ffe4e6;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 300;
  width: auto;
  height: auto;
  padding: 10px 16px;
  margin: 0;
  clip: auto;
  border-radius: 10px;
  background: var(--llms-violet);
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
}

:focus-visible {
  outline: 2px solid var(--llms-violet-bright);
  outline-offset: 3px;
}

/* Violet Mesh & Pastel Lavender Surfaces (dot-grid must precede mesh-surface) */
.dot-grid {
  background-image: radial-gradient(rgba(109, 40, 217, 0.075) 1.25px, transparent 1.25px);
  background-size: 22px 22px;
}

.mesh-surface {
  background-color: #ffffff;
  background-image:
    radial-gradient(rgba(109, 40, 217, 0.075) 1.25px, transparent 1.25px),
    radial-gradient(90% 70% at 15% 0%, rgba(124, 58, 237, 0.36), transparent 65%),
    radial-gradient(90% 70% at 85% 0%, rgba(99, 102, 241, 0.34), transparent 65%),
    radial-gradient(85% 60% at 50% 62%, rgba(164, 88, 239, 0.22), transparent 72%),
    linear-gradient(180deg, #d8ccff 0%, #e8e2ff 36%, #f3ecff 72%, #ffffff 100%);
  background-size: 22px 22px, 100% 100%, 100% 100%, 100% 100%, 100% 100%;
}

.mesh-surface-top {
  background-color: #ffffff;
  background-image:
    radial-gradient(rgba(109, 40, 217, 0.065) 1.25px, transparent 1.25px),
    radial-gradient(90% 45% at 50% 0%, rgba(124, 58, 237, 0.32), transparent 70%),
    radial-gradient(85% 42% at 50% 35%, rgba(164, 88, 239, 0.16), transparent 72%),
    linear-gradient(180deg, #dcd2ff 0%, #efeaff 38%, #ffffff 78%);
  background-size: 22px 22px, 100% 100%, 100% 100%, 100% 100%;
}

.dashboard-bezel {
  background: linear-gradient(180deg, #ddd6fe 0%, #e9e4ff 48%, #f5f3ff 100%);
  box-shadow: 0 24px 60px rgba(109, 40, 217, 0.12);
}

.aura-glow {
  background: radial-gradient(
    circle,
    rgba(139, 92, 246, 0.24) 0%,
    rgba(99, 102, 241, 0.14) 48%,
    transparent 72%
  );
}

.step-visual--aura {
  background:
    radial-gradient(75% 75% at 65% 35%, rgba(124, 58, 237, 0.12), transparent 70%),
    radial-gradient(75% 75% at 35% 70%, rgba(99, 102, 241, 0.14), transparent 70%);
}

/* Primary Buttons in LLMsMonitor Violet */
.btn-primary {
  background:
    radial-gradient(65% 120% at 50% 10%, rgba(216, 180, 254, 0.42) 0%, rgba(216, 180, 254, 0) 70%),
    linear-gradient(135deg, #5b21b6 0%, #7c3aed 55%, #5b21b6 100%);
  color: #ffffff;
  box-shadow:
    0 6px 18px rgba(109, 40, 217, 0.28),
    inset 0 1px 1px rgba(255, 255, 255, 0.35),
    0 0 0 1px rgba(91, 33, 182, 0.45);
}

.btn-primary:hover {
  box-shadow:
    0 10px 26px rgba(109, 40, 217, 0.36),
    inset 0 1px 1px rgba(255, 255, 255, 0.45),
    0 0 0 1px #5b21b6;
}

.badge-popular,
.step-badge,
.timeline-progress,
.billing-switch[aria-checked="true"],
.connect-row.is-on .mini-switch,
.summarize-btn {
  background: linear-gradient(135deg, #5b21b6 0%, #7c3aed 100%);
}

.cursor-pill {
  background: #4c1d95;
  box-shadow: 0 8px 20px rgba(76, 29, 149, 0.26);
}

.pink-icon-tile,
.pink-sq-sm {
  background: linear-gradient(180deg, #8b5cf6 0%, #6d28d9 100%);
  box-shadow: 0 8px 18px rgba(109, 40, 217, 0.24);
}

.pink-sq-sm {
  box-shadow: none;
}

.mini-bars span,
.dash-bars span {
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.22), rgba(124, 58, 237, 0.06));
}

.mini-bars span.is-peak,
.dash-bars span.is-peak,
.bento-bars span.is-peak {
  background: linear-gradient(180deg, #6d28d9 0%, #a78bfa 100%);
}

.bento-bars span {
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.16), rgba(124, 58, 237, 0.05));
}

.progress-track span {
  background: linear-gradient(90deg, #6d28d9, #a78bfa);
}

.pill-pink-soft {
  background: rgba(124, 58, 237, 0.12);
  color: #6d28d9;
}

.pill-pink-solid {
  background: #6d28d9;
}

.mini-msg-body em {
  color: #6d28d9;
}

.status-dot {
  background: #16a34a;
}

.dot-pink { background: #16a34a; }
.dot-rose { background: #7c3aed; }
.dot-blush { background: #ddd6fe; }

/* Brand Mark & Navbar */
.brand-logo-mark {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  flex-shrink: 0;
}

.nav-menu {
  gap: 16px;
}

.nav-actions-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-live-link {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding-inline: 12px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
  transition: background-color 0.18s ease;
}

.nav-live-link:hover {
  background: var(--slate-08);
}

.hero-content {
  max-width: 700px;
}

.hero-actions,
.cta-actions-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

/* Semantic GEO Pills */
.pill-green-soft {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--llms-green-bg);
  color: var(--llms-green-deep);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.pill-violet-soft {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--llms-violet-soft);
  color: var(--llms-violet);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.pill-amber-soft {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--llms-amber-bg);
  color: #b45309;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.pill-rose-soft {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--llms-rose-bg);
  color: #be123c;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

/* Partner Logo Strip */
.marquee-track {
  gap: 44px;
  animation-duration: 80s;
}

.logo-item-svg img {
  width: 112px;
  height: 42px;
  object-fit: contain;
  display: block;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.logo-item-svg:hover img {
  opacity: 1;
}

@media (max-width: 809px) {
  .marquee-track {
    gap: 28px;
    animation-duration: 60s;
  }

  .logo-item-svg img {
    width: 96px;
    height: 36px;
  }
}

/* Engine Avatars */
.avatar-cg { background: #dcfce7; color: #166534; }
.avatar-gm { background: #dbeafe; color: #1d4ed8; }
.avatar-ao { background: #ede9fe; color: #5b21b6; }
.avatar-px { background: #f3e8ff; color: #6d28d9; }

/* ==========================================================================
   Hero Orbital Cards — Authentic LLMsMonitor Mini Widgets
   ========================================================================== */
.fan-card {
  font-variant-numeric: tabular-nums;
}

.fan-read-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  background: #f8f7ff;
  border: 1px solid #e5e7eb;
  margin-top: 18px;
}

.fan-sp-badge {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, #5b21b6, #7c3aed);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
}

.fan-read-url {
  font-size: 12px;
  font-weight: 600;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fan-read-count {
  margin-left: auto;
  font-size: 10px;
  color: #6b7280;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.fan-floating-badges {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 16px;
}

.fan-mini-bars {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}

.fan-bar-row {
  display: grid;
  grid-template-columns: 88px 1fr 34px;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}

.fan-bar-row span:first-child {
  color: #374151;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fan-bar-track {
  height: 8px;
  border-radius: 999px;
  background: #f3f4f6;
  overflow: hidden;
}

.fan-bar-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #d62d66;
}

.fan-bar-fill.is-own {
  background: #166534;
}

.fan-bar-row strong {
  text-align: right;
  font-size: 11px;
  color: #111827;
}

.fan-fanout-box {
  padding: 12px;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  background: #fafafa;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fan-fanout-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.fan-fanout-head strong {
  font-size: 12px;
  color: #111827;
}

.fan-fanout-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  color: #6b7280;
}

/* ==========================================================================
   Authentic LLMsMonitor Dashboard Preview (Matches app.llmsmonitor.com / General-Dashbord)
   ========================================================================== */
.llms-dash {
  display: grid;
  grid-template-columns: 212px 1fr;
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #e5e7eb;
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(24, 24, 27, 0.08);
  font-variant-numeric: tabular-nums;
}

.llms-sidebar {
  background: #fafafa;
  border-right: 1px solid #e5e7eb;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.llms-brand-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 6px;
}

.llms-brand-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

.llms-project-box {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
}

.llms-project-avatar {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: linear-gradient(135deg, #ede9fe, #dbeafe);
  color: #4c1d95;
  font-size: 11px;
  font-weight: 700;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
}

.llms-project-box strong {
  display: block;
  font-size: 12px;
  line-height: 1.2;
  color: #111827;
}

.llms-project-box small {
  display: block;
  font-size: 10.5px;
  color: #6b7280;
}

.llms-mode-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 3px;
  border-radius: 8px;
  background: #f4f4f5;
  font-size: 11px;
  text-align: center;
}

.llms-mode-pill {
  padding: 4px 6px;
  border-radius: 6px;
  color: #71717a;
  font-weight: 500;
}

.llms-mode-pill.is-active {
  background: #ffffff;
  color: #111827;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.llms-nav-group-label {
  padding: 4px 8px 2px;
  font-size: 10.5px;
  font-weight: 500;
  color: #9ca3af;
}

.dash-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dash-nav li {
  padding: 0;
}

.dash-nav-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font-size: 12.5px;
  color: #52525b;
  text-align: left;
  transition: background-color 0.16s ease, color 0.16s ease;
}

.dash-nav-btn-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.dash-nav-btn:hover {
  background: #f3f4f6;
  color: #111827;
}

.dash-nav-btn.is-active {
  background: #ededf0;
  color: #111827;
  font-weight: 600;
}

.dash-nav-count {
  font-size: 10.5px;
  color: #6b7280;
  background: #e5e7eb;
  padding: 1px 6px;
  border-radius: 999px;
}

.llms-sidebar-foot {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 11px;
  color: #6b7280;
}

.llms-pref-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.llms-seg-mini {
  display: inline-flex;
  gap: 2px;
  padding: 2px;
  border-radius: 6px;
  background: #f4f4f5;
  border: 1px solid #e5e7eb;
}

.llms-seg-mini span {
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
}

.llms-seg-mini span.is-on {
  background: #ffffff;
  color: #111827;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

/* Main Workspace */
.llms-main {
  background: #ffffff;
  display: flex;
  flex-direction: column;
}

.llms-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 18px;
  border-bottom: 1px solid #e5e7eb;
  font-size: 12px;
}

.llms-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #6b7280;
}

.llms-breadcrumb strong {
  color: #111827;
  font-weight: 600;
}

.llms-topbar-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.llms-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  font-size: 11px;
  color: #374151;
  white-space: nowrap;
}

.llms-chip-btn {
  border-color: rgba(109, 40, 217, 0.35);
  background: #f5f3ff;
  color: #5b21b6;
  font-weight: 600;
}

.llms-workspace-body {
  padding: 16px 18px 18px;
}

.llms-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.llms-page-head h3 {
  font-size: 17px;
  font-weight: 600;
  color: #111827;
  line-height: 1.25;
}

.llms-page-head p {
  font-size: 11.5px;
  color: #6b7280;
}

.llms-engine-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.llms-engine-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 7px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  font-size: 11px;
  font-weight: 500;
  color: #374151;
}

.llms-engine-pill.is-active {
  background: #18181b;
  color: #ffffff;
  border-color: #18181b;
}

.dot-blue { width: 6px; height: 6px; border-radius: 999px; background: #2563eb; }
.dot-sky { width: 6px; height: 6px; border-radius: 999px; background: #0ea5e9; }
.dot-violet { width: 6px; height: 6px; border-radius: 999px; background: #7c3aed; }
.dot-green { width: 6px; height: 6px; border-radius: 999px; background: #16a34a; }
.dot-orange { width: 6px; height: 6px; border-radius: 999px; background: #ea580c; }
.dot-rose { width: 6px; height: 6px; border-radius: 999px; background: #be185d; }

.llms-score-card {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px 16px;
  background: #ffffff;
  margin-bottom: 12px;
}

.llms-score-split {
  display: grid;
  grid-template-columns: 205px 1fr;
  gap: 16px;
  align-items: center;
  margin-bottom: 12px;
}

.llms-score-ring-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.llms-ring-svg-box {
  position: relative;
  width: 118px;
  height: 118px;
}

.llms-ring-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.llms-ring-center strong {
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  color: #111827;
}

.llms-ring-center span {
  font-size: 11px;
  font-weight: 600;
  color: #16a34a;
  margin-top: 2px;
}

.llms-score-meta {
  font-size: 10.5px;
  color: #16a34a;
  font-weight: 600;
  margin-top: 4px;
}

.llms-score-sub {
  font-size: 10px;
  color: #6b7280;
}

.llms-period-chart {
  border-left: 1px solid #f4f4f5;
  padding-left: 14px;
}

.llms-period-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  margin-bottom: 6px;
}

.llms-period-head strong {
  color: #111827;
}

.llms-legend-inline {
  display: flex;
  gap: 10px;
  font-size: 10.5px;
  color: #52525b;
}

.llms-rank-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 18px;
  padding-top: 10px;
  border-top: 1px solid #f4f4f5;
}

.llms-rank-row {
  display: grid;
  grid-template-columns: 14px 104px 1fr 22px;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #374151;
}

.llms-rank-row.is-you strong {
  color: #111827;
}

.llms-rank-track {
  height: 5px;
  border-radius: 999px;
  background: #f3f4f6;
  overflow: hidden;
}

.llms-rank-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #166534;
}

.llms-rank-fill.is-amber { background: #d97706; }
.llms-rank-fill.is-red { background: #dc2626; }

.llms-kpi-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.llms-kpi-card {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 9px 10px;
  background: #ffffff;
}

.llms-kpi-title {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: #6b7280;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.llms-kpi-val {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  line-height: 1.1;
}

.llms-kpi-delta {
  display: block;
  font-size: 10px;
  color: #16a34a;
  font-weight: 600;
  margin-top: 2px;
}

.llms-bottom-trio {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.llms-gap-card {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 11px 12px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.llms-gap-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.llms-gap-head strong {
  font-size: 11.5px;
  color: #111827;
}

.llms-gap-card p {
  font-size: 10.5px;
  color: #52525b;
  line-height: 1.4;
}

.llms-gap-link {
  margin-top: auto;
  font-size: 10.5px;
  font-weight: 600;
  color: #6d28d9;
}

/* Sources & Fan-out sub-views in Dashboard */
.llms-sources-card {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px 16px;
  background: #ffffff;
}

.llms-sources-bars {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 10px;
}

.llms-source-row {
  display: grid;
  grid-template-columns: 120px 1fr 44px;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
}

.llms-source-row.is-own span:first-child {
  color: #166534;
  font-weight: 700;
}

.llms-source-bar-track {
  height: 11px;
  border-radius: 4px;
  background: #f4f4f5;
  overflow: hidden;
}

.llms-source-bar-fill {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: #d62d66;
}

.llms-source-bar-fill.is-own {
  background: #166534;
}

.llms-toggle-pair {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 10.5px;
  color: #52525b;
}

.llms-mini-toggle {
  display: inline-block;
  width: 24px;
  height: 14px;
  border-radius: 999px;
  background: #6d28d9;
  position: relative;
  vertical-align: middle;
  margin-left: 4px;
}

.llms-mini-toggle::after {
  content: "";
  position: absolute;
  right: 2px;
  top: 2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ffffff;
}

.dash-view[hidden] {
  display: none;
}

/* ==========================================================================
   Bento Cards — Matching LLMsMonitor's Bento Visuals
   ========================================================================== */
.bento-read-stage {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 50%, rgba(124, 58, 237, 0.08), transparent 72%),
    linear-gradient(180deg, #faf9ff 0%, #ffffff 100%);
  border: 1px solid rgba(109, 40, 217, 0.1);
}

.bento-pill-bar {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 24px rgba(109, 40, 217, 0.08);
}

.bento-pill-bar strong {
  font-size: 13px;
  color: #111827;
}

.bento-pill-bar span.bento-reads-tag {
  margin-left: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10.5px;
  color: #6b7280;
}

.bento-status-pair {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.bento-badge-tilted-l {
  transform: rotate(-3deg);
  box-shadow: 0 6px 16px rgba(217, 119, 6, 0.14);
}

.bento-badge-tilted-r {
  transform: rotate(3deg);
  box-shadow: 0 6px 16px rgba(22, 163, 74, 0.14);
}

/* Bento 4 Export / Report Cards */
.folder-front-logo {
  width: 38px;
  height: 38px;
  border-radius: 9px;
}

.doc-badge {
  background: rgba(124, 58, 237, 0.12);
  color: #6d28d9;
}

/* Capabilities Equalizer (Bento-5 style) */
.llms-eq-bars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 112px;
  padding-top: 18px;
}

.llms-eq-bars span {
  width: 7px;
  height: var(--h);
  border-radius: 999px;
  background: linear-gradient(180deg, #4f46e5 0%, #818cf8 100%);
  animation: veylo-bob 2.8s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}

.llms-eq-bars span.is-mid {
  background: linear-gradient(180deg, #6d28d9 0%, #a78bfa 100%);
}

/* Integrations Orbital Tiles */
.tool-tile img {
  width: 28px;
  height: 28px;
  display: block;
}

.tile-7,
.tile-8 {
  opacity: 0.85;
}

/* Engine Badges in Step 1 */
.app-badge img {
  width: 18px;
  height: 18px;
  display: block;
}

.app-cg { background: #ecfdf5; }
.app-ao { background: #f8fafc; }
.app-gm { background: #eff6ff; }

/* Native Modal <dialog> (Modern Web Guidance compliant) */
.llms-dialog {
  width: min(460px, calc(100vw - 32px));
  margin: auto;
  padding: 28px;
  border: 1px solid var(--slate-12);
  border-radius: 22px;
  background: #ffffff;
  color: var(--navy);
  box-shadow: 0 28px 70px rgba(91, 33, 182, 0.22);
}

.llms-dialog:modal {
  overscroll-behavior: contain;
}

.llms-dialog::backdrop {
  overflow: hidden;
  overscroll-behavior: contain;
  background: rgba(24, 24, 27, 0.45);
  backdrop-filter: blur(6px);
}

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

.dialog-title {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--navy);
}

.dialog-close {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--slate-12);
  background: var(--surface);
  color: var(--navy);
  font-size: 20px;
  line-height: 1;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
}

.dialog-close:hover {
  background: var(--slate-08);
}

.dialog-subtitle {
  font-size: 14px;
  color: var(--slate);
  margin-bottom: 18px;
}

.dialog-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-group label {
  font-size: 13px;
  font-weight: 500;
  color: var(--navy);
}

.field-group input {
  height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--slate-20);
  background: var(--surface);
  color: var(--navy);
  font: inherit;
  font-size: 14px;
}

.field-group input:focus {
  outline: none;
  border-color: var(--llms-violet);
  background: #ffffff;
}

.dialog-feedback {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--llms-green-bg);
  border: 1px solid rgba(22, 163, 74, 0.25);
  color: var(--llms-green-deep);
  font-size: 13px;
  line-height: 1.45;
}

.dialog-feedback a {
  color: var(--llms-violet);
  font-weight: 600;
  text-decoration: underline;
}

@media (max-width: 960px) {
  .llms-kpi-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .llms-score-split,
  .llms-rank-grid,
  .llms-bottom-trio {
    grid-template-columns: 1fr;
  }

  .llms-period-chart {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid #f4f4f5;
    padding-top: 10px;
  }
}

@media (max-width: 809px) {
  .llms-dash {
    grid-template-columns: 1fr;
  }

  .llms-sidebar {
    display: none;
  }

  .llms-kpi-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav-actions-group {
    width: 100%;
    flex-direction: column;
  }

  .nav-live-link {
    width: 100%;
    justify-content: center;
    border: 1px solid var(--slate-12);
  }
}
