:root {
  --brand-blue: #6654e8;
  --brand-violet: #5b2bd9;
  --brand-purple: #5b2bd9;
  --brand-pink: #ef4d7d;
  --brand-coral: #ef4d7d;
  --brand-ink: #12133f;
  --surface: #ffffff;
  --surface-soft: #f8f7fc;
  --surface-violet: #f1edff;
  --border: #e7e4f1;
  --muted: #74758d;
  --success: #0b6b4f;
  --success-soft: #e9f8f2;
  --warning: #8a5000;
  --warning-soft: #fff5df;
  --danger: #b3263d;
  --danger-soft: #fff0f3;
  --info: #2f69e8;
  --shadow-sm: 0 8px 28px rgba(32, 21, 75, 0.06);
  --shadow-md: 0 18px 55px rgba(32, 21, 75, 0.11);
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 28px;
  --header-height: 74px;
  --sidebar-width: 248px;
  --font-body: "DM Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Manrope", var(--font-body);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--surface-soft);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--brand-ink);
  background:
    radial-gradient(circle at 8% -8%, rgba(91, 34, 242, 0.07), transparent 28rem),
    var(--surface-soft);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.14;
  letter-spacing: -0.035em;
}

::selection {
  color: #fff;
  background: var(--brand-violet);
}

:focus-visible {
  outline: 3px solid rgba(91, 34, 242, 0.28);
  outline-offset: 2px;
}

.skip-link {
  position: fixed;
  z-index: 500;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  transform: translateY(-150%);
  border-radius: 10px;
  color: #fff;
  background: var(--brand-ink);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: none;
}

.app-loading {
  display: grid;
  min-height: 100vh;
  place-content: center;
  gap: 12px;
  color: var(--muted);
  text-align: center;
}

.loading-mark {
  display: grid;
  width: 62px;
  height: 62px;
  margin: 0 auto;
  place-items: center;
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-purple) 60%, var(--brand-pink));
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  box-shadow: var(--shadow-md);
}

.global-header {
  position: sticky;
  z-index: 100;
  top: 0;
  display: flex;
  min-height: var(--header-height);
  align-items: center;
  gap: 26px;
  padding: 10px clamp(18px, 4vw, 58px);
  border-bottom: 1px solid rgba(231, 228, 241, 0.9);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
}

.brand-link {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
}

.brand-link img {
  width: 95px;
  height: 52px;
  object-fit: contain;
}

.global-nav {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.nav-link {
  position: relative;
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border-radius: 12px;
  color: #66677e;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover {
  color: var(--brand-violet);
  background: var(--surface-violet);
  transform: translateY(-1px);
}

.nav-link.active {
  color: var(--brand-violet);
  background: var(--surface-violet);
  font-weight: 700;
}

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

.privacy-toggle {
  display: inline-flex;
  height: 40px;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: var(--brand-ink);
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(18, 19, 63, 0.03);
}

.privacy-toggle[aria-pressed="true"] {
  border-color: rgba(91, 34, 242, 0.25);
  color: var(--brand-violet);
  background: var(--surface-violet);
}

.toggle-dot {
  position: relative;
  width: 30px;
  height: 18px;
  border-radius: 999px;
  background: #d9d7e4;
  transition: background 0.2s ease;
}

.toggle-dot::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(18, 19, 63, 0.25);
  content: "";
  transition: transform 0.2s ease;
}

.privacy-toggle[aria-pressed="true"] .toggle-dot {
  background: var(--brand-violet);
}

.privacy-toggle[aria-pressed="true"] .toggle-dot::after {
  transform: translateX(12px);
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
}

.page-view {
  min-height: calc(100vh - var(--header-height));
  animation: page-in 0.35s ease both;
}

@keyframes page-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 17px;
  border: 1px solid transparent;
  border-radius: 13px;
  font-size: 14px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(120deg, var(--brand-violet), var(--brand-purple));
  box-shadow: 0 10px 24px rgba(91, 34, 242, 0.2);
}

.btn-primary:hover {
  box-shadow: 0 14px 28px rgba(91, 34, 242, 0.28);
}

.btn-secondary {
  border-color: var(--border);
  background: #fff;
  color: var(--brand-ink);
}

.btn-ghost {
  border-color: transparent;
  color: var(--brand-violet);
  background: var(--surface-violet);
}

.btn-danger {
  border-color: #ffd0d8;
  color: var(--danger);
  background: var(--danger-soft);
}

.btn-sm {
  min-height: 36px;
  padding: 7px 12px;
  border-radius: 10px;
  font-size: 12px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--brand-violet);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand-violet), var(--brand-pink));
  content: "";
}

.muted {
  color: var(--muted);
}

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

.home-page {
  overflow: hidden;
  background: #fff;
}

.home-hero {
  position: relative;
  display: grid;
  min-height: 700px;
  align-items: center;
  grid-template-columns: minmax(0, 1.15fr) minmax(380px, 0.85fr);
  gap: clamp(28px, 5vw, 82px);
  padding: clamp(54px, 6vw, 86px) clamp(22px, 7vw, 112px);
  isolation: isolate;
}

.home-hero::before {
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    radial-gradient(circle at 84% 22%, rgba(155, 34, 244, 0.18), transparent 26rem),
    radial-gradient(circle at 9% 78%, rgba(22, 100, 255, 0.12), transparent 24rem),
    linear-gradient(180deg, #fff 0%, #fbfaff 100%);
  content: "";
}

.home-hero::after {
  position: absolute;
  z-index: -1;
  top: 72px;
  right: -150px;
  width: 560px;
  height: 560px;
  border: 1px solid rgba(91, 34, 242, 0.11);
  border-radius: 50%;
  content: "";
}

.hero-copy {
  max-width: 690px;
}

.hero-logo {
  width: clamp(128px, 12vw, 155px);
  height: auto;
  margin-bottom: 22px;
}

.home-hero h1 {
  max-width: 690px;
  margin-bottom: 22px;
  color: var(--brand-ink);
  font-size: clamp(48px, 5.4vw, 76px);
  font-weight: 800;
  letter-spacing: -0.062em;
}

.home-hero h1 span {
  display: block;
  color: transparent;
  background: linear-gradient(100deg, var(--brand-blue), var(--brand-violet) 46%, var(--brand-pink));
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-copy > p {
  max-width: 610px;
  margin-bottom: 32px;
  color: #62637a;
  font-size: clamp(17px, 1.7vw, 20px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-visual {
  position: relative;
  min-height: 560px;
}

.network-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(36vw, 500px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(91, 34, 242, 0.14);
  border-radius: 50%;
}

.network-orbit::before,
.network-orbit::after {
  position: absolute;
  border: 1px dashed rgba(91, 34, 242, 0.13);
  border-radius: 50%;
  content: "";
}

.network-orbit::before {
  inset: 13%;
}

.network-orbit::after {
  inset: 27%;
}

.network-hub {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  display: grid;
  width: 116px;
  height: 116px;
  transform: translate(-50%, -50%);
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 24px 70px rgba(91, 34, 242, 0.22);
  backdrop-filter: blur(12px);
}

.network-hub img {
  width: 80px;
}

.platform-node {
  position: absolute;
  z-index: 4;
  display: flex;
  min-width: 112px;
  min-height: 54px;
  align-items: center;
  gap: 9px;
  padding: 10px 13px;
  border: 1px solid rgba(231, 228, 241, 0.9);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
  font-size: 12px;
  font-weight: 700;
  backdrop-filter: blur(10px);
  animation: float 5s ease-in-out infinite;
}

.platform-mark {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  color: var(--brand-violet);
  background: var(--surface-violet);
  border: 1px solid rgba(91, 43, 217, 0.1);
}

.platform-icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.platform-node:nth-child(2) { top: 5%; left: 35%; }
.platform-node:nth-child(3) { top: 23%; right: -2%; animation-delay: -0.8s; }
.platform-node:nth-child(4) { right: 5%; bottom: 21%; animation-delay: -1.6s; }
.platform-node:nth-child(5) { bottom: 2%; left: 34%; animation-delay: -2.4s; }
.platform-node:nth-child(6) { bottom: 20%; left: -3%; animation-delay: -3.2s; }
.platform-node:nth-child(7) { top: 22%; left: -5%; animation-delay: -4s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.mark-meta,
.mark-tiktok,
.mark-google,
.mark-snapchat,
.mark-sheets,
.mark-store,
.mark-all,
.mark-website,
.mark-wordpress,
.mark-shopify,
.mark-odoo,
.mark-openai,
.mark-anthropic,
.mark-crm {
  color: var(--brand-violet);
  background: var(--surface-violet);
}

.home-section {
  padding: clamp(76px, 9vw, 128px) clamp(22px, 7vw, 112px);
}

.home-section.alt {
  background: var(--surface-soft);
}

.section-heading {
  display: flex;
  max-width: 1180px;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin: 0 auto 44px;
}

.section-heading > div:first-child {
  max-width: 680px;
}

.section-heading h2 {
  margin-bottom: 12px;
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 800;
}

.section-heading p {
  max-width: 550px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
}

.tools-grid,
.feature-grid,
.steps-grid {
  display: grid;
  max-width: 1180px;
  margin: 0 auto;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.tool-card,
.feature-card,
.step-card {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.tool-card:hover,
.feature-card:hover,
.step-card:hover {
  transform: translateY(-4px);
  border-color: rgba(91, 34, 242, 0.23);
  box-shadow: var(--shadow-sm);
}

.tool-icon,
.feature-icon {
  display: grid;
  width: 45px;
  height: 45px;
  margin-bottom: 30px;
  place-items: center;
  border-radius: 14px;
  color: var(--brand-violet);
  background: var(--surface-violet);
}

.tool-card h3,
.feature-card h3,
.step-card h3 {
  margin-bottom: 8px;
  font-size: 20px;
}

.tool-card p,
.feature-card p,
.step-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.performance-showcase {
  display: grid;
  max-width: 1180px;
  align-items: center;
  margin: 0 auto;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(40px, 7vw, 100px);
}

.showcase-copy h2 {
  margin-bottom: 18px;
  font-size: clamp(38px, 4.6vw, 62px);
}

.showcase-copy > p {
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 17px;
}

.check-list {
  display: grid;
  gap: 13px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 600;
}

.check-list li::before {
  display: grid;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: var(--success);
  background: var(--success-soft);
  content: "✓";
  font-size: 12px;
  font-weight: 800;
}

.showcase-panel {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-md);
}

.showcase-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.mini-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.mini-metric {
  padding: 15px;
  border-radius: 14px;
  background: var(--surface-soft);
}

.mini-metric small {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
}

.mini-metric strong {
  display: block;
  font-family: var(--font-display);
  font-size: 20px;
}

.step-card {
  min-height: 220px;
}

.step-number {
  display: flex;
  margin-bottom: 38px;
  color: var(--brand-violet);
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.workspace-cta {
  position: relative;
  overflow: hidden;
  max-width: 1180px;
  padding: clamp(42px, 6vw, 80px);
  margin: 0 auto;
  border-radius: 34px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 0%, rgba(255, 60, 146, 0.46), transparent 22rem),
    linear-gradient(120deg, #15164a, #4216a8 60%, #7922d0);
}

.workspace-cta::after {
  position: absolute;
  right: -80px;
  bottom: -190px;
  width: 390px;
  height: 390px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  content: "";
}

.workspace-cta h2 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(36px, 5vw, 64px);
}

.workspace-cta p {
  max-width: 620px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 17px;
}

.workspace-cta .btn-primary {
  color: var(--brand-violet);
  background: #fff;
  box-shadow: none;
}

.site-footer {
  display: grid;
  align-items: center;
  padding: 36px clamp(22px, 7vw, 112px);
  border-top: 1px solid var(--border);
  background: #fff;
  grid-template-columns: 1fr auto 1fr;
  gap: 22px;
}

.site-footer img {
  width: 92px;
}

.footer-copy {
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: flex-end;
  gap: 22px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--brand-violet);
}

/* Application shell */
.app-shell {
  display: grid;
  min-height: calc(100vh - var(--header-height));
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
}

.app-sidebar {
  position: sticky;
  top: var(--header-height);
  overflow-x: hidden;
  overflow-y: auto;
  height: calc(100vh - var(--header-height));
  padding: 24px 16px;
  border-right: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.95);
}

.sidebar-label {
  display: block;
  padding: 0 12px;
  margin: 4px 0 10px;
  color: #9695a8;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.workspace-switcher {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 10px;
  padding: 11px;
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 18px;
  background: #fff;
  text-align: left;
}

.workspace-avatar {
  display: grid;
  width: 35px;
  height: 35px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-violet), var(--brand-pink));
  font-size: 12px;
  font-weight: 800;
}

.workspace-switcher span:not(.workspace-avatar) {
  min-width: 0;
  flex: 1;
}

.workspace-switcher strong,
.workspace-switcher small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-switcher strong {
  font-size: 13px;
}

.workspace-switcher small {
  color: var(--muted);
  font-size: 10px;
}

.sidebar-nav {
  display: grid;
  gap: 4px;
}

.sidebar-link {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 11px;
  padding: 9px 12px;
  border-radius: 12px;
  color: #65667c;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.18s ease, color 0.18s ease;
}

.sidebar-link:hover,
.sidebar-link.active {
  color: var(--brand-violet);
  background: var(--surface-violet);
}

.sidebar-link.active {
  font-weight: 700;
}

.sidebar-link .sidebar-text {
  min-width: 0;
  flex: 1;
}

.sidebar-link .sidebar-text small {
  display: block;
  overflow: hidden;
  color: #9998aa;
  font-size: 10px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-divider {
  height: 1px;
  margin: 16px 10px;
  background: var(--border);
}

.app-main {
  min-width: 0;
  padding: 28px clamp(18px, 3.2vw, 48px) 60px;
}

.page-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: #9392a5;
  font-size: 12px;
  font-weight: 600;
}

.breadcrumb span:last-child {
  color: var(--brand-violet);
}

.page-topbar h1 {
  margin-bottom: 7px;
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 800;
}

.page-subtitle {
  max-width: 650px;
  margin-bottom: 0;
  color: var(--muted);
}

.topbar-actions,
.toolbar,
.toolbar-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}

.control,
.search-control {
  min-height: 40px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: #fff;
  color: var(--brand-ink);
  font-size: 12px;
  font-weight: 600;
}

.control {
  padding: 8px 34px 8px 12px;
}

.search-control {
  min-width: 220px;
  padding: 8px 12px 8px 36px;
}

.search-wrap {
  position: relative;
}

.search-wrap .icon {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 11px;
  width: 16px;
  color: var(--muted);
  transform: translateY(-50%);
  pointer-events: none;
}

.date-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  margin-bottom: 20px;
  background: #fff;
}

.segmented {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 3px;
  padding: 3px;
  border-radius: 11px;
  background: var(--surface-soft);
}

.segment {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 11px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.segment .platform-icon { width: 14px; height: 14px; stroke-width: 2; }

.segment:hover,
.segment.active {
  color: var(--brand-violet);
  background: #fff;
  box-shadow: 0 2px 9px rgba(18, 19, 63, 0.06);
}

.compare-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.overview-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 20px;
  border-radius: 17px;
  margin-bottom: 14px;
  color: #fff;
  background:
    radial-gradient(circle at 88% -40%, rgba(255, 80, 166, 0.55), transparent 20rem),
    linear-gradient(105deg, #35139a, var(--brand-violet) 55%, #7e25d4);
}

.overview-banner h2 {
  margin-bottom: 3px;
  font-size: 20px;
}

.overview-banner p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
}

.sync-note {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 11px;
}

.sync-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6bffc8;
  box-shadow: 0 0 0 5px rgba(107, 255, 200, 0.13);
}

.platform-row {
  margin-bottom: 13px;
  border: 1px solid var(--border);
  border-radius: 17px;
  background: #fff;
}

.platform-row-head {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 11px 15px;
  border-bottom: 1px solid var(--border);
}

.platform-name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.platform-name small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
}

.platform-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--success);
  font-size: 10px;
  font-weight: 700;
}

.platform-status .icon {
  width: 15px;
  height: 15px;
  stroke-width: 2.1;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.metric-card {
  min-width: 0;
  padding: 18px 16px;
  border-right: 1px solid var(--border);
}

.metric-card:last-child {
  border-right: 0;
}

.metric-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.metric-label-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  padding: 2px;
  border-radius: 5px;
  color: var(--brand-violet);
  background: var(--surface-violet);
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.metric-value {
  display: block;
  overflow: hidden;
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-size: clamp(18px, 1.6vw, 24px);
  font-weight: 800;
  letter-spacing: -0.04em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.metric-change {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
}

.trend-icon {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  padding: 2px;
  border-radius: 50%;
  background: currentColor;
  stroke: #fff;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.metric-change.positive { color: var(--success); }
.metric-change.negative { color: var(--danger); }
.metric-change.neutral { color: var(--muted); }

.signal-mark {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.signal-mark .icon {
  width: 15px;
  height: 15px;
  stroke-width: 2;
}

.signal-compact {
  min-height: 24px;
  padding: 4px 7px;
  font-size: 10px;
}

.signal-success { color: var(--success); background: var(--success-soft); border-color: rgba(18, 155, 112, 0.12); }
.signal-warning { color: var(--warning); background: var(--warning-soft); border-color: rgba(217, 130, 18, 0.14); }
.signal-danger { color: var(--danger); background: var(--danger-soft); border-color: rgba(223, 66, 92, 0.14); }
.signal-info { color: var(--brand-violet); background: var(--surface-violet); border-color: rgba(91, 43, 217, 0.12); }

.content-grid {
  display: grid;
  margin-top: 18px;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}

.panel {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}

.panel.span-12 { grid-column: span 12; }
.panel.span-8 { grid-column: span 8; }
.panel.span-7 { grid-column: span 7; }
.panel.span-6 { grid-column: span 6; }
.panel.span-5 { grid-column: span 5; }
.panel.span-4 { grid-column: span 4; }
.panel.span-3 { grid-column: span 3; }

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

.panel-head h2,
.panel-head h3 {
  margin-bottom: 4px;
  font-size: 17px;
}

.panel-head p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 11px;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
}

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

.legend-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.line-chart {
  width: 100%;
  min-height: 230px;
}

.chart-grid-line {
  stroke: #eceaf4;
  stroke-width: 1;
}

.chart-axis-label {
  fill: #a09fb2;
  font-family: var(--font-body);
  font-size: 9px;
}

.chart-area {
  opacity: 0.1;
}

.bar-list,
.rank-list,
.insight-list {
  display: grid;
  gap: 14px;
}

.bar-item-head,
.rank-item,
.insight-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.bar-item-head {
  margin-bottom: 7px;
  font-size: 11px;
  font-weight: 700;
}

.bar-track {
  overflow: hidden;
  height: 7px;
  border-radius: 999px;
  background: #f0eef6;
}

.bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand-violet), var(--brand-coral));
}

.rank-item {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.rank-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.rank-name {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
}

.rank-number {
  display: grid;
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 9px;
  color: var(--brand-violet);
  background: var(--surface-violet);
  font-size: 10px;
  font-weight: 800;
}

.rank-name strong,
.rank-name small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-name strong { font-size: 12px; }
.rank-name small { color: var(--muted); font-size: 10px; }
.rank-value { flex: 0 0 auto; text-align: right; }
.rank-value strong { display: block; font-size: 12px; }
.rank-value small { color: var(--success); font-size: 10px; }

.insight-row {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.insight-row:last-child { border-bottom: 0; }
.insight-row span { color: var(--muted); font-size: 11px; }
.insight-row strong { font-family: var(--font-display); font-size: 14px; }

.kpi-card {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
}

.kpi-card .kpi-icon {
  display: grid;
  width: 35px;
  height: 35px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 11px;
  color: var(--brand-violet);
  background: var(--surface-violet);
}

.kpi-card small { color: var(--muted); }
.kpi-card strong { display: block; margin-top: 3px; font-family: var(--font-display); font-size: 23px; }

.kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.demo-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 35px;
  padding: 7px 18px;
  border-bottom: 1px solid rgba(91, 34, 242, 0.12);
  color: var(--brand-violet);
  background: #f5f2ff;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.demo-strip::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-violet);
  content: "";
}

.reports-shell {
  min-height: calc(100vh - var(--header-height) - 35px);
}

.reports-shell .app-sidebar {
  top: calc(var(--header-height) + 35px);
  height: calc(100vh - var(--header-height) - 35px);
}

.reports-sidebar .sidebar-link {
  min-height: 58px;
  align-items: flex-start;
  padding: 10px;
}

.sidebar-symbol {
  display: grid;
  width: 31px;
  height: 31px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  color: var(--brand-violet);
  background: var(--surface-violet);
  font-size: 15px;
}

.sidebar-symbol .icon {
  width: 17px;
  height: 17px;
  stroke-width: 1.9;
}

.toolbar {
  justify-content: space-between;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 15px;
  margin-bottom: 16px;
  background: #fff;
}

.table-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}

.table-scroll {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  min-width: 1100px;
  border-collapse: collapse;
  font-size: 11px;
}

.data-table th,
.data-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--border);
  text-align: right;
  white-space: nowrap;
}

.data-table th:first-child,
.data-table td:first-child,
.data-table th:nth-child(2),
.data-table td:nth-child(2) {
  text-align: left;
}

.data-table th {
  position: sticky;
  z-index: 1;
  top: 0;
  color: #87869a;
  background: #fbfaff;
  font-size: 10px;
  font-weight: 700;
}

.data-table tbody tr:hover {
  background: #fcfbff;
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.entity-cell {
  max-width: 220px;
}

.entity-cell strong,
.entity-cell small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.entity-cell small {
  color: var(--muted);
  font-size: 9px;
}

.status-badge,
.priority-badge,
.platform-badge,
.role-badge {
  display: inline-flex;
  min-height: 23px;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
}

.status-badge::before {
  display: grid;
  width: 13px;
  height: 13px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  content: "✓";
  font-size: 8px;
  font-weight: 900;
  line-height: 1;
}

.status-learning::before { border-radius: 4px; content: "!"; }
.status-error::before { content: "×"; }
.status-paused::before { content: "–"; }

.status-active { color: var(--success); background: var(--success-soft); }
.status-paused { color: #77778a; background: #f0eff4; }
.status-learning { color: var(--warning); background: var(--warning-soft); }
.status-error { color: var(--danger); background: var(--danger-soft); }
.priority-high { color: var(--brand-violet); background: var(--surface-violet); }
.priority-medium { color: var(--brand-ink); background: #f0eff4; }
.priority-low { color: #595a70; background: var(--surface-soft); }
.platform-badge,
.role-badge { color: var(--brand-violet); background: var(--surface-violet); }

.platform-badge .platform-icon {
  width: 13px;
  height: 13px;
  stroke-width: 2;
}

.table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 15px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 10px;
}

.recommendation-grid,
.creative-grid,
.connection-grid,
.settings-grid,
.help-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.recommendation-card,
.creative-card,
.connection-card,
.settings-card,
.help-card {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 17px;
  background: #fff;
}

.recommendation-card {
  border-top: 3px solid var(--brand-violet);
}

.recommendation-card.tone-success { border-top-color: var(--success); }
.recommendation-card.tone-warning { border-top-color: var(--warning); }
.recommendation-card.tone-danger { border-top-color: var(--danger); }

.recommendation-head > div > .signal-mark {
  margin-bottom: 10px;
}

.recommendation-head,
.connection-head,
.settings-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 13px;
  margin-bottom: 17px;
}

.recommendation-head h3,
.connection-head h3,
.settings-card h3 {
  margin-bottom: 4px;
  font-size: 15px;
}

.recommendation-head p,
.connection-head p,
.settings-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 10px;
}

.recommendation-reason {
  min-height: 48px;
  margin-bottom: 14px;
  color: #5d5e73;
  font-size: 12px;
}

.recommendation-metrics {
  display: grid;
  padding: 12px;
  border-radius: 12px;
  margin-bottom: 14px;
  background: var(--surface-soft);
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.recommendation-metrics small,
.recommendation-metrics strong { display: block; }
.recommendation-metrics small { color: var(--muted); font-size: 9px; }
.recommendation-metrics strong { font-size: 12px; }

.bar-fill.bar-success { background: var(--success); }
.bar-fill.bar-warning { background: var(--warning); }
.bar-fill.bar-danger { background: var(--danger); }

.signal-row > div {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.signal-row > div > .signal-mark {
  width: max-content;
}

.daily-report {
  max-width: 920px;
  padding: clamp(24px, 4vw, 54px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin: 0 auto;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.report-cover {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.report-cover img { width: 105px; }
.report-cover h2 { margin-bottom: 4px; font-size: 25px; }
.report-cover p { margin-bottom: 0; color: var(--muted); font-size: 11px; }

.report-summary {
  padding: 17px;
  border-left: 3px solid var(--brand-violet);
  border-radius: 0 13px 13px 0;
  margin-top: 22px;
  background: var(--surface-violet);
  color: #535468;
  font-size: 13px;
}

.timeline-list {
  position: relative;
  display: grid;
  gap: 0;
}

.timeline-item {
  position: relative;
  display: grid;
  padding: 0 0 22px 33px;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 18px;
}

.timeline-item::before {
  position: absolute;
  top: 5px;
  left: 8px;
  width: 9px;
  height: 9px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--brand-violet);
  box-shadow: 0 0 0 2px var(--brand-violet);
  content: "";
}

.timeline-item::after {
  position: absolute;
  top: 18px;
  bottom: -2px;
  left: 12px;
  width: 1px;
  background: var(--border);
  content: "";
}

.timeline-item:last-child::after { display: none; }
.timeline-time { color: var(--muted); font-size: 10px; }
.timeline-content strong { display: block; margin-bottom: 3px; font-size: 12px; }
.timeline-content p { margin-bottom: 5px; color: var(--muted); font-size: 11px; }
.timeline-content small { color: #9695a8; font-size: 9px; }

/* Creative analysis */
.creative-hero-strip {
  display: grid;
  padding: 22px;
  border: 1px solid rgba(91, 34, 242, 0.15);
  border-radius: 20px;
  margin-bottom: 18px;
  background:
    radial-gradient(circle at 90% 0%, rgba(255, 60, 146, 0.14), transparent 17rem),
    linear-gradient(135deg, #faf8ff, #fff);
  grid-template-columns: 1fr auto;
  gap: 22px;
}

.creative-hero-strip h2 { margin-bottom: 6px; font-size: 24px; }
.creative-hero-strip p { margin-bottom: 0; color: var(--muted); }

.creative-card {
  overflow: hidden;
  padding: 0;
}

.creative-media {
  position: relative;
  display: grid;
  overflow: hidden;
  height: 190px;
  place-items: center;
  color: #fff;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.2), transparent 9rem),
    linear-gradient(135deg, var(--brand-ink), var(--brand-violet));
}

.creative-media.visual-violet { background: linear-gradient(135deg, #21145f, var(--brand-violet)); }
.creative-media.visual-ink { background: linear-gradient(135deg, var(--brand-ink), #4731a6); }
.creative-media.visual-coral { background: linear-gradient(135deg, var(--brand-violet), var(--brand-coral)); }

.creative-platform {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 9px 5px 5px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: rgba(18, 19, 63, 0.35);
  font-size: 9px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.creative-platform .platform-mark {
  width: 25px;
  height: 25px;
  border: 0;
  background: rgba(255, 255, 255, 0.95);
}

.creative-platform .platform-icon {
  width: 14px;
  height: 14px;
}

.creative-art {
  position: relative;
  display: block;
  width: 94px;
  height: 94px;
  transform: rotate(-4deg);
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 23px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 18px 18px 0 rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(8px);
}

.creative-art span {
  position: absolute;
  display: block;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
}

.creative-art span:nth-child(1) { top: 24px; left: 21px; width: 52px; height: 10px; }
.creative-art span:nth-child(2) { top: 43px; left: 21px; width: 38px; height: 7px; opacity: 0.72; }
.creative-art span:nth-child(3) { left: 21px; bottom: 21px; width: 28px; height: 15px; background: var(--brand-coral); }

.creative-rank {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--brand-violet);
  background: rgba(255, 255, 255, 0.92);
  font-size: 9px;
  font-weight: 800;
}

.creative-body { padding: 17px; }
.creative-body h3 { margin-bottom: 4px; font-size: 15px; }
.creative-body > p { margin-bottom: 15px; color: var(--muted); font-size: 10px; }
.creative-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.creative-metric { padding: 9px; border-radius: 10px; background: var(--surface-soft); }
.creative-metric small { display: block; color: var(--muted); font-size: 8px; }
.creative-metric strong { display: block; font-size: 11px; }
.quality-metric .signal-mark { margin-top: 4px; }

.score-card {
  display: grid;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 17px;
  background: #fff;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
}

.score-rank {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-violet), var(--brand-pink));
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
}

.score-info h3 { margin-bottom: 4px; font-size: 15px; }
.score-info p { margin-bottom: 7px; color: var(--muted); font-size: 10px; }
.score-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.score-tag { padding: 4px 7px; border-radius: 7px; color: var(--success); background: var(--success-soft); font-size: 8px; font-weight: 700; }
.score-tag.weak { color: var(--warning); background: var(--warning-soft); }
.score-value { text-align: right; }
.score-value strong { display: block; color: var(--brand-violet); font-family: var(--font-display); font-size: 28px; }
.score-value small { color: var(--muted); font-size: 9px; }

.formula-card {
  padding: 18px;
  border: 1px dashed rgba(91, 34, 242, 0.3);
  border-radius: 16px;
  margin-bottom: 16px;
  color: #55566d;
  background: var(--surface-violet);
  font-size: 12px;
  text-align: center;
}

.formula-card strong { color: var(--brand-violet); }

.donut-wrap {
  display: grid;
  min-height: 210px;
  place-items: center;
}

.donut {
  position: relative;
  display: grid;
  width: 168px;
  height: 168px;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--brand-violet) 0 44%, var(--brand-pink) 44% 70%, var(--brand-blue) 70% 88%, #d9d7e6 88% 100%);
}

.donut::before {
  position: absolute;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: #fff;
  content: "";
}

.donut-label { position: relative; z-index: 1; text-align: center; }
.donut-label strong { display: block; font-family: var(--font-display); font-size: 26px; }
.donut-label small { color: var(--muted); font-size: 9px; }

/* Settings / help */
.settings-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
}

.settings-nav {
  align-self: start;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 17px;
  background: #fff;
}

.settings-nav a {
  display: flex;
  min-height: 39px;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.settings-nav a:hover,
.settings-nav a.active {
  color: var(--brand-violet);
  background: var(--surface-violet);
}

.settings-content {
  min-width: 0;
}

.settings-section {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}

.settings-section + .settings-section { margin-top: 14px; }
.settings-section > h2 { margin-bottom: 6px; font-size: 19px; }
.settings-section > p { margin-bottom: 20px; color: var(--muted); font-size: 12px; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.field {
  display: grid;
  gap: 6px;
}

.field.full { grid-column: 1 / -1; }
.field label { font-size: 10px; font-weight: 700; }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 43px;
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: #fff;
  font-size: 12px;
}

.field textarea { min-height: 88px; resize: vertical; }

.connection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.connection-card { position: relative; }
.connection-identity { display: flex; align-items: center; gap: 11px; }
.connection-identity .platform-mark { width: 42px; height: 42px; border-radius: 13px; }
.connection-identity .platform-icon { width: 21px; height: 21px; }
.connection-logo {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-violet), var(--brand-pink));
  font-size: 12px;
  font-weight: 800;
}

.connection-meta {
  display: grid;
  padding: 11px;
  border-radius: 11px;
  margin-bottom: 13px;
  background: var(--surface-soft);
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.connection-meta small,
.connection-meta strong { display: block; }
.connection-meta small { color: var(--muted); font-size: 8px; }
.connection-meta strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }

.role-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.role-table th,
.role-table td { padding: 12px; border-bottom: 1px solid var(--border); text-align: center; }
.role-table th:first-child,
.role-table td:first-child { text-align: left; }
.permission-yes { color: var(--success); font-weight: 800; }
.permission-no { color: #c1bfcb; }

.help-hero {
  padding: clamp(38px, 6vw, 72px);
  border-radius: 28px;
  margin-bottom: 20px;
  color: #fff;
  background:
    radial-gradient(circle at 85% 5%, rgba(255, 60, 146, 0.5), transparent 20rem),
    linear-gradient(120deg, #191752, #5520c6);
  text-align: center;
}

.help-hero h1 { margin-bottom: 12px; font-size: clamp(36px, 5vw, 58px); }
.help-hero p { max-width: 620px; margin: 0 auto 24px; color: rgba(255, 255, 255, 0.72); }
.help-search { width: min(100%, 560px); min-height: 52px; padding: 12px 18px; border: 0; border-radius: 15px; background: #fff; }
.help-card { min-height: 170px; }
.help-card .tool-icon { margin-bottom: 22px; }
.help-card h3 { margin-bottom: 6px; font-size: 16px; }
.help-card p { margin-bottom: 15px; color: var(--muted); font-size: 11px; }
.help-card a { color: var(--brand-violet); font-size: 11px; font-weight: 700; }

/* Dialogs, toasts, privacy */
dialog {
  width: min(92vw, 560px);
  padding: 0;
  border: 0;
  border-radius: 24px;
  color: var(--brand-ink);
  background: #fff;
  box-shadow: 0 28px 90px rgba(18, 19, 63, 0.27);
}

dialog::backdrop {
  background: rgba(18, 19, 63, 0.52);
  backdrop-filter: blur(5px);
}

.dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 24px 17px;
  border-bottom: 1px solid var(--border);
}

.dialog-head h2 { margin-bottom: 5px; font-size: 22px; }
.dialog-head p { margin-bottom: 0; color: var(--muted); font-size: 11px; }
.icon-button { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border: 1px solid var(--border); border-radius: 10px; background: #fff; }
.dialog-body { padding: 22px 24px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 9px; padding: 17px 24px 24px; }
.demo-notice { display: flex; gap: 10px; padding: 12px; border-radius: 12px; margin-bottom: 16px; color: #70580d; background: var(--warning-soft); font-size: 10px; }
.modal-steps { display: flex; gap: 5px; margin-bottom: 20px; }
.modal-step { height: 4px; flex: 1; border-radius: 999px; background: #e6e3ed; }
.modal-step.active { background: linear-gradient(90deg, var(--brand-violet), var(--brand-pink)); }

.toast-region {
  position: fixed;
  z-index: 300;
  right: 18px;
  bottom: 18px;
  display: grid;
  width: min(92vw, 350px);
  gap: 9px;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-md);
  animation: toast-in 0.25s ease both;
}

.toast-mark { display: grid; width: 26px; height: 26px; flex: 0 0 auto; place-items: center; border-radius: 9px; color: var(--success); background: var(--success-soft); font-size: 12px; font-weight: 800; }
.toast strong { display: block; font-size: 12px; }
.toast p { margin-bottom: 0; color: var(--muted); font-size: 10px; }

@keyframes toast-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.private-value {
  transition: filter 0.2s ease;
}

.privacy-mode .private-value {
  user-select: none;
  filter: blur(7px);
}

.privacy-mode .private-name {
  color: transparent !important;
  border-radius: 4px;
  background: #dedce7;
  text-shadow: none;
  user-select: none;
}

.empty-state {
  padding: 50px 20px;
  color: var(--muted);
  text-align: center;
}

.empty-state .tool-icon { margin: 0 auto 15px; }
.empty-state h3 { margin-bottom: 6px; color: var(--brand-ink); }

@media (max-width: 1180px) {
  .global-header { gap: 15px; padding-inline: 18px; }
  .nav-link { padding-inline: 9px; font-size: 12px; }
  .home-hero { grid-template-columns: 1fr 0.85fr; }
  .metric-grid { grid-template-columns: repeat(5, minmax(135px, 1fr)); overflow-x: auto; }
  .metric-card { min-width: 135px; }
  .recommendation-grid,
  .creative-grid,
  .settings-grid,
  .help-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  :root { --header-height: 66px; }
  .global-header { justify-content: space-between; }
  .brand-link img { width: 80px; height: 44px; }
  .mobile-menu-button { display: inline-flex; }
  .privacy-label { display: none; }
  .global-nav {
    position: fixed;
    z-index: 120;
    top: var(--header-height);
    right: 12px;
    left: 12px;
    display: none;
    align-items: stretch;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 17px;
    background: #fff;
    box-shadow: var(--shadow-md);
    flex-direction: column;
  }
  .global-nav.open { display: flex; }
  .nav-link { justify-content: space-between; }
  .home-hero { min-height: auto; grid-template-columns: 1fr; padding-top: 74px; }
  .hero-copy { text-align: center; margin: 0 auto; }
  .hero-logo { margin-inline: auto; }
  .hero-copy > p { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { min-height: 510px; }
  .network-orbit { width: min(82vw, 500px); }
  .tools-grid,
  .feature-grid,
  .steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .performance-showcase { grid-template-columns: 1fr; }
  .app-shell { grid-template-columns: 1fr; }
  .app-sidebar {
    position: relative;
    top: auto;
    overflow-x: auto;
    overflow-y: hidden;
    display: flex;
    height: auto;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
    scrollbar-width: none;
  }
  .app-sidebar::-webkit-scrollbar { display: none; }
  .app-sidebar .sidebar-label,
  .app-sidebar .workspace-switcher,
  .app-sidebar .sidebar-divider { display: none; }
  .sidebar-nav { display: flex; flex: 0 0 auto; gap: 4px; }
  .sidebar-link { min-height: 39px; white-space: nowrap; }
  .sidebar-link .sidebar-text small { display: none; }
  .reports-shell .app-sidebar { top: auto; height: auto; }
  .reports-sidebar .sidebar-link { min-height: 43px; align-items: center; }
  .sidebar-symbol { width: 27px; height: 27px; }
  .page-topbar { align-items: flex-start; flex-direction: column; }
  .topbar-actions { width: 100%; }
  .panel.span-8,
  .panel.span-7,
  .panel.span-6,
  .panel.span-5,
  .panel.span-4,
  .panel.span-3 { grid-column: span 12; }
  .settings-layout { grid-template-columns: 1fr; }
  .settings-nav { display: flex; overflow-x: auto; padding: 6px; }
  .settings-nav a { flex: 0 0 auto; white-space: nowrap; }
}

@media (max-width: 640px) {
  .privacy-toggle { width: 41px; padding: 0; justify-content: center; }
  .privacy-toggle .toggle-dot { width: 24px; }
  .privacy-toggle[aria-pressed="true"] .toggle-dot::after { transform: translateX(6px); }
  .home-hero { padding-inline: 18px; }
  .home-hero h1 { font-size: 46px; }
  .hero-actions .btn { width: 100%; }
  .hero-visual { min-height: 390px; }
  .platform-node { min-width: auto; min-height: 44px; padding: 7px; }
  .platform-node > span:last-child { display: none; }
  .network-hub { width: 92px; height: 92px; border-radius: 26px; }
  .network-hub img { width: 65px; }
  .home-section { padding-inline: 18px; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .tools-grid,
  .feature-grid,
  .steps-grid,
  .recommendation-grid,
  .creative-grid,
  .connection-grid,
  .settings-grid,
  .help-grid { grid-template-columns: 1fr; }
  .mini-metrics,
  .kpi-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer { grid-template-columns: 1fr; justify-items: center; }
  .footer-links { justify-content: center; }
  .app-main { padding: 22px 14px 44px; }
  .date-strip { align-items: stretch; }
  .segmented { width: 100%; }
  .segment { flex: 1; }
  .overview-banner { align-items: flex-start; flex-direction: column; }
  .metric-grid { grid-template-columns: repeat(5, 145px); }
  .panel { padding: 16px; }
  .toolbar { align-items: stretch; flex-direction: column; }
  .toolbar-group { width: 100%; }
  .search-wrap,
  .search-control,
  .toolbar .control { width: 100%; }
  .creative-hero-strip { grid-template-columns: 1fr; }
  .score-card { grid-template-columns: auto minmax(0, 1fr); }
  .score-value { grid-column: 1 / -1; text-align: left; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .timeline-item { grid-template-columns: 1fr; gap: 4px; }
  .report-cover { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .global-header,
  .app-sidebar,
  .demo-strip,
  .toolbar,
  .topbar-actions,
  .toast-region { display: none !important; }
  .app-shell { display: block; }
  .app-main { padding: 0; }
  .daily-report { max-width: none; border: 0; box-shadow: none; }
}
