@font-face {
  font-family: Manrope;
  src: url(manrope-cyrillic-400.woff2);
  font-weight: 400;
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
  font-display: swap;
}
@font-face {
  font-family: Manrope;
  src: url(manrope-cyrillic-700.woff2);
  font-weight: 700;
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
  font-display: swap;
}
@font-face {
  font-family: Manrope;
  src: url(manrope-latin-400.woff2);
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Manrope;
  src: url(manrope-latin-700.woff2);
  font-weight: 700;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --page: #151515;
  --panel: #222222;
  --line: #35332f;
  --muted: #aaa69e;
  --orange: #ed945d;
  --text: #f5f2eb;
  font-family: Manrope, system-ui, sans-serif;
}
[hidden] {
  display: none !important;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: radial-gradient(ellipse at 80% 0, #4f392b44, transparent 45%), var(--page);
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
}
h1,
h2,
p {
  margin: 0;
}
h1 {
  font-size: 29px;
  letter-spacing: -0.05em;
  line-height: 1.2;
}
h2 {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}
small {
  font-size: 11px;
  color: var(--muted);
}
:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 4px;
}
button,
select,
input,
textarea {
  border: 1px solid #46413b;
  background: #292725;
  color: var(--text);
  border-radius: 9px;
  padding: 10px 12px;
  min-height: 43px;
}
button:hover {
  background: #3b332c;
}
input,
textarea {
  min-width: 0;
  width: 100%;
}
label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}
.primary {
  background: var(--orange);
  border-color: var(--orange);
  color: #211910;
  font-weight: 700;
}
.primary:hover {
  background: #f3aa7e;
}
.workspace {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  min-height: 100svh;
}
.sidebar {
  min-width: 0;
  position: sticky;
  top: 0;
  height: 100svh;
  display: flex;
  flex-direction: column;
  padding: 29px 17px 20px;
  border-right: 1px solid #ffffff09;
  background: #191817;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  letter-spacing: -0.025em;
  font-size: 17px;
}
.brand > span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background: #34312a;
  border: 1px solid #4f4639;
  border-radius: 9px;
  color: #e9bc80;
}
.brand > small {
  font-size: 10px;
  letter-spacing: 0.08em;
  color: #b9a68b;
}
.owner {
  font-size: 11px;
  margin: 10px 0 34px;
  color: var(--muted);
}
.sidebar nav {
  display: grid;
  gap: 6px;
}
.sidebar nav a {
  padding: 11px 13px;
  border-radius: 9px;
  font-size: 12px;
  color: #c0bcb5;
}
.sidebar nav a:hover {
  background: #302b25;
}
.sidebar nav a[aria-current] {
  background: linear-gradient(100deg, #eb9259, #d37f4a);
  color: #22170f;
  font-weight: 700;
  box-shadow: 0 3px 20px #d47f3220;
}
.sidebar-bottom {
  margin-top: auto;
  color: var(--muted);
  font-size: 11px;
}
.sidebar-bottom button {
  font-size: 11px;
  padding: 5px 12px;
  min-height: 34px;
  margin-top: 12px;
}
.dashboard {
  width: 100%;
  max-width: 1580px;
  margin-inline: auto;
  padding: 32px clamp(20px, 3vw, 48px) 50px;
  min-width: 0;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.eyebrow {
  color: #ac9b87;
  font-size: 10px;
  letter-spacing: 0.14em;
  margin-bottom: 6px;
}
.updated {
  font-size: 11px;
  color: var(--muted);
}
.filters {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 12px;
}
.filters label > span {
  font-size: 10px;
}
.filters select,
.filters input {
  font-size: 12px;
  padding: 8px 11px;
}
.attribution {
  margin-left: auto;
}
.filters button {
  font-size: 12px;
  padding: 8px 14px;
}
.range-note {
  font-size: 11px;
  line-height: 1.6;
  color: #95918a;
  margin-bottom: 25px;
  max-width: 1050px;
}
.connection-note {
  font-size: 12px;
  border: 1px solid #9f793d55;
  background: #aa792411;
  border-radius: 10px;
  padding: 11px 15px;
  margin-bottom: 20px;
  color: #cebb96;
}
.kpis {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 11px;
  margin-bottom: 19px;
}
.kpi,
.panel {
  background: linear-gradient(140deg, #292724, #212121 60%);
  border: 1px solid #ffffff06;
  border-radius: 15px;
  box-shadow: 0 5px 24px #00000014;
}
.kpi {
  min-width: 0;
  padding: 17px 16px 15px;
  min-height: 135px;
}
.kpi h2 {
  font-size: 10px;
  color: #bcb8b0;
  font-weight: 400;
  min-height: 30px;
}
.kpi > strong {
  display: block;
  font-size: clamp(20px, 2vw, 32px);
  font-weight: 700;
  letter-spacing: -0.05em;
  margin: 4px 0 5px;
  white-space: nowrap;
}
.kpi > small {
  display: block;
  font-size: 9px;
  line-height: 1.45;
}
.kpi:first-child > strong {
  color: #efa06d;
}
.analytics-grid {
  display: grid;
  grid-template-columns: 1fr 1.18fr 1.05fr;
  gap: 17px;
}
.panel {
  padding: 22px;
  min-width: 0;
}
.panel h2 {
  margin-bottom: 16px;
}
.panel-note {
  font-size: 11px;
  color: var(--muted);
  margin: -6px 0 16px;
  line-height: 1.65;
}
.empty {
  display: flex;
  align-items: center;
  min-height: 185px;
  max-width: 330px;
  color: #a6a198;
  font-size: 12px;
  line-height: 1.8;
}
.donut {
  width: 142px;
  height: 142px;
  margin: 22px auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 20px #0002;
}
.donut > div {
  width: 113px;
  height: 113px;
  border-radius: 50%;
  background: #242321;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.donut strong {
  font-size: 30px;
  letter-spacing: -0.05em;
}
.donut small {
  font-size: 11px;
}
.legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  font-size: 11px;
}
.legend li {
  display: flex;
  align-items: center;
  gap: 9px;
}
.legend strong {
  margin-left: auto;
}
.swatch {
  width: 7px;
  height: 7px;
  border-radius: 3px;
  flex: none;
}
.funnel {
  padding: 0;
  list-style: none;
  margin: 0;
  display: grid;
  gap: 15px;
}
.funnel li > div:first-child,
.revenue-bars li > div:first-child {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
  margin-bottom: 7px;
}
.funnel strong,
.revenue-bars strong {
  font-weight: 400;
  white-space: nowrap;
}
.bar-track {
  height: 8px;
  background: #ffffff08;
  border-radius: 4px;
  overflow: hidden;
}
.bar-track > span {
  display: block;
  height: 100%;
  min-width: 0;
  background: var(--bar-color, var(--orange));
  border-radius: 4px;
}
.revenue-bars {
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
  display: grid;
  gap: 21px;
}
.traffic-panel {
  grid-column: 1;
}
.traffic-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-block: 24px 10px;
}
.traffic-pair > div {
  display: grid;
  gap: 6px;
}
.traffic-pair strong {
  font-size: 30px;
  font-weight: 400;
}
.traffic-pair span {
  font-size: 11px;
  color: var(--muted);
}
.chart-panel {
  grid-column: 2/4;
}
.chart-panel .empty {
  min-height: 110px;
  max-width: none;
}
.line-chart {
  width: 100%;
  height: 150px;
  overflow: visible;
}
.line-chart polyline {
  stroke: var(--orange);
  fill: none;
  stroke-width: 2.5;
}
.line-chart circle {
  fill: var(--orange);
}
.line-chart .gridline {
  fill: none;
  stroke: #ffffff0c;
  stroke-width: 1;
}
.chart-dates {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--muted);
}
.table-panel {
  margin-top: 19px;
}
.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
}
.panel-heading > a {
  font-size: 11px;
  color: var(--orange);
}
.table-scroll {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 12px;
}
th {
  font-size: 10px;
  letter-spacing: 0.02em;
  color: #a8a297;
  font-weight: 400;
  padding: 11px 14px 12px 0;
  white-space: nowrap;
}
td {
  border-top: 1px solid #ffffff0a;
  padding: 15px 14px 15px 0;
  vertical-align: top;
  overflow-wrap: anywhere;
}
td:first-child {
  min-width: 110px;
}
td strong,
td small {
  display: block;
}
td strong {
  font-weight: 400;
}
td small {
  margin-top: 4px;
  font-size: 10px;
}
td:last-child,
th:last-child {
  padding-right: 0;
  text-align: right;
}
.path {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 11px;
  min-width: 280px;
  max-width: 700px;
}
.path > span {
  padding: 5px 9px;
  border: 1px solid #ffffff0c;
  border-radius: 7px;
  background: #ffffff04;
}
.path i {
  font-style: normal;
  color: #7c7468;
}
.search-form {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}
.search-form input:not([type='hidden']) {
  max-width: 300px;
}
.search-form > label {
  font-size: 12px;
  color: var(--text);
}
.search-form button {
  font-size: 12px;
}
.lead-history {
  margin-top: 18px;
}
.lead-history ol {
  padding: 0;
  list-style: none;
  max-width: 700px;
}
.lead-history li {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid #ffffff0a;
  padding: 13px 0;
  font-size: 12px;
}
.lead-history time {
  color: var(--muted);
  font-size: 11px;
}
.contact-link {
  display: inline-block;
  color: var(--orange);
  font-size: 12px;
  margin-bottom: 12px;
}
.link-builder {
  max-width: 760px;
}
.link-builder form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}
.link-builder form button {
  align-self: end;
}
.generated-link {
  margin-top: 24px;
}
.link-builder textarea {
  font-size: 12px;
}
.link-builder #copy-link {
  margin-top: 12px;
}
.link-builder #copy-status {
  margin-top: 12px;
  font-size: 12px;
  color: var(--orange);
}
.login-wrap {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.login-card {
  width: min(100%, 410px);
  padding: 35px;
  background: #24211e;
  border: 1px solid #504333;
  border-radius: 20px;
  box-shadow: 0 25px 90px #0003;
}
.login-card h1 {
  font-size: 25px;
  margin-top: 30px;
}
.login-card > p {
  color: var(--muted);
  font-size: 12px;
  margin: 12px 0 25px;
}
.login-card label {
  margin-top: 15px;
}
.login-card button {
  margin-top: 25px;
  width: 100%;
}
.login-card .error {
  color: #f5b18e;
}
.error {
  color: #f5b18e;
}
@media (max-width: 1240px) {
  .kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .kpi {
    min-height: 120px;
  }
  .analytics-grid {
    grid-template-columns: 1fr 1fr;
  }
  .analytics-grid > .panel:nth-child(3) {
    grid-column: 1/3;
  }
  .revenue-bars {
    grid-template-columns: 1fr 1fr;
  }
  .traffic-panel {
    grid-column: 1;
  }
  .chart-panel {
    grid-column: 2;
  }
  .sidebar {
    padding-inline: 13px;
  }
  .workspace {
    grid-template-columns: 185px minmax(0, 1fr);
  }
}
@media (max-width: 760px) {
  .workspace {
    grid-template-columns: minmax(0, 1fr);
  }
  .sidebar {
    position: relative;
    height: auto;
    padding: 18px 17px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .brand {
    font-size: 15px;
  }
  .owner {
    display: none;
  }
  .sidebar-bottom {
    display: block;
    position: absolute;
    top: 16px;
    right: 17px;
  }
  .sidebar-bottom p {
    display: none;
  }
  .sidebar-bottom button {
    margin-top: 0;
  }
  .sidebar nav {
    display: flex;
    gap: 5px;
    margin-top: 16px;
    overflow-x: auto;
  }
  .sidebar nav a {
    font-size: 11px;
    padding: 9px 12px;
    white-space: nowrap;
  }
  .dashboard {
    padding: 23px 17px 35px;
  }
  .page-heading {
    align-items: start;
    margin-bottom: 20px;
  }
  .page-heading h1 {
    font-size: 25px;
  }
  .updated {
    font-size: 9px;
    max-width: 115px;
  }
  .filters {
    gap: 8px;
  }
  .filters label {
    flex: 1 1 130px;
  }
  .attribution {
    margin-left: 0;
  }
  .filters button {
    width: 100%;
  }
  .kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }
  .kpi {
    padding: 14px;
    min-height: 120px;
  }
  .kpi > strong {
    font-size: 28px;
  }
  .kpi h2 {
    min-height: 27px;
  }
  .analytics-grid {
    grid-template-columns: 1fr;
    gap: 13px;
  }
  .analytics-grid > .panel:nth-child(3),
  .traffic-panel,
  .chart-panel {
    grid-column: auto;
  }
  .panel {
    padding: 19px;
  }
  .empty {
    min-height: 145px;
  }
  .traffic-panel .traffic-pair {
    margin-top: 10px;
  }
  .revenue-bars {
    grid-template-columns: 1fr;
  }
  .table-panel {
    margin-top: 14px;
  }
  .link-builder form {
    grid-template-columns: 1fr;
  }
  .panel-heading > a {
    white-space: nowrap;
  }
  th,
  td {
    font-size: 11px;
  }
  .login-card {
    padding: 28px;
  }
  .range-note {
    font-size: 10px;
  }
  .lead-history li {
    display: grid;
    gap: 5px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .kpi {
    animation: appear 300ms ease both;
  }
  .kpi:nth-child(2) {
    animation-delay: 35ms;
  }
  .kpi:nth-child(3) {
    animation-delay: 70ms;
  }
  .kpi:nth-child(4) {
    animation-delay: 105ms;
  }
  .kpi:nth-child(5) {
    animation-delay: 140ms;
  }
  .kpi:nth-child(6) {
    animation-delay: 175ms;
  }
  @keyframes appear {
    from {
      opacity: 0;
      transform: translateY(5px);
    }
  }
}
