:root {
  --bg: #f7fbff;
  --bg-strong: #edf5ff;
  --panel: rgba(255, 255, 255, 0.94);
  --panel-strong: #ffffff;
  --text: #10233c;
  --muted: #68809c;
  --line: rgba(16, 35, 60, 0.1);
  --brand: #1f9cff;
  --brand-dark: #1579ef;
  --brand-warm: #ff980f;
  --brand-warm-dark: #ff7b00;
  --accent: #145db8;
  --success: #12b76a;
  --warn: #e39b1f;
  --danger: #da4b37;
  --shadow: 0 24px 80px rgba(28, 72, 148, 0.08);
  --shadow-soft: 0 12px 32px rgba(28, 72, 148, 0.08);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(31, 156, 255, 0.12), transparent 30%),
    radial-gradient(circle at top right, rgba(255, 152, 15, 0.1), transparent 26%),
    radial-gradient(circle at bottom right, rgba(31, 156, 255, 0.08), transparent 24%),
    linear-gradient(180deg, #ffffff 0%, #f6fbff 44%, #eef6ff 100%);
}

body {
  line-height: 1.5;
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
}

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

img {
  max-width: 100%;
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.marketing {
  overflow: hidden;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 24px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(31, 156, 255, 0.16);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.nav-links,
.nav-actions,
.hero-actions,
.hero-proof,
.trust-brands {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.pill,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 12px 18px;
  transition: 160ms ease;
}

.pill {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(16, 32, 51, 0.08);
  box-shadow: var(--shadow-soft);
}

.button {
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.button-primary {
  background: var(--brand);
  color: #ffffff;
  border: 1px solid var(--brand-dark);
  box-shadow: 0 10px 24px rgba(31, 156, 255, 0.18);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(20, 65, 122, 0.12);
  color: var(--text);
}

.button-primary:hover,
.button-primary:focus-visible,
.app-sidebar-button:hover,
.app-sidebar-button:focus-visible,
.app-primary-button:hover,
.app-primary-button:focus-visible {
  background: var(--brand-dark);
  box-shadow: 0 12px 28px rgba(31, 156, 255, 0.22);
}

.button-secondary:hover,
.button-secondary:focus-visible,
.pill:hover,
.pill:focus-visible,
.app-icon-button:hover,
.app-icon-button:focus-visible {
  border-color: rgba(20, 65, 122, 0.18);
  box-shadow: 0 10px 24px rgba(28, 72, 148, 0.12);
}

.button-google {
  width: 100%;
  background: #ffffff;
  border: 1px solid rgba(16, 32, 51, 0.14);
  color: var(--text);
  box-shadow: var(--shadow-soft);
  margin-bottom: 18px;
}

.auth-divider {
  position: relative;
  text-align: center;
  margin: 4px 0 20px;
  color: var(--muted);
  font-size: 0.92rem;
}

.auth-divider::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border-top: 1px solid rgba(16, 32, 51, 0.1);
}

.auth-divider span {
  position: relative;
  display: inline-block;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.94);
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 34px;
  padding: 56px 0 64px;
  align-items: stretch;
}

.hero-monitoring {
  position: relative;
}

.hero-monitoring::after {
  content: "";
  position: absolute;
  right: -120px;
  top: 0;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 152, 15, 0.16), transparent 70%);
  pointer-events: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(16, 32, 51, 0.08);
  color: var(--muted);
  font-size: 0.95rem;
}

.eyebrow-strong {
  background: rgba(255, 152, 15, 0.12);
  color: #cb6d00;
}

.hero h1,
.section h2,
.auth-card h1,
.page-title {
  margin: 18px 0 12px;
  line-height: 0.95;
  font-size: clamp(3rem, 7vw, 5.4rem);
  letter-spacing: -0.04em;
  font-weight: 800;
}

.hero p,
.section p,
.muted {
  color: var(--muted);
}

.hero-copy p {
  max-width: 62ch;
  font-size: 1.08rem;
}

.hero-bullets {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 10px;
}

.hero-bullets li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
}

.hero-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--brand-warm);
  box-shadow: 0 0 0 6px rgba(255, 152, 15, 0.14);
}

.glass-card,
.panel,
.auth-card,
.metric-card,
.integration-card,
.snippet-card {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.hero-card,
.panel,
.metric-card,
.integration-card,
.snippet-card {
  padding: 24px;
}

.hero-surface {
  display: flex;
}

.surface-frame {
  width: 100%;
  background: linear-gradient(180deg, rgba(12, 24, 35, 0.96), rgba(16, 35, 49, 0.96));
  color: #f5fff9;
  border-radius: 30px;
  padding: 22px;
  box-shadow: 0 28px 70px rgba(16, 32, 51, 0.22);
}

.surface-topbar,
.stream-row,
.stack-row,
.trust-strip-inner,
.section-heading,
.cta-panel,
.dashboard-topbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.surface-topbar {
  align-items: center;
  margin-bottom: 20px;
}

.surface-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #12b76a;
  box-shadow: 0 0 0 8px rgba(18, 183, 106, 0.14);
}

.surface-meta {
  color: rgba(238, 245, 255, 0.74);
  font-size: 0.92rem;
}

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

.surface-card {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.surface-card-strong {
  background: linear-gradient(135deg, rgba(31, 156, 255, 0.18), rgba(255, 152, 15, 0.14));
}

.surface-value {
  margin-top: 10px;
  font-size: 2rem;
  font-weight: 800;
}

.surface-stream {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}

.stream-row {
  align-items: center;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(238, 245, 255, 0.86);
  font-size: 0.95rem;
}

.stream-row strong {
  color: #ffffff;
}

.dashboard-preview {
  display: grid;
  gap: 18px;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.preview-tile {
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(16, 32, 51, 0.08);
}

.preview-value {
  margin-top: 10px;
  font-size: 1.8rem;
  font-weight: 700;
}

.trust-strip {
  border-top: 1px solid rgba(16, 32, 51, 0.06);
  border-bottom: 1px solid rgba(16, 32, 51, 0.06);
  background: rgba(255, 255, 255, 0.66);
}

.trust-strip-inner {
  align-items: center;
  padding: 22px 0;
}

.trust-copy {
  color: var(--muted);
  font-weight: 600;
}

.trust-brands {
  justify-content: flex-end;
}

.trust-brands span {
  padding: 10px 14px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(16, 32, 51, 0.08);
  color: var(--text);
  font-weight: 700;
  box-shadow: var(--shadow-soft);
}

.section {
  padding: 34px 0 66px;
}

.grid-3,
.grid-2,
.metrics-grid,
.integration-grid,
.dashboard-layout,
.stack-form,
.live-grid,
.feature-band,
.showcase-grid {
  display: grid;
  gap: 18px;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

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

.section-heading {
  align-items: end;
  margin-bottom: 22px;
}

.section-heading p {
  max-width: 560px;
  margin: 0;
}

.section h2 {
  font-size: clamp(2.3rem, 5vw, 4rem);
}

.feature-title,
.card-title {
  font-size: 1.4rem;
  margin: 8px 0;
}

.metric-card,
.integration-card,
.snippet-card {
  padding: 22px;
}

.metrics-grid {
  grid-template-columns: repeat(4, 1fr);
}

.metric-value {
  font-size: 2rem;
  font-weight: 700;
  margin: 12px 0 4px;
}

.trend {
  color: var(--accent);
}

.dashboard-layout {
  grid-template-columns: 1.2fr 0.8fr;
  align-items: start;
}

.live-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.integration-grid {
  grid-template-columns: repeat(2, 1fr);
}

.tag {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.88rem;
  background: rgba(31, 156, 255, 0.12);
  color: var(--accent);
}

.tag.warn {
  background: rgba(197, 138, 25, 0.12);
  color: var(--warn);
}

.tag.neutral {
  background: rgba(16, 32, 51, 0.08);
  color: var(--muted);
}

.snug-list,
.check-list {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.check-list li {
  margin: 8px 0;
}

.check-list-strong li {
  margin: 12px 0;
}

.feature-panel,
.showcase-panel,
.product-story,
.product-stack {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(239, 246, 255, 0.9));
}

.stack-row {
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid rgba(16, 32, 51, 0.08);
}

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

.stack-row span {
  color: var(--muted);
  max-width: 320px;
  text-align: right;
}

.auth-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 16px;
}

.auth-card {
  width: min(820px, 100%);
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  overflow: hidden;
}

.auth-aside,
.auth-main {
  padding: 34px;
}

.auth-aside {
  background:
    radial-gradient(circle at top, rgba(255, 152, 15, 0.22), transparent 34%),
    linear-gradient(180deg, #10233c, #145db8);
  color: #f6fbff;
}

.auth-main {
  background: rgba(255, 255, 255, 0.94);
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.field input,
.field select {
  width: 100%;
  border: 1px solid rgba(16, 32, 51, 0.14);
  border-radius: 14px;
  padding: 14px 16px;
  font: inherit;
  background: #ffffff;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0 18px;
  color: var(--muted);
}

.flash {
  margin: 0 auto 16px;
  padding: 14px 18px;
  border-radius: 16px;
}

.flash.success {
  background: rgba(18, 183, 106, 0.12);
  color: var(--success);
}

.flash.error {
  background: rgba(192, 61, 61, 0.12);
  color: var(--danger);
}

.dashboard-topbar {
  align-items: end;
  padding: 18px 0 28px;
}

.workspace-badge {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
}

.profile-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(16, 32, 51, 0.08);
  box-shadow: var(--shadow-soft);
}

.profile-avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  color: #f8fffb;
  font-weight: 800;
}

.profile-copy {
  display: grid;
  line-height: 1.15;
}

.profile-copy small {
  color: var(--muted);
}

.code {
  display: block;
  overflow-x: auto;
  white-space: pre-wrap;
  padding: 18px;
  border-radius: var(--radius-md);
  background: #102330;
  color: #f0fff8;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.92rem;
}

.stack-form {
  grid-template-columns: 1fr;
  margin-top: 18px;
}

.connector-form {
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(16, 32, 51, 0.08);
  background: rgba(255, 255, 255, 0.68);
}

.connector-quickstart {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.9fr);
  gap: 18px;
  margin-bottom: 16px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(20, 65, 122, 0.08);
  background: linear-gradient(135deg, rgba(31, 156, 255, 0.08), rgba(255, 152, 15, 0.08));
}

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

.connector-quickstart-copy p,
.connector-quickstart-actions small {
  margin: 0;
  color: #5f7793;
  line-height: 1.55;
}

.connector-quickstart-copy a {
  color: var(--brand-dark);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.connector-quickstart-copy a:hover,
.connector-quickstart-copy a:focus-visible {
  color: var(--brand);
}

.connector-quickstart-actions {
  display: grid;
  gap: 10px;
  align-content: center;
  justify-items: start;
}

.connector-connect-button {
  min-width: 210px;
  background: #ffffff;
}

.live-summary {
  min-width: 280px;
}

.profile-grid {
  align-items: start;
}

.profile-summary-card {
  min-width: 280px;
}

.profile-form {
  margin-top: 16px;
}

.profile-stack {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.profile-method {
  padding: 16px 18px;
  border: 1px solid rgba(16, 32, 51, 0.08);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.64);
}

.profile-method p {
  margin-bottom: 0;
}

.app-users-summary-grid {
  margin-bottom: 24px;
}

.app-member-card {
  gap: 14px;
}

.app-member-card-head,
.app-member-card-meta,
.app-member-card-actions,
.app-inline-form {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.app-member-card-meta {
  color: #68809c;
  font-size: 0.92rem;
}

.app-inline-form .field {
  margin: 0;
  min-width: 180px;
}

.profile-google-button {
  margin-top: 10px;
  width: auto;
}

.live-list,
.timeline {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.visitor-row,
.timeline-item {
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  border: 1px solid rgba(16, 32, 51, 0.08);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.72);
}

.visitor-row {
  display: grid;
  gap: 4px;
  cursor: pointer;
  font: inherit;
}

.visitor-row.active {
  border-color: rgba(31, 156, 255, 0.3);
  background: linear-gradient(135deg, rgba(31, 156, 255, 0.08), rgba(255, 152, 15, 0.08));
}

.timeline-item {
  display: grid;
  gap: 4px;
}

.cta-shell {
  padding-bottom: 84px;
}

.cta-panel {
  align-items: center;
  padding: 34px;
  border-radius: 32px;
  background:
    radial-gradient(circle at top right, rgba(255, 152, 15, 0.22), transparent 32%),
    linear-gradient(135deg, #10233c, #145db8);
  color: #f6fbff;
  box-shadow: 0 26px 70px rgba(16, 32, 51, 0.2);
}

.cta-panel p {
  color: rgba(238, 245, 255, 0.76);
  max-width: 620px;
}

.footer {
  padding: 32px 0 56px;
  color: var(--muted);
  font-size: 0.95rem;
}

.app-body {
  background:
    radial-gradient(circle at top left, rgba(31, 156, 255, 0.14), transparent 24%),
    radial-gradient(circle at top right, rgba(255, 152, 15, 0.14), transparent 22%),
    radial-gradient(circle at bottom left, rgba(11, 38, 74, 0.08), transparent 22%),
    linear-gradient(180deg, #ffffff 0%, #f7fbff 42%, #eef5ff 100%);
  color: #10233c;
}

.app-body .footer {
  display: none;
}

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

.app-sidebar {
  padding: 28px 16px 22px;
  border-right: 1px solid rgba(20, 65, 122, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 251, 255, 0.98)),
    radial-gradient(circle at top, rgba(31, 156, 255, 0.08), transparent 36%);
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.app-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 10px 12px;
}

.app-brand div {
  display: grid;
  gap: 2px;
}

.app-brand strong,
.app-title,
.app-panel h2,
.app-stat-copy strong,
.app-server-meta strong,
.app-shortcut-card strong,
.app-visitor-card strong,
.app-activity-row strong {
  color: #10233c;
}

.app-brand small,
.app-subtitle,
.app-sidebar-label,
.app-sidebar-card p,
.app-nav-link,
.app-server-meta small,
.app-server-chip,
.app-panel-head a,
.app-filter-chip,
.app-shortcut-card small,
.app-visitor-card span,
.app-activity-row small,
.app-activity-row time {
  color: #68809c;
}

.app-brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(31, 156, 255, 0.16);
}

.app-brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

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

.app-nav-link {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid transparent;
}

.app-nav-link.active {
  background: rgba(31, 156, 255, 0.1);
  color: #135ecf;
  border-color: rgba(31, 156, 255, 0.22);
  box-shadow: inset 3px 0 0 #1f9cff;
}

.app-sidebar-card,
.app-sidebar-user {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(20, 65, 122, 0.08);
  box-shadow: var(--shadow-soft);
}

.app-sidebar-card {
  margin-top: auto;
  padding: 18px;
}

.app-sidebar-button,
.app-primary-button,
.app-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  text-decoration: none;
}

.app-sidebar-button,
.app-primary-button {
  min-height: 48px;
  padding: 0 18px;
  background: #1f9cff;
  border: 1px solid #1579ef;
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(31, 156, 255, 0.18);
  font-weight: 700;
}

.app-sidebar-button {
  margin-top: 14px;
}

.app-sidebar-user {
  padding: 16px;
  position: relative;
}

.app-sidebar-user-menu[open] {
  box-shadow: 0 18px 38px rgba(28, 72, 148, 0.14);
}

.app-sidebar-user-trigger {
  list-style: none;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.app-sidebar-user-trigger::-webkit-details-marker {
  display: none;
}

.app-sidebar-user-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #68809c;
  font-size: 1rem;
  transition: transform 160ms ease;
}

.app-sidebar-user-menu[open] .app-sidebar-user-chevron {
  transform: rotate(180deg);
}

.app-sidebar-user-popup {
  position: absolute;
  left: 16px;
  right: 16px;
  top: calc(100% - 6px);
  z-index: 20;
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(20, 65, 122, 0.08);
  box-shadow: 0 18px 38px rgba(28, 72, 148, 0.14);
}

.app-sidebar-user-popup a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 12px;
  background: rgba(20, 65, 122, 0.06);
  border: 1px solid rgba(20, 65, 122, 0.08);
  color: #4f6f98;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.app-sidebar-user-popup a:hover,
.app-sidebar-user-popup a:focus-visible {
  border-color: rgba(31, 156, 255, 0.18);
  background: rgba(31, 156, 255, 0.08);
  color: #145db8;
}

.app-main {
  padding: 28px 36px 40px;
}

.app-main-profile {
  padding-top: 26px;
}

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

.app-title {
  margin: 0;
  font-size: 2.8rem;
  line-height: 1;
  letter-spacing: -0.04em;
}

.app-subtitle {
  margin: 10px 0 0;
  max-width: 68ch;
  line-height: 1.55;
}

.app-topbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.app-icon-button {
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.86);
  color: #135ecf;
  border: 1px solid rgba(20, 65, 122, 0.08);
  box-shadow: var(--shadow-soft);
}

.app-body .flash.success,
.app-body .flash.error,
.app-body .panel,
.app-body .metric-card,
.app-body .integration-card,
.app-body .snippet-card,
.app-body .profile-chip,
.app-body .workspace-badge,
.app-body .pill,
.app-body .connector-form,
.app-body .profile-method,
.app-body .visitor-row,
.app-body .timeline-item {
  background: rgba(255, 255, 255, 0.86);
  border-color: rgba(20, 65, 122, 0.08);
  box-shadow: var(--shadow-soft);
  color: #10233c;
}

.app-body .muted,
.app-body .trend,
.app-body .profile-copy small,
.app-body .workspace-badge,
.app-body .pill,
.app-body .tag.neutral {
  color: #68809c;
}

.app-body .eyebrow,
.app-body .tag {
  background: rgba(31, 156, 255, 0.08);
  border-color: rgba(31, 156, 255, 0.1);
  color: #145db8;
}

.app-body .tag.warn {
  color: #db8500;
}

.app-stat-grid,
.app-dashboard-grid,
.app-bottom-grid,
.app-shortcut-grid,
.app-visitor-grid {
  display: grid;
  gap: 18px;
}

.app-stat-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 24px;
}

.app-stat-card,
.app-panel {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(20, 65, 122, 0.08);
  box-shadow: var(--shadow-soft);
}

.app-stat-card {
  padding: 20px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.app-stat-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: rgba(31, 156, 255, 0.14);
}

.app-stat-icon.green { background: rgba(18, 183, 106, 0.15); }
.app-stat-icon.sky { background: rgba(31, 156, 255, 0.16); }
.app-stat-icon.purple { background: rgba(255, 152, 15, 0.16); }

.app-stat-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.app-stat-copy span,
.app-server-metric span,
.app-resource-bar span {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: #68809c;
}

.app-stat-copy strong {
  font-size: 2rem;
  line-height: 1;
  overflow-wrap: anywhere;
}

.app-stat-copy small {
  color: #68809c;
  overflow-wrap: anywhere;
}

.app-stat-delta,
.app-server-state {
  color: #12b76a;
  font-style: normal;
  font-weight: 700;
}

.app-stat-card > .app-stat-delta,
.app-stat-card > .app-status-dot,
.app-stat-card > .app-mini-meter {
  grid-column: 2;
  justify-self: start;
  max-width: 100%;
}

.app-status-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #12b76a;
  box-shadow: 0 0 0 5px rgba(18, 183, 106, 0.12);
}

.app-mini-meter,
.app-wide-meter {
  width: min(140px, 100%);
  height: 6px;
  border-radius: 999px;
  background: rgba(20, 65, 122, 0.08);
  overflow: hidden;
}

.app-mini-meter span,
.app-wide-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, #1f9cff, #4bb4ff);
}

.app-mini-meter.purple span,
.app-wide-meter.purple span { background: linear-gradient(135deg, #ff8d1c, #ffb43f); }
.app-wide-meter.yellow span { background: linear-gradient(135deg, #ff980f, #ffcd56); }

.app-dashboard-grid {
  grid-template-columns: 1.1fr 1fr;
  margin-bottom: 22px;
}

.app-dashboard-grid-single {
  grid-template-columns: 1fr;
}

.app-dashboard-grid-overview {
  grid-template-columns: 1.35fr 0.85fr;
}

.app-panel {
  padding: 20px;
}

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

.app-panel-head h2 {
  margin: 0;
  font-size: 1.05rem;
}

.app-filter-chip {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(31, 156, 255, 0.08);
  border: 1px solid rgba(31, 156, 255, 0.1);
}

.app-server-list,
.app-activity-list,
.app-website-list,
.app-website-integration-list {
  display: grid;
  gap: 12px;
}

.app-connector-accordion {
  border-radius: 16px;
  border: 1px solid rgba(20, 65, 122, 0.08);
  background: rgba(247, 251, 255, 0.88);
  overflow: hidden;
}

.app-connector-accordion summary {
  list-style: none;
  cursor: pointer;
}

.app-connector-accordion summary::-webkit-details-marker {
  display: none;
}

.app-server-row,
.app-activity-row {
  display: grid;
  align-items: center;
  gap: 16px;
  border-radius: 16px;
  padding: 16px;
  border: 1px solid rgba(20, 65, 122, 0.08);
  background: rgba(247, 251, 255, 0.8);
}

.app-server-row {
  grid-template-columns: 1.3fr repeat(3, minmax(70px, auto)) 90px;
}

.app-server-meta {
  display: flex;
  gap: 12px;
  align-items: center;
}

.app-server-meta div {
  display: grid;
  gap: 3px;
}

.app-online-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #12b76a;
  box-shadow: 0 0 0 5px rgba(18, 183, 106, 0.14);
}

.app-online-dot.warning {
  background: #ff980f;
  box-shadow: 0 0 0 5px rgba(255, 152, 15, 0.12);
}

.app-server-chip {
  display: inline-flex;
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(20, 65, 122, 0.06);
}

.app-server-metric strong,
.app-resource-bar strong {
  display: block;
  margin-top: 4px;
  color: #10233c;
}

.app-chart-area {
  padding: 8px 2px 4px;
}

.app-chart-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  color: #10233c;
}

.app-chart {
  width: 100%;
  height: 220px;
}

.app-chart-legend {
  display: flex;
  justify-content: space-between;
  color: #68809c;
  font-size: 0.88rem;
}

.app-resource-bars {
  display: grid;
  gap: 18px;
  padding-top: 18px;
}

.app-resource-bar {
  display: grid;
  gap: 10px;
}

.app-bottom-grid {
  grid-template-columns: 1fr 1.35fr;
  margin-bottom: 22px;
}

.app-bottom-grid-wide {
  grid-template-columns: 1fr 1fr;
}

.app-activity-row {
  grid-template-columns: 26px 1fr auto;
}

.app-activity-icon {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: linear-gradient(135deg, #1f9cff, #55bcff);
}

.app-activity-icon.purchase { background: linear-gradient(135deg, #15b66c, #40d78d); }
.app-activity-icon.begin_checkout { background: linear-gradient(135deg, #ff8d1c, #ffb33b); }
.app-activity-icon.add_to_cart { background: linear-gradient(135deg, #1f9cff, #6fc7ff); }

.app-shortcut-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.app-shortcut-card,
.app-visitor-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 16px;
  background: rgba(247, 251, 255, 0.84);
  border: 1px solid rgba(20, 65, 122, 0.08);
}

.app-shortcut-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(31, 156, 255, 0.12), rgba(255, 152, 15, 0.12));
  color: #1579ef;
  font-weight: 800;
}

.app-steps,
.app-code-stack,
.app-check-grid {
  display: grid;
  gap: 14px;
}

.app-step-card,
.app-code-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 16px;
  background: rgba(247, 251, 255, 0.84);
  border: 1px solid rgba(20, 65, 122, 0.08);
}

.app-step-card strong,
.app-code-card span {
  color: #10233c;
}

.app-step-card p,
.app-code-card code {
  margin: 0;
  color: #68809c;
}

.app-guide-intro {
  max-width: 760px;
  margin: 0 0 18px;
}

.app-guide-intro p {
  margin: 0;
  color: #68809c;
  line-height: 1.6;
}

.app-wizard-progress {
  display: grid;
  gap: 14px;
  margin: 0 0 18px;
}

.app-wizard-progress-bar {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(20, 65, 122, 0.08);
  overflow: hidden;
}

.app-wizard-progress-bar span {
  display: block;
  width: 14.285%;
  height: 100%;
  border-radius: inherit;
  background: #1f9cff;
  transition: width 180ms ease;
}

.app-wizard-progress-steps {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.app-wizard-dot {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(20, 65, 122, 0.08);
  background: rgba(255, 255, 255, 0.86);
  color: #68809c;
  font-weight: 800;
  cursor: pointer;
}

.app-wizard-dot.active {
  background: #1f9cff;
  border-color: #1579ef;
  color: #ffffff;
}

.app-wizard-dot.complete {
  background: rgba(18, 183, 106, 0.08);
  border-color: rgba(18, 183, 106, 0.14);
  color: #108a57;
}

.app-wizard-steps {
  display: grid;
}

.app-wizard-step {
  display: none;
  max-width: 820px;
}

.app-wizard-step.active {
  display: grid;
}

.app-guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.app-guide-grid .app-step-card {
  align-content: start;
  min-height: 100%;
}

.app-step-card-featured {
  grid-column: 1 / -1;
}

.app-guide-grid .app-step-card p {
  max-width: 52ch;
  line-height: 1.65;
}

.app-guide-grid .app-step-card .app-primary-button {
  justify-self: start;
  min-width: 280px;
}

.app-step-card-nested {
  margin-top: 10px;
  background: rgba(255, 255, 255, 0.72);
}

.app-guide-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.app-guide-values code {
  word-break: break-word;
}

.app-wizard-select {
  max-width: 420px;
  margin-top: 8px;
}

.app-wizard-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}

.connector-status-text {
  font-weight: 700;
}

.connector-status-text.ok {
  color: #12b76a;
}

.connector-status-text.verified {
  color: #12b76a;
}

.connector-status-text.pending,
.connector-status-text.attention,
.connector-status-text.unknown {
  color: #db8500;
}

.app-code-card code {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(20, 65, 122, 0.08);
  word-break: break-all;
}

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

.app-website-status-grid,
.app-focus-stack,
.app-focus-links {
  display: grid;
  gap: 14px;
}

.app-website-status-card,
.app-focus-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(247, 251, 255, 0.88);
  border: 1px solid rgba(20, 65, 122, 0.08);
}

.app-website-status-card.healthy {
  border-color: rgba(18, 183, 106, 0.22);
}

.app-website-status-card.warning {
  border-color: rgba(255, 152, 15, 0.26);
}

.app-website-status-head,
.app-website-status-meta,
.app-website-status-stats,
.app-website-status-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.app-website-status-head strong,
.app-focus-card strong,
.app-connector-chip strong {
  color: #10233c;
}

.app-website-status-head small,
.app-website-status-meta span,
.app-website-status-stats span,
.app-connector-chip small,
.app-focus-card span,
.app-focus-card small {
  color: #68809c;
}

.app-website-health-pill,
.app-connector-chip {
  border-radius: 14px;
  padding: 10px 12px;
}

.app-website-health-pill {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.88);
}

.app-website-health-pill.healthy {
  color: #12b76a;
}

.app-website-health-pill.warning {
  color: #db8500;
}

.app-website-connector-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.app-connector-chip {
  display: grid;
  gap: 5px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(20, 65, 122, 0.08);
}

.app-connector-chip.healthy {
  border-color: rgba(18, 183, 106, 0.22);
}

.app-connector-chip.warning {
  border-color: rgba(255, 152, 15, 0.26);
}

.app-connector-chip-name {
  color: #4f6f98;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.app-website-status-stats div,
.app-focus-card {
  min-width: 0;
}

.app-website-status-stats strong {
  display: block;
  margin-top: 4px;
  color: #10233c;
}

.app-website-status-actions a {
  color: #1579ef;
  font-size: 0.92rem;
}

.app-focus-links {
  grid-template-columns: 1fr;
}

.app-website-card,
.app-website-empty,
.app-website-integration-row {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: 16px;
  background: rgba(247, 251, 255, 0.88);
  border: 1px solid rgba(20, 65, 122, 0.08);
}

.app-website-card {
  text-decoration: none;
}

.app-website-card.active {
  border-color: rgba(31, 156, 255, 0.28);
  background: rgba(31, 156, 255, 0.06);
  box-shadow: inset 3px 0 0 #1f9cff;
}

.app-website-card-head,
.app-website-card-meta,
.app-inline-stats,
.app-website-integration-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.app-website-card-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.app-website-card-stats,
.app-website-details-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.app-website-hero-panel {
  padding: 20px 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 255, 0.94));
}

.app-website-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.app-website-hero-main {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.app-website-page-intro {
  display: grid;
  gap: 8px;
}

.app-panel-kicker {
  color: #6f88a8;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.app-website-hero-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.app-website-hero-title-row h2 {
  margin: 0;
  color: #10233c;
  font-size: 2.4rem;
  line-height: 1;
}

.app-website-hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  color: #68809c;
}

.app-website-hero-meta strong {
  color: #10233c;
}

.app-website-hero-meta-item {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
}

.app-domain-pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(31, 156, 255, 0.1);
  border: 1px solid rgba(31, 156, 255, 0.16);
  color: #145db8;
  font-weight: 700;
}

.app-website-hero-status {
  display: flex;
  align-items: stretch;
  gap: 12px;
  min-width: 320px;
}

.app-website-hero-status-item {
  min-width: 148px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(247, 251, 255, 0.92);
  border: 1px solid rgba(20, 65, 122, 0.08);
  display: grid;
  gap: 2px;
}

.app-website-hero-status-item span {
  color: #68809c;
  font-size: 0.92rem;
}

.app-website-hero-status-item strong {
  color: #10233c;
  font-size: 1.05rem;
}

.app-website-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 20px;
}

.app-website-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(20, 65, 122, 0.08);
  background: rgba(255, 255, 255, 0.84);
  color: #5c7698;
  text-decoration: none;
  font-weight: 700;
  transition: 160ms ease;
}

.app-website-tab:hover,
.app-website-tab:focus-visible {
  border-color: rgba(31, 156, 255, 0.18);
  background: rgba(31, 156, 255, 0.06);
  color: #145db8;
}

.app-website-tab.active {
  border-color: rgba(31, 156, 255, 0.22);
  background: #1f9cff;
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(31, 156, 255, 0.2);
}

.app-dns-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0 10px;
}

.app-dns-item {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(20, 65, 122, 0.08);
}

.app-dns-item span {
  color: #68809c;
}

.app-dns-item strong {
  color: #10233c;
  word-break: break-word;
}

.app-first-party-head-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.app-first-party-verify-button.is-loading,
.app-first-party-verify-button:disabled {
  opacity: 0.65;
  pointer-events: none;
}

.app-toggle-switch {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 6px 12px 6px 8px;
  border-radius: 999px;
  border: 1px solid rgba(20, 65, 122, 0.08);
  background: rgba(255, 255, 255, 0.92);
  color: #4f6f98;
  font-weight: 700;
  cursor: pointer;
  transition: 160ms ease;
}

.app-toggle-switch:hover,
.app-toggle-switch:focus-visible {
  border-color: rgba(31, 156, 255, 0.18);
  box-shadow: 0 10px 24px rgba(28, 72, 148, 0.08);
}

.app-toggle-switch-track {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 52px;
  height: 30px;
  border-radius: 999px;
  background: rgba(20, 65, 122, 0.12);
  transition: 160ms ease;
}

.app-toggle-switch-thumb {
  position: absolute;
  left: 4px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 3px 8px rgba(16, 35, 60, 0.18);
  transition: transform 160ms ease;
}

.app-toggle-switch.active {
  color: #108a57;
  border-color: rgba(18, 183, 106, 0.16);
  background: rgba(18, 183, 106, 0.08);
}

.app-toggle-switch.active .app-toggle-switch-track {
  background: rgba(18, 183, 106, 0.28);
}

.app-toggle-switch.active .app-toggle-switch-thumb {
  transform: translateX(22px);
}

.app-toggle-switch.is-loading {
  opacity: 0.7;
  pointer-events: none;
}

.app-website-card-head strong,
.app-website-integration-row strong,
.app-inline-stat strong,
.app-website-empty strong,
.app-website-card-stat strong {
  color: #10233c;
}

.app-website-card-head small,
.app-website-card-meta span,
.app-website-integration-row small,
.app-inline-stat span,
.app-website-empty p,
.app-website-card-stat span {
  color: #68809c;
}

.app-website-card-summary span {
  color: #68809c;
}

.app-website-card-head div,
.app-website-integration-row div,
.app-inline-stat,
.app-website-card-stat {
  display: grid;
  gap: 4px;
}

.app-website-integration-main,
.app-website-integration-side {
  display: flex;
  align-items: center;
  gap: 12px;
}

.app-website-integration-row {
  align-items: center;
  padding: 18px 20px;
}

.app-connector-accordion[open] .app-website-integration-row {
  border-bottom: 1px solid rgba(20, 65, 122, 0.08);
  border-radius: 0;
}

.app-website-integration-main {
  flex: 1 1 auto;
  min-width: 0;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.app-website-integration-main > div {
  min-width: 0;
}

.app-website-integration-side {
  flex: 0 0 auto;
  justify-content: flex-end;
}

.app-connector-action {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(20, 65, 122, 0.08);
  background: rgba(255, 255, 255, 0.88);
  color: #4f6f98;
  font-weight: 700;
}

.app-connector-action.healthy {
  border-color: rgba(18, 183, 106, 0.16);
  background: rgba(18, 183, 106, 0.08);
  color: #108a57;
}

.app-connector-action.attention {
  border-color: rgba(218, 75, 55, 0.14);
  background: rgba(218, 75, 55, 0.08);
  color: #b53a29;
}

.app-connector-action-label {
  display: inline-flex;
  align-items: center;
}

.app-accordion-chevron {
  color: currentColor;
  font-size: 1rem;
  line-height: 1;
  transition: transform 160ms ease;
}

.app-connector-accordion[open] .app-accordion-chevron {
  transform: rotate(180deg);
}

.app-connector-panel {
  padding: 18px 20px 20px;
  background: rgba(255, 255, 255, 0.76);
}

.app-health-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  flex: 0 0 10px;
  background: #12b76a;
  box-shadow: 0 0 0 7px rgba(18, 183, 106, 0.1);
  animation: appStatusPulse 1.9s infinite;
}

.app-health-dot.error {
  background: #da4b37;
  box-shadow: 0 0 0 7px rgba(218, 75, 55, 0.1);
}

@keyframes appStatusPulse {
  0% { box-shadow: 0 0 0 0 rgba(18, 183, 106, 0.16); }
  70% { box-shadow: 0 0 0 10px rgba(18, 183, 106, 0); }
  100% { box-shadow: 0 0 0 0 rgba(18, 183, 106, 0); }
}

.app-health-dot.error {
  animation-name: appStatusPulseError;
}

@keyframes appStatusPulseError {
  0% { box-shadow: 0 0 0 0 rgba(218, 75, 55, 0.16); }
  70% { box-shadow: 0 0 0 10px rgba(218, 75, 55, 0); }
  100% { box-shadow: 0 0 0 0 rgba(218, 75, 55, 0); }
}

.app-inline-stats,
.app-website-details {
  margin-top: 18px;
}

.app-inline-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.app-inline-stat {
  padding: 16px;
  border-radius: 16px;
  background: rgba(247, 251, 255, 0.94);
  border: 1px solid rgba(20, 65, 122, 0.08);
}

.app-inline-stat-link {
  text-decoration: none;
  transition: 160ms ease;
}

.app-inline-stat-link:hover,
.app-inline-stat-link:focus-visible {
  border-color: rgba(31, 156, 255, 0.18);
  background: rgba(31, 156, 255, 0.06);
  box-shadow: 0 10px 24px rgba(28, 72, 148, 0.08);
}

.app-website-card-stat {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(20, 65, 122, 0.08);
}

.app-website-card-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.app-card-action-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(31, 156, 255, 0.08);
  color: #145db8;
  border: 1px solid rgba(31, 156, 255, 0.12);
  font-weight: 700;
}

.app-website-details-summary {
  margin-top: 10px;
}

.app-main-profile .app-panel {
  margin-top: 0;
}

.app-main-profile .app-panel + .app-panel {
  margin-top: 20px;
}

.app-card-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(20, 65, 122, 0.08);
  color: #4f6f98;
  border: 1px solid rgba(20, 65, 122, 0.08);
  font-weight: 700;
}

.app-card-status-pill.active {
  background: rgba(31, 156, 255, 0.12);
  color: #145db8;
  border-color: rgba(31, 156, 255, 0.14);
}

.app-visitor-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.app-visitor-card {
  text-align: left;
  color: #eef2ff;
  cursor: pointer;
}

.app-body .profile-chip,
.app-body .workspace-badge,
.app-body .pill {
  display: none;
}

.app-live-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(20, 65, 122, 0.08);
  color: #10233c;
}

.app-live-status small {
  color: #68809c;
}

.app-live-pulse {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #39d979;
  box-shadow: 0 0 0 0 rgba(57, 217, 121, 0.5);
  animation: appPulse 1.8s infinite;
}

@keyframes appPulse {
  0% { box-shadow: 0 0 0 0 rgba(57, 217, 121, 0.45); }
  70% { box-shadow: 0 0 0 12px rgba(57, 217, 121, 0); }
  100% { box-shadow: 0 0 0 0 rgba(57, 217, 121, 0); }
}

.app-history-table {
  display: grid;
  gap: 10px;
}

.app-history-head,
.app-history-row {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1.2fr 0.8fr 0.8fr 0.65fr 0.8fr;
  gap: 12px;
  align-items: center;
}

.app-history-head {
  padding: 0 8px 8px;
  color: #68809c;
  font-size: 0.84rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.app-history-row {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(247, 251, 255, 0.88);
  border: 1px solid rgba(20, 65, 122, 0.08);
  color: #10233c;
}

@media (max-width: 980px) {
  .hero,
  .dashboard-layout,
  .auth-card,
  .grid-3,
  .grid-2,
  .metrics-grid,
  .integration-grid,
  .live-grid,
  .surface-grid {
    grid-template-columns: 1fr;
  }

  .app-shell,
  .app-stat-grid,
  .app-dashboard-grid,
  .app-bottom-grid,
  .app-bottom-grid-wide,
  .app-shortcut-grid,
  .app-visitor-grid,
  .app-inline-stats,
  .app-check-grid,
  .app-website-connector-grid {
    grid-template-columns: 1fr;
  }

  .preview-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero h1,
  .section h2,
  .auth-card h1,
  .page-title {
    line-height: 1;
  }

  .section-heading,
  .trust-strip-inner,
  .cta-panel,
  .stack-row,
  .stream-row,
  .dashboard-topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .stack-row span {
    text-align: left;
  }

  .app-sidebar {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }

  .app-server-row {
    grid-template-columns: 1fr 1fr;
  }

  .app-history-head,
  .app-history-row {
    grid-template-columns: 1fr;
  }

  .app-website-card-head,
  .app-website-card-meta,
  .app-website-integration-row,
  .app-website-status-head,
  .app-website-status-meta,
  .app-website-status-stats,
  .app-website-status-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .app-website-integration-main {
    width: 100%;
  }

  .app-website-integration-side {
    width: 100%;
    justify-content: flex-start;
    padding-left: 46px;
  }

  .app-website-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .connector-quickstart {
    grid-template-columns: 1fr;
  }

  .connector-quickstart-actions {
    justify-items: stretch;
  }

  .connector-connect-button {
    width: 100%;
    min-width: 0;
  }

  .app-website-hero-status {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .nav,
  .nav-links,
  .nav-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .preview-grid {
    grid-template-columns: 1fr;
  }

  .surface-frame,
  .cta-panel {
    padding: 22px;
  }

  .app-website-tabs {
    gap: 8px;
  }

  .app-website-tab {
    min-height: 40px;
    padding: 0 14px;
  }

  .app-guide-grid {
    grid-template-columns: 1fr;
  }

  .app-step-card-featured {
    grid-column: auto;
  }

  .app-guide-grid .app-step-card .app-primary-button {
    min-width: 0;
    width: 100%;
  }

  .app-guide-values {
    grid-template-columns: 1fr;
  }

  .app-wizard-progress-steps {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .app-wizard-actions {
    flex-direction: column;
  }

  .app-dns-grid {
    grid-template-columns: 1fr;
  }

  .app-website-hero-title-row h2 {
    font-size: 1.9rem;
  }

  .app-website-hero-status {
    grid-template-columns: 1fr;
  }
}
