@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/fonts/manrope-cyrillic-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/fonts/manrope-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/fonts/manrope-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  --bg: #09090a;
  --bg-2: #0d0d0f;
  --surface: #111113;
  --surface-2: #17171a;
  --surface-3: #1e1e22;
  --line: rgba(255, 255, 255, 0.06);
  --line-2: rgba(255, 255, 255, 0.1);
  --line-3: rgba(255, 255, 255, 0.16);
  --text: #f4f4f5;
  --text-2: #a1a1aa;
  --text-3: #6f6f78;
  --lime: #dfff58;
  --lime-2: #cdf03a;
  --lime-ink: #10130a;
  --lime-soft: rgba(223, 255, 88, 0.1);
  --lime-line: rgba(223, 255, 88, 0.28);
  --yt: #f0443a;
  --tt: #16a3b8;
  --ig: #a05ef5;
  --good: #3ecf6e;
  --warn: #f5b02e;
  --bad: #f0524f;
  --info: #7aa7ff;
  --radius-xs: 8px;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --shadow-pop: 0 24px 60px -12px rgba(0, 0, 0, 0.65), 0 0 0 1px var(--line-2);
  --font: 'Manrope', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'SFMono-Regular', 'JetBrains Mono', Menlo, Consolas, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--surface-3) transparent;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
}

.i {
  display: inline-block;
  width: 1.25em;
  height: 1.25em;
  flex: none;
  vertical-align: middle;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}

[hidden] {
  display: none !important;
}

::selection {
  background: var(--lime);
  color: var(--lime-ink);
}

:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
  border-radius: 6px;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-thumb {
  background: var(--surface-3);
  border-radius: 10px;
  border: 3px solid transparent;
  background-clip: padding-box;
}

::-webkit-scrollbar-track {
  background: transparent;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

p {
  margin: 0;
}

.muted {
  color: var(--text-2);
}

.faint {
  color: var(--text-3);
}

.num {
  font-variant-numeric: tabular-nums;
}

.btn {
  --btn-bg: var(--surface-2);
  --btn-fg: var(--text);
  --btn-line: var(--line-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: 12px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  box-shadow: inset 0 0 0 1px var(--btn-line);
  font-weight: 650;
  font-size: 14px;
  white-space: nowrap;
  transition: background 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.15s var(--ease), color 0.2s var(--ease), opacity 0.2s;
  user-select: none;
}

.btn:hover {
  --btn-bg: var(--surface-3);
  --btn-line: var(--line-3);
}

.btn:active {
  transform: scale(0.97);
}

.btn[disabled],
.btn.is-loading {
  opacity: 0.5;
  pointer-events: none;
}

.btn .i {
  width: 18px;
  height: 18px;
}

.btn-primary {
  --btn-bg: var(--lime);
  --btn-fg: var(--lime-ink);
  --btn-line: transparent;
}

.btn-primary:hover {
  --btn-bg: var(--lime-2);
  --btn-line: transparent;
  box-shadow: 0 0 0 4px var(--lime-soft);
}

.btn-ghost {
  --btn-bg: transparent;
  --btn-line: transparent;
  color: var(--text-2);
}

.btn-ghost:hover {
  --btn-bg: var(--surface-2);
  --btn-line: transparent;
  color: var(--text);
}

.btn-danger {
  --btn-fg: var(--bad);
}

.btn-danger:hover {
  --btn-bg: rgba(240, 82, 79, 0.1);
  --btn-line: rgba(240, 82, 79, 0.3);
}

.btn-sm {
  height: 32px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 13px;
}

.btn-lg {
  height: 48px;
  padding: 0 22px;
  border-radius: 14px;
  font-size: 15px;
}

.btn-icon {
  width: 40px;
  padding: 0;
}

.btn-icon.btn-sm {
  width: 32px;
}

.btn.is-loading::after {
  content: '';
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-right-color: transparent;
  animation: spin 0.7s linear infinite;
}

.field {
  display: grid;
  gap: 8px;
}

.label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 600;
}

.input,
.textarea,
.select {
  width: 100%;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: var(--bg-2);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s;
}

.input::placeholder,
.textarea::placeholder {
  color: var(--text-3);
}

.input:hover,
.textarea:hover,
.select:hover {
  border-color: var(--line-3);
}

.input:focus,
.textarea:focus,
.select:focus {
  border-color: var(--lime-line);
  box-shadow: 0 0 0 4px var(--lime-soft);
}

.textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.55;
}

.select {
  appearance: none;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23a1a1aa' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.8' d='m19 9l-7 6l-7-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.select option {
  background: var(--surface-2);
}

input[type='date'],
input[type='time'] {
  color-scheme: dark;
}

input[type='date']::-webkit-calendar-picker-indicator,
input[type='time']::-webkit-calendar-picker-indicator {
  filter: invert(0.7);
  cursor: pointer;
}

.counter {
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  color: var(--text-3);
  transition: color 0.2s;
}

.counter.is-over {
  color: var(--bad);
}

.switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  font-weight: 600;
  color: var(--text-2);
}

.switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.switch .track {
  position: relative;
  width: 38px;
  height: 22px;
  border-radius: 20px;
  background: var(--surface-3);
  box-shadow: inset 0 0 0 1px var(--line-2);
  transition: background 0.25s var(--ease);
  flex: none;
}

.switch .track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--text-2);
  transition: transform 0.3s var(--spring), background 0.25s;
}

.switch input:checked + .track {
  background: var(--lime);
}

.switch input:checked + .track::after {
  transform: translateX(16px);
  background: var(--lime-ink);
}

.switch input:focus-visible + .track {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
}

.seg {
  position: relative;
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  border-radius: 12px;
  background: var(--bg-2);
  box-shadow: inset 0 0 0 1px var(--line-2);
}

.seg button {
  position: relative;
  z-index: 1;
  height: 32px;
  padding: 0 14px;
  border-radius: 9px;
  font-weight: 650;
  font-size: 13px;
  color: var(--text-2);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
  white-space: nowrap;
}

.seg button:hover {
  color: var(--text);
}

.seg button.is-active {
  color: var(--lime-ink);
}

.seg .seg-thumb {
  position: absolute;
  z-index: 0;
  top: 3px;
  bottom: 3px;
  left: 0;
  border-radius: 9px;
  background: var(--lime);
  transition: transform 0.35s var(--ease), width 0.35s var(--ease);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line-2);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  transition: all 0.2s var(--ease);
  white-space: nowrap;
}

.chip:hover {
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line-3);
}

.chip.is-active {
  background: var(--lime-soft);
  color: var(--lime);
  box-shadow: inset 0 0 0 1px var(--lime-line);
}

.chip .i {
  width: 16px;
  height: 16px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
  background: var(--surface-3);
  color: var(--text-2);
}

.pill .i {
  width: 14px;
  height: 14px;
}

.pill-good {
  background: rgba(62, 207, 110, 0.12);
  color: #6fe397;
}

.pill-warn {
  background: rgba(245, 176, 46, 0.12);
  color: #f7c35f;
}

.pill-bad {
  background: rgba(240, 82, 79, 0.12);
  color: #ff807d;
}

.pill-info {
  background: rgba(122, 167, 255, 0.12);
  color: #9dbdff;
}

.pill-lime {
  background: var(--lime-soft);
  color: var(--lime);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}

.dot.is-live {
  animation: pulse-dot 1.4s var(--ease) infinite;
}

.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: inset 0 0 0 1px var(--line);
}

.skeleton {
  position: relative;
  overflow: hidden;
  background: var(--surface-2);
  border-radius: 10px;
}

.skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.04), transparent);
  animation: shimmer 1.4s infinite;
}

.toasts {
  position: fixed;
  z-index: 200;
  right: 20px;
  bottom: 20px;
  display: grid;
  gap: 10px;
  width: min(380px, calc(100vw - 32px));
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--surface-2);
  box-shadow: var(--shadow-pop);
  pointer-events: auto;
  animation: toast-in 0.45s var(--spring) both;
}

.toast.is-leaving {
  animation: toast-out 0.3s var(--ease) both;
}

.toast .i {
  width: 20px;
  height: 20px;
  margin-top: 1px;
}

.toast-good .i {
  color: var(--lime);
}

.toast-bad .i {
  color: var(--bad);
}

.toast b {
  display: block;
  font-weight: 700;
}

.toast span {
  color: var(--text-2);
  font-size: 13px;
}

.overlay {
  position: fixed;
  z-index: 100;
  inset: 0;
  background: rgba(4, 4, 5, 0.66);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: fade-in 0.25s var(--ease) both;
}

.overlay.is-leaving {
  animation: fade-out 0.22s var(--ease) both;
}

.modal-wrap {
  position: fixed;
  z-index: 101;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  overflow-y: auto;
}

.modal {
  position: relative;
  width: min(520px, 100%);
  background: var(--surface);
  border-radius: 24px;
  box-shadow: var(--shadow-pop);
  animation: modal-in 0.4s var(--spring) both;
}

.modal-wrap.is-leaving .modal {
  animation: modal-out 0.2s var(--ease) both;
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px 0;
}

.modal-head h3 {
  font-size: 19px;
}

.modal-head p {
  margin-top: 6px;
  color: var(--text-2);
}

.modal-body {
  padding: 20px 24px;
}

.modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 0 24px 22px;
}

.sheet-wrap {
  position: fixed;
  z-index: 101;
  inset: 0;
  display: flex;
  justify-content: flex-end;
  pointer-events: none;
}

.sheet {
  position: relative;
  pointer-events: auto;
  height: 100%;
  width: min(1120px, 100%);
  background: var(--bg-2);
  box-shadow: -1px 0 0 var(--line-2), -40px 0 80px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  animation: sheet-in 0.5s var(--ease) both;
}

.sheet.is-narrow {
  width: min(560px, 100%);
}

.sheet-wrap.is-leaving .sheet {
  animation: sheet-out 0.3s var(--ease-in-out) both;
}

.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
}

.sheet-head h3 {
  font-size: 18px;
}

.sheet-body {
  flex: 1;
  overflow-y: auto;
}

.sheet-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}

.menu {
  position: fixed;
  z-index: 150;
  min-width: 200px;
  padding: 6px;
  border-radius: 14px;
  background: var(--surface-2);
  box-shadow: var(--shadow-pop);
  animation: menu-in 0.22s var(--ease) both;
  transform-origin: top right;
}

.menu button,
.menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border-radius: 9px;
  font-weight: 600;
  font-size: 13px;
  color: var(--text-2);
  text-align: left;
  transition: background 0.15s, color 0.15s;
}

.menu button:hover,
.menu a:hover {
  background: var(--surface-3);
  color: var(--text);
}

.menu .is-danger {
  color: var(--bad);
}

.menu .is-danger:hover {
  background: rgba(240, 82, 79, 0.1);
  color: var(--bad);
}

.menu hr {
  border: 0;
  height: 1px;
  background: var(--line-2);
  margin: 6px 4px;
}

.tip {
  position: fixed;
  z-index: 180;
  pointer-events: none;
  padding: 7px 10px;
  border-radius: 9px;
  background: var(--surface-3);
  box-shadow: var(--shadow-pop);
  color: var(--text);
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
  animation: tip-in 0.16s var(--ease) both;
}

.avatar {
  position: relative;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface-3);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 13px;
  color: var(--text-2);
}

.avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  background: var(--surface-3);
}

.avatar .badge-platform {
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 2px var(--surface);
  color: #fff;
}

.avatar .badge-platform .i {
  width: 11px;
  height: 11px;
}

.pf-youtube {
  background: var(--yt);
}

.pf-tiktok {
  background: var(--tt);
}

.pf-instagram {
  background: var(--ig);
}

.pf-text-youtube {
  color: var(--yt);
}

.pf-text-tiktok {
  color: var(--tt);
}

.pf-text-instagram {
  color: var(--ig);
}

.empty {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 48px 20px;
  text-align: center;
  color: var(--text-2);
}

.empty .empty-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line-2);
  color: var(--lime);
  margin-bottom: 6px;
}

.empty .empty-icon .i {
  width: 26px;
  height: 26px;
}

.empty h4 {
  color: var(--text);
  font-size: 16px;
}

.empty p {
  max-width: 380px;
}

.empty .btn {
  margin-top: 8px;
}

.spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--line-3);
  border-top-color: var(--lime);
  animation: spin 0.8s linear infinite;
}

.enter {
  animation: rise 0.5s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 55ms);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
}

@keyframes fade-out {
  to {
    opacity: 0;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes shimmer {
  to {
    transform: translateX(100%);
  }
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }
}

@keyframes toast-out {
  to {
    opacity: 0;
    transform: translateX(24px);
  }
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.97);
  }
}

@keyframes modal-out {
  to {
    opacity: 0;
    transform: scale(0.97);
  }
}

@keyframes sheet-in {
  from {
    transform: translateX(40px);
    opacity: 0;
  }
}

@keyframes sheet-out {
  to {
    transform: translateX(60px);
    opacity: 0;
  }
}

@keyframes menu-in {
  from {
    opacity: 0;
    transform: translateY(-4px) scale(0.97);
  }
}

@keyframes tip-in {
  from {
    opacity: 0;
    transform: translateX(-4px);
  }
}

@keyframes pulse-dot {
  0% {
    box-shadow: 0 0 0 0 currentColor;
  }
  70% {
    box-shadow: 0 0 0 6px transparent;
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
