:root {
  --lead-desk-max: 1180px;
}

.lead-desk-shell {
  max-width: var(--lead-desk-max);
}

.lead-desk-grid {
  grid-template-columns: minmax(0, 1.6fr) minmax(320px, 0.9fr);
}

.lead-desk-card .kicker {
  margin: 0 0 10px;
}

.field-label {
  display: block;
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-soft);
}

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

.consent-box {
  border-radius: 22px;
  border: 1px solid rgba(15, 23, 34, 0.08);
  background: rgba(16, 19, 26, 0.02);
  padding: 16px;
  display: grid;
  gap: 10px;
}

.consent-box.compact {
  padding: 14px 16px;
}

.consent-title {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 800;
  color: rgba(15, 23, 34, 0.72);
}

.consent-copy {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.7;
  font-size: 13px;
}

.private-data-notice {
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 34, 0.08);
  background: rgba(255, 255, 255, 0.64);
  padding: 14px;
}

.private-data-notice ul {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.65;
}

.private-data-notice li + li {
  margin-top: 7px;
}

.private-data-notice strong {
  color: var(--text);
}

.legal-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.consent-meta {
  margin: 0;
  font-size: 12px;
  color: var(--text-soft);
}

.check-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--text);
}

.check-row input {
  margin-top: 2px;
}

.terms-hidden-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.terms-decision-row {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 6px;
}

.admin-stats {
  display: grid;
  gap: 10px;
}

.admin-stat {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 34, 0.08);
  background: rgba(255, 255, 255, 0.6);
}

.admin-stat strong {
  font-weight: 700;
}

.lead-item {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 22px;
  border: 1px solid rgba(15, 23, 34, 0.08);
  background: rgba(255, 255, 255, 0.6);
}

.lead-item-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  align-items: baseline;
}

.lead-item-name {
  font-weight: 700;
}

.lead-item-meta {
  color: var(--text-soft);
  font-size: 12px;
}

.lead-item-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.lead-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 34, 0.08);
  background: rgba(16, 19, 26, 0.03);
  font-size: 12px;
  color: rgba(15, 23, 34, 0.72);
}

.lead-pill.is-ok {
  background: rgba(26, 127, 89, 0.08);
  border-color: rgba(26, 127, 89, 0.18);
  color: rgba(26, 127, 89, 0.92);
}

.lead-pill.is-warn {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.22);
  color: rgba(161, 98, 7, 0.95);
}

@media (max-width: 940px) {
  .lead-desk-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .lead-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

html[data-theme='dark'] .consent-box {
  border-color: rgba(248, 250, 252, 0.12);
  background: rgba(15, 23, 42, 0.52);
}

html[data-theme='dark'] .private-data-notice {
  border-color: rgba(248, 250, 252, 0.12);
  background: rgba(15, 23, 42, 0.55);
}

html[data-theme='dark'] .private-data-notice strong {
  color: rgba(248, 250, 252, 0.92);
}

html[data-theme='dark'] .consent-title,
html[data-theme='dark'] .lead-pill {
  color: rgba(248, 250, 252, 0.8);
}

html[data-theme='dark'] .admin-stat,
html[data-theme='dark'] .lead-item {
  border-color: rgba(248, 250, 252, 0.12);
  background: rgba(15, 23, 42, 0.55);
}
