@import url("data:text/css,");
:root {
  font-family: Arial, "Segoe UI", sans-serif;
  color: #1c2437;
  background: #f6f7fb;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
html {
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  overscroll-behavior: none;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  outline-offset: 4px;
}
button {
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
a {
  color: inherit;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 34px;
  letter-spacing: -1px;
  margin-bottom: 12px;
}
h2 {
  font-size: 19px;
  margin-bottom: 8px;
}
p {
  line-height: 1.7;
  color: #737d8f;
}
small {
  line-height: 1.6;
  color: #7f8798;
}
.brand {
  font-size: 23px;
  letter-spacing: -0.8px;
  text-decoration: none;
  white-space: nowrap;
}
.brand b {
  font-weight: 400;
  color: #8c7ff7;
}
.eyebrow {
  display: block;
  font-size: 10px;
  letter-spacing: 2.2px;
  font-weight: 700;
  color: #8a7de7;
  margin-bottom: 15px;
}
.primary {
  border: 0;
  background: #7463df;
  color: white;
  border-radius: 10px;
  padding: 14px 24px;
  font-weight: 700;
}
.primary:hover {
  background: #6150cc;
}
.text-button {
  border: 0;
  background: none;
  color: #7463df;
  padding: 20px 0;
}
.error {
  color: #b93050;
  font-size: 14px;
  min-height: 20px;
}
label {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
}
input,
select {
  border: 1px solid #dfe3ee;
  border-radius: 9px;
  padding: 13px;
  background: white;
  color: #273146;
}
input:focus,
select:focus {
  border-color: #7463df;
}
.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  background: white;
}
.auth-story {
  background: #171b32;
  color: white;
  padding: 60px 12%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.auth-story:after {
  content: "";
  width: 600px;
  height: 600px;
  border: 1px solid #9f8dfa26;
  border-radius: 50%;
  position: absolute;
  right: 30%;
  bottom: -400px;
  box-shadow:
    0 0 0 70px #9f8dfa07,
    0 0 0 140px #9f8dfa07;
  pointer-events: none;
}
.auth-story .brand {
  margin-bottom: 110px;
}
.auth-story h1 {
  font-size: 64px;
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: -2px;
}
.auth-story p {
  max-width: 380px;
  color: #a5abc4;
  font-size: 17px;
}
.story-lines {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 40px 0 80px;
  color: #c7c5e7;
  font-size: 14px;
}
.auth-story > small {
  margin-top: auto;
}
.auth-card {
  width: 100%;
  max-width: 460px;
  align-self: center;
  padding: 40px;
  margin: auto;
}
.auth-card h2 {
  font-size: 30px;
}
.auth-card form {
  display: grid;
  gap: 20px;
  margin-top: 32px;
}
.auth-card .error {
  margin: 0;
}
.workspace {
  display: grid;
  grid-template-columns: 246px minmax(0, 1fr);
  min-height: 100vh;
}
.menu-toggle,
.menu-close,
.menu-backdrop,
.mobile-menu-head {
  display: none;
}
aside {
  background: #171b32;
  color: #bbc0d2;
  padding: 36px 23px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
aside .brand {
  color: white;
  margin-bottom: 35px;
  font-size: 22px;
}
.workspace-label {
  font-size: 11px;
  color: #727b9b;
  margin-bottom: 30px;
}
nav {
  display: grid;
  gap: 8px;
}
nav button {
  border: 0;
  background: none;
  text-align: right;
  color: #a8aec4;
  font-size: 13px;
  padding: 15px 12px;
  border-radius: 9px;
  display: flex;
  gap: 14px;
  align-items: center;
}
nav button span {
  font-size: 20px;
  width: 20px;
}
.nav-icon,
.report-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
}
.nav-icon svg,
.report-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
nav button.selected {
  background: #7463df24;
  color: #b2a6ff;
  border-right: 3px solid #8b78f4;
}
nav button:hover {
  background: #ffffff08;
}
.sidebar-bottom {
  margin-top: auto;
  font-size: 10px;
  line-height: 2;
}
.sidebar-bottom small {
  display: block;
  font-size: 10px;
  margin: 8px 0 20px;
}
.sidebar-bottom button {
  border: 1px solid #343952;
  color: #c0c5d8;
  background: none;
  border-radius: 8px;
  padding: 12px;
  width: 100%;
  font-size: 12px;
}
.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #30b896;
  box-shadow: 0 0 0 4px #30b89612;
  margin-left: 10px;
}
.dashboard {
  min-width: 0;
}
.topbar {
  height: 83px;
  background: #ffffffc9;
  border-bottom: 1px solid #e8eaf2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 44px;
}
.topbar > span {
  font-size: 10px;
  letter-spacing: 1.5px;
  color: #9ba1b1;
  direction: ltr;
}
.user {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}
.avatar {
  height: 30px;
  width: 30px;
  background: #eeeafd;
  color: #7764df;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.badge {
  border: 1px solid #e5e0fa;
  color: #8a78dc;
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 10px;
  background: #f8f6ff;
  white-space: nowrap;
}
.content {
  padding: 44px;
  max-width: 1600px;
  margin: auto;
}
.page-heading p {
  font-size: 14px;
  margin-bottom: 27px;
}
.filters {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}
.filters label {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  color: #838c9d;
  font-size: 12px;
}
.filters select {
  padding: 10px;
  min-width: 135px;
  font-size: 12px;
}
.export {
  border: 1px solid #dfe3ee;
  border-radius: 8px;
  padding: 11px 15px;
  background: white;
  text-decoration: none;
  font-size: 12px;
}
.updated {
  margin-right: auto;
  font-size: 10px;
  color: #8a96a7;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 22px;
}
.metric {
  background: white;
  border: 1px solid #e9ebf3;
  border-radius: 13px;
  padding: 23px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.metric > span {
  font-size: 13px;
  color: #768093;
}
.metric strong {
  font-size: 35px;
  font-weight: 500;
  letter-spacing: -1px;
  direction: ltr;
  text-align: right;
}
.metric small {
  font-size: 10px;
}
.metric.purple {
  background: #f0edfd;
  border-color: #e4ddfa;
}
.metric.purple strong {
  color: #7865d7;
}
.audience-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.audience-split article {
  display: grid;
  gap: 6px;
  padding: 20px;
  border: 1px solid #e7eaf2;
  border-radius: 14px;
  background: #f8fafc;
}
.audience-human { border-right: 4px solid #20a785 !important; }
.audience-bot { border-right: 4px solid #7865d7 !important; }
.audience-label { font-size: 12px; font-weight: 800; }
.audience-human .audience-label { color: #16866c; }
.audience-bot .audience-label { color: #6852c4; }
.audience-split strong {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1;
  direction: ltr;
  text-align: right;
}
.audience-split b { font-size: 14px; }
.audience-split small, .classification-note { color: #768093; }
.classification-note { margin: 14px 0 0; font-size: 11px; }
.audience-trend header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
}
.chart-legend {
  display: flex;
  gap: 14px;
  font-size: 11px;
  white-space: nowrap;
}
.human-key { color: #16866c; }
.bot-key { color: #6852c4; }
.dual-chart {
  height: 240px;
  display: flex;
  gap: 9px;
  direction: ltr;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x proximity;
}
.dual-day {
  flex: 1;
  min-width: 26px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  text-align: center;
  scroll-snap-align: start;
}
.dual-bars {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  border-bottom: 1px solid #e8eaf1;
  background: repeating-linear-gradient(to top, transparent 0, transparent 44px, #f3f4f8 45px);
}
.dual-bars i {
  width: min(38%, 18px);
  height: var(--height);
  min-height: 0;
  border-radius: 4px 4px 0 0;
}
.human-bar { background: #20a785; }
.bot-bar { background: #7865d7; }
.dual-day span { color: #9298aa; font-size: 9px; }
.live-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  padding: 15px 20px;
  border: 1px solid #e5e9f1;
  background: #f1f5f8;
  border-radius: 9px;
  margin-bottom: 25px;
}
.live-banner strong {
  font-size: 17px;
  color: #20a785;
}
.live-note {
  margin-right: auto;
  color: #8792a3;
  font-size: 11px;
}
.panel {
  background: white;
  border: 1px solid #e7eaf2;
  border-radius: 13px;
  padding: 25px;
  margin-bottom: 22px;
  min-width: 0;
}
.panel header {
  margin-bottom: 23px;
}
.panel header p {
  font-size: 11px;
  margin-bottom: 0;
}
.trend header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.empty {
  text-align: center;
  padding: 55px 20px;
  color: #9ba3b3;
  font-size: 13px;
}
.chart {
  height: 240px;
  display: flex;
  gap: 8px;
  direction: ltr;
  align-items: stretch;
  overflow-x: auto;
}
.day {
  flex: 1;
  min-width: 20px;
  display: flex;
  flex-direction: column;
  text-align: center;
  gap: 6px;
}
.bar-area {
  flex: 1;
  display: flex;
  align-items: flex-end;
  border-bottom: 1px solid #e8eaf1;
  background: repeating-linear-gradient(
    to top,
    transparent 0,
    transparent 44px,
    #f3f4f8 45px
  );
}
.bar {
  height: var(--height);
  min-height: 3px;
  width: 75%;
  max-width: 45px;
  margin: 0 auto;
  background: #9e90ef;
  border-radius: 4px 4px 0 0;
}
.day span {
  font-size: 9px;
  color: #9298aa;
}
.day small {
  font-size: 9px;
}
.two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.report-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.report-title {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.report-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: #f0edfd;
  color: #6852c4;
}
.ranked-report ol {
  display: grid;
  gap: 16px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.ranked-report li {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}
.rank {
  display: grid;
  place-items: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: #f2f4f8;
  color: #657086;
  font-size: 11px;
  font-weight: 800;
}
.rank-data { min-width: 0; flex: 1; }
.rank-data > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
}
.rank-data b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  direction: ltr;
  text-align: right;
}
.rank-data strong { font-size: 12px; color: #4f5970; }
.rank-track {
  display: block;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #eef0f5;
  direction: ltr;
}
.rank-track i {
  display: block;
  width: var(--width);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8b78f4, #6551d2);
}
.table-wrap {
  overflow: auto;
}
.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 16px;
  margin-top: 22px;
}
.insight-card {
  border: 1px solid #e6e8f0;
  border-radius: 16px;
  padding: 22px;
  overflow-wrap: anywhere;
  background: #fafbff;
}
.insight-card.attention { border-top: 3px solid #d89435; }
.insight-card.trend { border-top: 3px solid #7365e9; }
.insight-card h3 { margin: 16px 0 10px; font-size: 18px; }
.insight-card p { line-height: 1.7; }
.insight-action { border-top: 1px solid #e6e8f0; margin-top: 16px; padding-top: 16px; }
.insight-action strong { color: #6555c9; font-size: 13px; }
.table-wrap:has(th:nth-child(8)) table {
  min-width: 1100px;
}
.table-wrap:has(th:nth-child(8)) td {
  max-width: 300px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: right;
  font-size: 11px;
}
th {
  color: #939cad;
  font-weight: 400;
  border-bottom: 1px solid #edf0f5;
  padding: 12px 9px;
  white-space: nowrap;
}
td {
  padding: 15px 9px;
  border-bottom: 1px solid #f1f3f8;
  color: #596579;
  max-width: 280px;
  overflow-wrap: anywhere;
}
td:first-child {
  color: #303c53;
}
tbody tr:last-child td {
  border-bottom: 0;
}
footer {
  font-size: 10px;
  color: #9aa2b2;
  padding: 15px 44px 30px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.install pre {
  background: #171b32;
  color: #cdc2ff;
  padding: 25px;
  border-radius: 10px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.8;
}
.explain-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 35px;
}
.explain-grid h3 {
  font-size: 15px;
}
.explain-grid p {
  font-size: 13px;
}
.password {
  max-width: 650px;
}
.password form {
  display: grid;
  gap: 20px;
}
.loading {
  padding: 50px;
}
.panel button:not(.primary) {
  border: 1px solid #dfe3ee;
  background: #f6f7fb;
  border-radius: 6px;
  padding: 8px;
  margin-right: 15px;
  font-size: 12px;
}
@media (max-width: 1100px) {
  .workspace {
    grid-template-columns: 210px minmax(0, 1fr);
  }
  .content {
    padding: 28px;
  }
  .topbar {
    padding: 0 28px;
  }
  .metric {
    padding: 18px;
  }
  .two-columns {
    grid-template-columns: 1fr;
  }
  .report-grid {
    grid-template-columns: 1fr;
  }
  .auth-story h1 {
    font-size: 50px;
  }
}
@media (max-width: 760px) {
  .audience-split {
    grid-template-columns: 1fr;
  }
  .auth {
    grid-template-columns: 1fr;
  }
  .auth-story {
    padding: 30px;
  }
  .auth-story .brand {
    margin-bottom: 45px;
  }
  .auth-story h1 {
    font-size: 43px;
  }
  .story-lines {
    display: none;
  }
  .auth-story > small {
    margin-top: 20px;
  }
  .auth-card {
    padding: 30px;
  }
  .workspace {
    display: block;
    min-height: 100dvh;
  }
  aside {
    display: flex;
    position: fixed;
    z-index: 60;
    inset: 0 0 0 auto;
    width: min(86vw, 330px);
    height: 100dvh;
    padding: calc(18px + env(safe-area-inset-top, 0px)) 20px calc(18px + env(safe-area-inset-bottom, 0px));
    transform: translateX(105%);
    transition: transform 180ms ease-out;
    overflow-y: auto;
    overscroll-behavior: contain;
    box-shadow: -20px 0 50px #10142738;
  }
  .menu-open aside {
    transform: translateX(0);
  }
  .mobile-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
  }
  .mobile-menu-head .brand { margin: 0; }
  .menu-close {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: #ffffff10;
    color: white;
    font-size: 28px;
  }
  .menu-backdrop {
    display: block;
    position: fixed;
    z-index: 50;
    inset: 0;
    border: 0;
    background: #0d102080;
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease-out;
  }
  .menu-open .menu-backdrop { opacity: 1; pointer-events: auto; }
  body.menu-open { overflow: hidden; }
  .workspace-label { display: block; }
  .sidebar-bottom { display: block; }
  nav {
    display: grid;
    overflow: visible;
    gap: 7px;
  }
  nav button {
    width: 100%;
    font-size: 14px;
    padding: 14px 12px;
  }
  nav button span {
    display: inline-block;
  }
  .topbar {
    position: sticky;
    z-index: 40;
    top: 0;
    height: calc(62px + env(safe-area-inset-top, 0px));
    padding: env(safe-area-inset-top, 0px) 14px 0;
    background: #fff;
  }
  .topbar > span { display: none; }
  .menu-toggle {
    display: grid;
    width: 44px;
    height: 44px;
    place-content: center;
    gap: 5px;
    border: 1px solid #e1e4ed;
    border-radius: 11px;
    background: white;
  }
  .menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: #252b40;
  }
  .content {
    padding: 25px 18px;
  }
  h1 {
    font-size: 28px;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .metric {
    gap: 12px;
    padding: 18px;
  }
  .metric strong {
    font-size: 28px;
  }
  .live-note,
  .updated {
    display: none;
  }
  .panel {
    padding: 20px;
  }
  .filters {
    gap: 10px;
  }
  .filters label {
    flex-direction: column;
    align-items: flex-start;
  }
  .audience-trend header { flex-direction: column; }
  .dual-chart { height: 210px; }
  input, select { font-size: 16px; }
  .explain-grid {
    grid-template-columns: 1fr;
  }
  footer {
    padding: 20px;
    flex-direction: column;
  }
  .chart {
    height: 200px;
  }
}
