/* ─── Modal overlay ──────────────────────────────────────────────────────────
   Применяется ко всем модалкам.
   display переключается через JS: cexOpenModal / cexCloseModal
   ────────────────────────────────────────────────────────────────────────── */

.cex-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(195, 180, 160, 0.28);
  z-index: 99000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  opacity: 0;
  transition: opacity 0.22s ease;
}

.cex-modal-overlay--dark {
  background: rgba(195, 180, 160, 0.42);
}

/* ─── Анимации — управляются JS через .modal-opening / .modal-closing ─────── */

.cex-modal-overlay.modal-opening {
  display: flex;
  opacity: 1;
}

.cex-modal-overlay.modal-closing {
  opacity: 0;
}

/* ─── Modal box ──────────────────────────────────────────────────────────── */

.cex-modal-box {
  background: #F7F2EA;
  border-radius: 24px;
  padding: 32px 28px;
  width: min(420px, 90vw);
  box-shadow:
    0  2px  4px rgba(40, 35, 30, 0.04),
    0  8px 20px rgba(40, 35, 30, 0.10),
    0 20px 40px rgba(40, 35, 30, 0.10),
    0  0   0 1px rgba(206, 196, 184, 0.55);
  font-family: 'Jost', sans-serif;
  position: relative;
  transform-origin: center center;
  will-change: transform, opacity;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity   0.26s ease,
    transform 0.26s cubic-bezier(0.22, 1, 0.36, 1);
}

.modal-opening .cex-modal-box {
  opacity: 1;
  transform: translateY(0);
}

.modal-closing .cex-modal-box {
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity   0.16s ease-in,
    transform 0.16s ease-in;
}

/* ─── Stagger-анимация дочерних элементов ────────────────────────────────── */

@keyframes cexFadeUp {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.modal-opening .cex-modal-box > *:nth-child(1) { animation: cexFadeUp 0.30s ease 0.06s both; }
.modal-opening .cex-modal-box > *:nth-child(2) { animation: cexFadeUp 0.30s ease 0.12s both; }
.modal-opening .cex-modal-box > *:nth-child(3) { animation: cexFadeUp 0.30s ease 0.18s both; }
.modal-opening .cex-modal-box > *:nth-child(4) { animation: cexFadeUp 0.30s ease 0.22s both; }
.modal-opening .cex-modal-box > *:nth-child(5) { animation: cexFadeUp 0.30s ease 0.26s both; }
.modal-opening .cex-modal-box > *:nth-child(n+6) { animation: cexFadeUp 0.30s ease 0.28s both; }

/* Компактный — consult-modal, share-error, share-register */
.cex-modal-box--compact {
  width: min(340px, 90vw);
  padding: 28px 22px;
}

/* Широкий — invite-modal */
.cex-modal-box--wide {
  width: min(460px, 92vw);
  max-height: min(88vh, 680px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.cex-modal-box--wide::-webkit-scrollbar { display: none; }

/* ─── Scroll hint ────────────────────────────────────────────────────────── */

/* Sticky "scroll down" indicator — works inside any overflow-y:auto container */
.cex-scroll-hint {
  position: sticky;
  bottom: 0;
  margin: 8px -28px -32px;
  padding: 20px 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.cex-scroll-hint--hidden {
  opacity: 0;
}

/* Frosted pill — the visible badge inside the hint area */
.cex-scroll-hint-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 13px 5px 10px;
  border-radius: 20px;
  background: rgba(247, 242, 234, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #7A6E64;
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  letter-spacing: 0.04em;
  /* fade all edges of the pill */
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}

/* Variant for intro body */
.cex-scroll-hint--intro {
  margin: 8px -20px -16px;
}
.cex-scroll-hint--intro .cex-scroll-hint-pill {
  background: rgba(240, 235, 225, 0.6);
  -webkit-mask-image: radial-gradient(ellipse 140% 140% at 50% 50%, black 10%, rgba(0,0,0,0.6) 45%, transparent 100%);
  mask-image: radial-gradient(ellipse 140% 140% at 50% 50%, black 10%, rgba(0,0,0,0.6) 45%, transparent 100%);
}

/* ─── Invite session-type chooser ────────────────────────────────────────── */

.invite-type-group {
  display: flex;
  gap: 8px;
}
.invite-type-opt {
  flex: 1;
  cursor: pointer;
  display: block;
}
.invite-type-opt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.invite-type-card {
  display: block;
  height: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1.5px solid #CEC4B8;
  border-radius: 10px;
  background: #FFFDF9;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.invite-type-opt input:checked + .invite-type-card {
  border-color: #8EA68C;
  background: #F0F7F0;
}
.invite-type-name {
  display: block;
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #28231E;
}
.invite-type-desc {
  display: block;
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  color: #9A8E84;
  margin-top: 3px;
  line-height: 1.4;
}

/* ─── Research tests info page (client view) ──────────────────────────────── */

.research-info-hero {
  text-align: center;
  margin-bottom: 18px;
}
.research-info-glyph {
  font-family: 'Cormorant Garamond', serif;
  font-size: 44px;
  color: #8EA68C;
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 6px;
}
.research-info-lead {
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  color: #5A5049;
  line-height: 1.6;
  margin: 0;
}
.research-test {
  border: 1px solid #E4DBCF;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 12px;
  background: #FFFDF9;
}
.research-test-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.research-test-name {
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #28231E;
}
.research-test-time {
  font-family: 'Roboto Flex', sans-serif;
  font-size: 11px;
  color: #9A8E84;
  white-space: nowrap;
}
.research-test-desc {
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  color: #7A6E64;
  line-height: 1.5;
  margin: 0 0 12px;
}
.research-test-link {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 9px;
  font-size: 13px;
  text-decoration: none;
}
.research-info-note {
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  color: #9A8E84;
  line-height: 1.5;
  margin: 4px 0 0;
}

.research-test-result {
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: #6E8A6C;
  background: #F0F7F0;
  border: 1px solid #D4E3D2;
  border-radius: 8px;
  padding: 6px 10px;
  margin: 0 0 12px;
}

/* ─── Test questionnaire (quiz) ───────────────────────────────────────────── */

.quiz-question {
  margin-bottom: 18px;
}
.quiz-question-text {
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #28231E;
  line-height: 1.45;
  margin-bottom: 8px;
}
.quiz-opts {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.quiz-opt {
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  padding: 9px 12px;
  border: 1.5px solid #CEC4B8;
  border-radius: 9px;
  background: #FFFDF9;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.quiz-opt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.quiz-opt-radio {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid #CEC4B8;
  position: relative;
  transition: border-color 0.15s ease;
}
.quiz-opt input:checked + .quiz-opt-radio {
  border-color: #8EA68C;
}
.quiz-opt input:checked + .quiz-opt-radio::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: #8EA68C;
}
.quiz-opt input:checked ~ .quiz-opt-label {
  color: #28231E;
}
.quiz-opt:has(input:checked) {
  border-color: #8EA68C;
  background: #F0F7F0;
}
.quiz-opt-label {
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  color: #5A5049;
}

/* ─── Test results rows (psych modal + session detail) ────────────────────── */

.test-result-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid #EDE6DA;
}
.test-result-row:last-child { border-bottom: none; }
.test-result-name {
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  color: #28231E;
}
.test-result-score {
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #6E8A6C;
  white-space: nowrap;
}
.test-result-pending {
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  color: #B7AC9E;
  white-space: nowrap;
}

/* ─── Research admin: active-tests management ─────────────────────────────── */

.research-admin-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid #E4DBCF;
  border-radius: 12px;
  background: #FFFDF9;
}
.research-admin-info { flex: 1; min-width: 0; }
.research-admin-name {
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #28231E;
}
.research-admin-meta {
  font-family: 'Roboto Flex', sans-serif;
  font-size: 11px;
  color: #9A8E84;
  margin-top: 2px;
}
.research-admin-desc {
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  color: #7A6E64;
  line-height: 1.45;
  margin-top: 5px;
}

/* Toggle switch */
.cex-switch {
  position: relative;
  flex-shrink: 0;
  width: 44px;
  height: 26px;
  cursor: pointer;
}
.cex-switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.cex-switch-track {
  position: absolute;
  inset: 0;
  border-radius: 13px;
  background: #D6CCBE;
  transition: background 0.2s ease;
}
.cex-switch-track::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #FFFDF9;
  box-shadow: 0 1px 3px rgba(0,0,0,0.18);
  transition: transform 0.2s ease;
}
.cex-switch input:checked + .cex-switch-track {
  background: #8EA68C;
}
.cex-switch input:checked + .cex-switch-track::before {
  transform: translateX(18px);
}

/* Link to reopen the research page on the intro screen */
.research-open-link {
  display: inline-block;
  margin-top: 8px;
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: #8EA68C;
  background: none;
  border: none;
  border-bottom: 1px solid rgba(142,166,140,0.5);
  padding: 0 0 1px;
  cursor: pointer;
}

/* ─── Modal title ────────────────────────────────────────────────────────── */

.cex-modal-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 400;
  color: #28231E;
  margin: 0 0 20px;
}

.cex-modal-title--serif-lg {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* ─── Close button (×) ───────────────────────────────────────────────────── */

.cex-modal-close {
  position: absolute;
  top: 8px;
  right: 10px;
  background: none;
  border: none;
  font-size: 19px;
  color: #B8AFA7;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: color 0.15s, background 0.15s, transform 0.15s;
  -webkit-tap-highlight-color: transparent;
  z-index: 2;
}
/* Гарантируем, что весь квадрат кнопки кликабелен — ни SVG, ни <use> не
   перехватывают клики, иначе попасть в крестик трудно (особенно на тач). */
.cex-modal-close > * {
  pointer-events: none;
}
.cex-modal-close .cex-icon {
  width: 14px;
  height: 14px;
  stroke-width: 2;
}

.cex-modal-close:hover {
  color: #4A4440;
  background: rgba(206, 196, 184, 0.22);
  transform: scale(1.08);
}
.cex-modal-close:active {
  background: rgba(206, 196, 184, 0.35);
  transform: scale(0.96);
}

/* ─── Modal input ────────────────────────────────────────────────────────── */

.cex-modal-input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 9px;
  border: 1.5px solid #CEC4B8;
  background: white;
  color: #28231E;
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  box-sizing: border-box;
  outline: none;
}

/* ─── Modal footer row ───────────────────────────────────────────────────── */

.cex-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* ─── Dropdown menus ─────────────────────────────────────────────────────── */

.cex-dropdown-menu {
  display: none;
  position: fixed;
  background: #F7F2EA;
  border: 1.5px solid rgba(206, 196, 184, 0.70);
  border-radius: 12px;
  flex-direction: column;
  gap: 0;
  z-index: 9990;
  right: 16px;
  padding: 6px;
  /* Ширина как у кнопки «Обзор карты» (.intro-btn = 180px), box-sizing:border-box глобально */
  width: 180px;
  box-shadow:
    0 2px  6px rgba(40, 35, 30, 0.06),
    0 8px 24px rgba(40, 35, 30, 0.10);
}

.cex-dropdown-menu-btn {
  font-size: 13px;
  padding: 10px 14px;
  width: 100%;
  text-align: center;
  border: none;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.cex-dropdown-menu-btn::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 50%;
  width: calc((100% - 28px) / 1.5);
  height: 1.5px;
  background: #CEC4B8;
  border-radius: 1px;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  transition: transform 0.18s ease;
}

.cex-dropdown-menu-btn:hover::after {
  transform: translateX(-50%) scaleX(1);
}

.cex-dropdown-menu-btn:active::after {
  background: #9A8E84;
  transform: translateX(-50%) scaleX(1);
}

/* ─── Accessibility ──────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .cex-modal-box,
  .cex-modal-overlay,
  .cex-modal-box > * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ─── Comparison chat modal: floating, draggable, resizable ──────────────── */

/* Overlay is click-through so page below remains usable */
.cmp-chat-overlay {
  background: transparent !important;
  pointer-events: none;
  padding: 0;
}
.cmp-chat-overlay.modal-opening { display: block !important; }

.cmp-chat-overlay .cmp-chat-box {
  pointer-events: auto;
  /* Position is set by JS on open; these are fallback defaults */
  top: 8vh;
  left: 50%;
  width: min(520px, 94vw);
  height: min(560px, 80vh);
  padding: 0;
  background: #F7F2EA;
  box-shadow:
    0 4px 12px rgba(40, 35, 30, 0.10),
    0 14px 36px rgba(40, 35, 30, 0.14),
    0 0 0 1px rgba(206, 196, 184, 0.55);
}

/* Disable parent's child-stagger animation for chat modal — interferes with
   absolute positioning + drag */
.modal-opening .cmp-chat-box > * { animation: none !important; }

#cmp-chat-resize:hover svg line { stroke: #5A5049; }
#cmp-chat-header:active { cursor: grabbing; }

/* ══════════════════════════════════════════════════════════════════════════
   Consult modal («Запись на сессию») — просторный, выдержанный дизайн
   ════════════════════════════════════════════════════════════════════════ */

#consult-modal .cex-modal-box {
  width: min(468px, 92vw);
  max-height: 92vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 44px 40px 36px;
}
#consult-modal .cex-modal-box::-webkit-scrollbar { display: none; }

.consult-hero { text-align: center; margin-bottom: 32px; }
.consult-hero__glyph {
  font-family: 'Cormorant Garamond', serif;
  font-size: 44px;
  line-height: 1;
  color: #8EA68C;
  opacity: 0.26;
  margin-bottom: 16px;
}
.consult-eyebrow {
  font-family: 'Jost', sans-serif;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8EA68C;
  margin: 0;
}
/* Логотип над подписью «Живая сессия» — точно как .cex-logo на главной:
   сериф, вес 600, letter-spacing .06em, «Co» #28231E + «Eхpera» sage. */
.consult-brand {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.06em;
  color: #28231E;
  margin-bottom: 9px;
}
.consult-brand em { color: #8EA68C; font-style: normal; }
.consult-hero__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  font-weight: 500;
  line-height: 1.1;
  color: #28231E;
  margin: 12px 0 0;
}
.consult-hero__sub {
  font-family: 'Jost', sans-serif;
  font-size: 13.5px;
  line-height: 1.6;
  color: #7A6E64;
  margin: 12px auto 0;
  max-width: 340px;
}

/* — Список преимуществ: тонкая разделительная линия, без заливки — */
.consult-benefits {
  list-style: none;
  margin: 0 0 30px;
  padding: 26px 4px 0;
  border-top: 1px solid #E8E0D4;
}
.consult-benefit {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  line-height: 1.5;
  color: #5A5049;
}
.consult-benefit + .consult-benefit { margin-top: 16px; }
.consult-benefit__tick {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 0;
  border-radius: 50%;
  background: rgba(142, 166, 140, 0.14);
  color: #6E8C6C;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  line-height: 1;
}

/* — Выбор формата (карточки-радио) — */
.consult-opts {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}
.consult-opt {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 19px 20px;
  border: 1px solid #E2D9CC;
  border-radius: 16px;
  background: #FCFAF6;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.consult-opt:hover { border-color: #C3B7A6; }
.consult-opt input { position: absolute; opacity: 0; pointer-events: none; }
.consult-opt:has(input:checked) {
  border-color: #8EA68C;
  background: #FFFFFF;
  box-shadow: 0 0 0 1px #8EA68C, 0 6px 16px rgba(142, 166, 140, 0.12);
}
.consult-opt__body { flex: 1; min-width: 0; }
.consult-opt__name {
  font-family: 'Jost', sans-serif;
  font-size: 14.5px;
  font-weight: 500;
  color: #28231E;
  margin: 0 0 4px;
}
.consult-opt__meta {
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  line-height: 1.5;
  color: #9A8E84;
  margin: 0;
}
/* «+ тесты (15 мин) + видеозапись» — единый блок: на узком экране переносится
   на новую строку целиком, а не разрывается между словами/символами. */
.consult-opt__meta-tests { white-space: nowrap; }
.consult-opt__price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-family: 'Jost', sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  color: #5A5049;
  margin-top: 10px;
}
.consult-opt__price s { color: #C3B7A6; font-weight: 400; margin-right: 6px; white-space: nowrap; }
/* Незачёркнутая (актуальная) цена — единый блок: на узком экране переносится
   на новую строку целиком, а не разрывается между цифрами/символами. */
.consult-opt__price-now { white-space: nowrap; }
/* Скидка живёт в строке цены — тихий контурный sage-чип, без «наклейки» в углу */
.consult-opt__save {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  color: #8EA68C;
  border: 1px solid rgba(142, 166, 140, 0.45);
  border-radius: 7px;
  padding: 2px 8px;
  line-height: 1.3;
  white-space: nowrap;
}

/* — Блок контакта — */
.consult-contact-block { margin-bottom: 8px; }
.consult-contact-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}
.consult-contact-row #consult-messenger {
  width: auto;
  flex: 0 0 auto;
  max-width: 42%;
}
.consult-contact-row #consult-messenger,
.consult-contact-row #consult-contact {
  padding: 12px 14px;
}
.consult-contact-row #consult-contact {
  flex: 1 1 auto;
  min-width: 0;
}
.consult-field-label {
  font-family: 'Jost', sans-serif;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: #7A6E64;
  margin: 0 0 11px;
}
.consult-note {
  font-family: 'Jost', sans-serif;
  font-size: 11.5px;
  line-height: 1.5;
  color: #BEB4A8;
  margin: 14px 0 0;
}
.consult-cta {
  width: 100%;
  margin-top: 22px;
  padding: 15px;
  border-radius: 13px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.03em;
}

/* На телефоне модал — та же «плавающая» карточка с полями по краям, что и
   раньше, но прижата к верху, чтобы только перекрыть лого главной страницы. */
@media (max-width: 480px) {
  #consult-modal {
    align-items: flex-start;
    padding-top: 8px;
  }
  #consult-modal .cex-modal-box {
    max-height: calc(100vh - 24px);
  }
}

/* ══════════════════════════════════════════════════════════════════════════
   Sticker-info modal («Значение цвета тактов переживания») — редизайн легенды
   ════════════════════════════════════════════════════════════════════════ */

.legend-list { display: flex; flex-direction: column; gap: 4px; }
.legend-item {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 11px 12px;
  border-radius: 12px;
  transition: background 0.15s ease;
}
.legend-item:hover { background: rgba(142, 166, 140, 0.06); }
.legend-swatch {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 7px;
  box-shadow:
    inset 0 0 0 1px rgba(40, 35, 30, 0.06),
    0 3px 6px rgba(14, 15, 14, 0.10);
}
.legend-text { font-family: 'Jost', sans-serif; }
.legend-lead {
  font-size: 13px;
  font-weight: 600;
  color: #28231E;
  line-height: 1.3;
  margin: 1px 0 2px;
}
.legend-desc {
  font-size: 12px;
  line-height: 1.5;
  color: #8A7E72;
  margin: 0;
}
