@font-face {
  font-display: swap;
  font-family: Maison Neue;
  font-style: normal;
  font-weight: 600;
  src: url(/fonts/MaisonNeueExtended-Demi-BEvry19F.woff2) format("woff2");
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body.panel-page {
  background: #0a0a0a;
  color: #dbdbdb;
  font-family: Inter, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.panel-header {
  position: sticky;
  top: 0;
  z-index: 23;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 28px;
  background: rgba(10, 10, 10, 0.92);
  border-bottom: 1px solid #242424;
  backdrop-filter: blur(16px);
}

.panel-header__logo img {
  display: block;
  height: 32px;
}

.panel-header__right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.panel-header__right [data-panel-user] {
  color: #dbdbdb;
  font-size: 14px;
  font-weight: 500;
}

.panel-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  min-height: calc(100vh - 65px);
}

html.panel-lock-on,
body.panel-lock-on {
  overflow: hidden;
  height: 100%;
}

body.panel-lock-on {
  height: 100vh;
}

.panel-nav {
  position: relative;
  z-index: 22;
  padding: 20px 14px 32px;
  border-right: 1px solid #242424;
  background: #111111;
}

.panel-nav__label {
  margin: 18px 12px 8px;
  color: #7a7a7a;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.panel-nav__label:first-child {
  margin-top: 0;
}

.panel-nav button {
  display: block;
  width: 100%;
  margin-bottom: 6px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #b1b1b1;
  font-family: Inter, sans-serif;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}

.panel-nav button:hover,
.panel-nav button.is-on {
  border-color: #7f674d;
  background: #161412;
  color: #fccb93;
}

.panel-main {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 65px);
  padding: 32px 40px 0;
}

.panel-kicker {
  margin: 0 0 8px;
  color: #fccb93;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.panel-title {
  margin: 0 0 8px;
  font-family: Maison Neue, sans-serif;
  font-size: 36px;
  letter-spacing: -0.72px;
}

.panel-lead {
  margin: 0 0 28px;
  max-width: 640px;
  color: #b1b1b1;
  font-size: 15px;
  line-height: 24px;
}

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

.panel-card {
  padding: 20px;
  border: 1px solid #242424;
  border-radius: 16px;
  background: #111111;
}

.panel-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.panel-card p,
.panel-card li {
  color: #b1b1b1;
  font-size: 14px;
  line-height: 22px;
}

.panel-card ul {
  margin: 0;
  padding-left: 18px;
}

.panel-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.panel-field label {
  font-size: 13px;
  font-weight: 500;
}

.panel-field input,
.panel-field select,
.panel-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #242424;
  border-radius: 10px;
  background: #0a0a0a;
  color: #dbdbdb;
  font-family: Inter, sans-serif;
  font-size: 14px;
}

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

.panel-field input:focus,
.panel-field select:focus,
.panel-field textarea:focus {
  outline: none;
  border-color: #c49868;
}

.panel-view {
  display: none;
}

.panel-view.is-on {
  display: block;
}

.panel-lock {
  display: none;
  position: fixed;
  top: 65px;
  left: 240px;
  right: 0;
  bottom: 0;
  z-index: 21;
  align-items: center;
  justify-content: center;
  padding: 32px;
  overflow: hidden;
  background: rgba(10, 10, 10, 0.55);
  backdrop-filter: blur(16px);
}

.panel-lock.is-on {
  display: flex;
}

.panel-lock__card {
  max-width: 520px;
  width: min(520px, 100%);
  padding: 32px;
  border: 1px solid #fccb93;
  border-radius: 16px;
  background: rgba(22, 20, 18, 0.78);
  text-align: left;
  box-shadow: 0 0 0 1px rgba(252, 203, 147, 0.28), 0 0 64px rgba(252, 203, 147, 0.36);
  animation: panel-hold-glow 2.2s ease-in-out infinite;
}

@keyframes panel-hold-glow {
  0%,
  100% {
    box-shadow: 0 0 0 1px rgba(252, 203, 147, 0.22), 0 0 36px rgba(252, 203, 147, 0.22);
  }
  50% {
    box-shadow: 0 0 0 1px rgba(252, 203, 147, 0.4), 0 0 72px rgba(252, 203, 147, 0.48);
  }
}

.panel-lock__card h2 {
  margin: 0 0 12px;
  font-family: Maison Neue, sans-serif;
  font-size: 28px;
  color: #fccb93;
}

.panel-lock__card p {
  margin: 0 0 12px;
  color: #b1b1b1;
  font-size: 15px;
  line-height: 24px;
}

.panel-lock__time {
  margin-top: 16px;
  color: #fccb93;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.panel-hold {
  flex: 0 0 auto;
  margin: 0 0 24px;
  padding: 18px 20px;
  border: 1px solid #7f674d;
  border-radius: 16px;
  background: #161412;
  box-shadow: 0 0 36px rgba(252, 203, 147, 0.08);
}

.panel-hold h2 {
  margin: 0 0 8px;
  font-family: Maison Neue, sans-serif;
  font-size: 22px;
  color: #fccb93;
}

.panel-hold p {
  margin: 0 0 8px;
  max-width: 820px;
  color: #b1b1b1;
  font-size: 14px;
  line-height: 22px;
}

.panel-hold p:last-child {
  margin-bottom: 0;
}

.panel-stage {
  flex: 1 1 auto;
}

.panel-dock {
  position: sticky;
  bottom: 0;
  z-index: 8;
  flex: 0 0 auto;
  margin-top: 28px;
  padding: 16px 0 24px;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0), #0a0a0a 32%);
}

.panel-launch {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 36px;
  padding: 10px 14px;
  border: 1.4px solid #7f674d;
  border-radius: 8px;
  background: #1d1b18;
  color: #fccb93;
  font-family: Inter, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.panel-launch:hover {
  border-color: #c49868;
  background: #392f22;
  color: #fccb93;
  box-shadow: 0 0 0 1px rgba(252, 203, 147, 0.28), 0 0 64px rgba(252, 203, 147, 0.32);
}

.panel-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 30;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: rgba(10, 10, 10, 0.78);
  backdrop-filter: blur(8px);
}

.panel-modal.is-on {
  display: flex;
}

.panel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  background: #fccb93;
  color: #111;
  font-family: Inter, sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.panel-btn--ghost {
  background: transparent;
  border: 1px solid #242424;
  color: #dbdbdb;
}

.panel-note {
  margin: 0 0 20px;
  padding: 12px 14px;
  border: 1px solid #7f674d;
  border-radius: 12px;
  color: #fccb93;
  font-size: 13px;
}

.panel-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 4px;
  color: #8d8d8d;
  font-size: 12px;
}

.panel-live--off .panel-live__dot {
  background: #5a5a5a;
  box-shadow: none;
}

.panel-empty {
  margin: 0;
  padding: 28px 8px;
  color: #8d8d8d;
  font-size: 14px;
  text-align: center;
}

.panel-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.stat {
  padding: 16px 18px;
  border: 1px solid #242424;
  border-radius: 14px;
  background: #111111;
}

.stat__label {
  margin: 0 0 8px;
  color: #8d8d8d;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.stat__value {
  margin: 0;
  color: #fccb93;
  font-family: Maison Neue, sans-serif;
  font-size: 28px;
  letter-spacing: -0.5px;
}

.stat__delta {
  display: inline-block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
}

.stat__delta--up {
  color: #7dba7a;
}

.stat__delta--down {
  color: #c97a7a;
}

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

.panel-grid--wide {
  grid-template-columns: 1.4fr 1fr;
}

.chart {
  min-height: 220px;
}

.chart svg {
  display: block;
  width: 100%;
  height: 200px;
}

.chart__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  color: #8d8d8d;
  font-size: 12px;
}

.chart__key {
  display: flex;
  gap: 14px;
}

.chart__key span::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 3px;
  margin-right: 6px;
  vertical-align: middle;
  background: #fccb93;
}

.chart__key span:last-child::before {
  background: #7f674d;
}

.bars {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bar-row {
  display: grid;
  grid-template-columns: 92px 1fr 48px;
  gap: 10px;
  align-items: center;
  font-size: 13px;
}

.bar-row span:last-child {
  color: #fccb93;
  text-align: right;
}

.bar-track {
  height: 8px;
  overflow: hidden;
  border-radius: 99px;
  background: #1c1c1c;
}

.bar-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #7f674d, #fccb93);
}

.funnel {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.funnel__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #242424;
  border-radius: 10px;
  background: #0a0a0a;
}

.funnel__name {
  color: #dbdbdb;
  font-size: 13px;
}

.funnel__val {
  color: #fccb93;
  font-size: 13px;
  font-weight: 600;
}

.table-wrap {
  overflow: auto;
}

.panel-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.panel-table th,
.panel-table td {
  padding: 12px 10px;
  border-bottom: 1px solid #242424;
  text-align: left;
  white-space: nowrap;
}

.panel-table th {
  color: #8d8d8d;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 11px;
}

.panel-table td {
  color: #dbdbdb;
}

.badge {
  display: inline-flex;
  padding: 3px 8px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
}

.badge--live {
  background: rgba(125, 186, 122, 0.16);
  color: #7dba7a;
}

.badge--learn {
  background: rgba(252, 203, 147, 0.14);
  color: #fccb93;
}

.badge--off {
  background: #1c1c1c;
  color: #8d8d8d;
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  margin-bottom: 14px;
  padding: 14px 14px 14px 52px;
  border: 1px solid #242424;
  border-radius: 12px;
  background: #0a0a0a;
}

.steps li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 14px;
  top: 14px;
  color: #fccb93;
  font-family: Maison Neue, sans-serif;
  font-size: 13px;
}

.steps strong {
  display: block;
  margin-bottom: 4px;
  color: #dbdbdb;
}

.do-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.do-card h3 {
  color: #fccb93;
}

.do-card--dont h3 {
  color: #c97a7a;
}

.ad-preview {
  padding: 16px;
  border: 1px solid #242424;
  border-radius: 16px;
  background: #0a0a0a;
}

.ad-preview__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.ad-preview__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7f674d, #fccb93);
}

.ad-preview__name {
  font-size: 13px;
  font-weight: 600;
}

.ad-preview__sponsor {
  color: #8d8d8d;
  font-size: 11px;
}

.ad-preview__primary {
  margin: 0 0 12px;
  color: #dbdbdb;
  font-size: 14px;
  line-height: 22px;
  white-space: pre-wrap;
}

.ad-preview__media {
  display: flex;
  align-items: flex-end;
  height: 160px;
  margin-bottom: 12px;
  padding: 12px;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(10, 10, 10, 0.1), rgba(10, 10, 10, 0.72)),
    repeating-linear-gradient(135deg, #161412 0 12px, #111 12px 24px);
  color: #fccb93;
  font-size: 12px;
}

.ad-preview__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ad-preview__headline {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.ad-preview__desc {
  margin: 2px 0 0;
  color: #8d8d8d;
  font-size: 12px;
}

.ad-preview__btn {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 8px;
  background: #fccb93;
  color: #111;
  font-size: 12px;
  font-weight: 600;
}

.formula-row {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  align-items: start;
  margin-bottom: 12px;
}

.formula-tag {
  padding: 8px 10px;
  border: 1px solid #7f674d;
  border-radius: 8px;
  color: #fccb93;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

.panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.panel-lead--wide {
  max-width: 760px;
}

[data-min-plan]:not(.is-available) {
  display: none !important;
}

@media (max-width: 900px) {
  .panel-shell {
    grid-template-columns: 1fr;
  }

  .panel-nav {
    display: flex;
    gap: 8px;
    overflow: auto;
    border-right: 0;
    border-bottom: 1px solid #242424;
  }

  .panel-nav button {
    flex: 0 0 auto;
    width: auto;
    margin: 0;
  }

  .panel-grid,
  .panel-grid--3,
  .panel-grid--wide,
  .do-grid {
    grid-template-columns: 1fr;
  }

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

  .panel-nav__label {
    display: none;
  }

  .panel-main {
    padding: 24px 20px 0;
  }

  .panel-lock {
    top: 128px;
    left: 0;
  }
}
