/**
 * Курс и уроки · «Путь логиста»
 * Sumi-e карточки + UI брендбука (concept-art-brief.md, brand-tokens.json)
 */

@import url("https://fonts.googleapis.com/css2?family=PT+Sans:ital,wght@0,400;0,700;1,400&display=swap");

:root {
  --li-brand: #fd7857;
  --li-brand-dark: #e75d3a;
  --li-ink: #3b4248;
  --li-ink-muted: #5a6168;
  --li-surface: #f8f8f0;
  --li-surface-warm: #fff6f3;
  --li-hinomaru: #c41e3a;
  --li-sky: #57dcfd;
  --li-mustard: #fdcb57;
  --li-font: "PT Sans", system-ui, sans-serif;
  --li-parchment: radial-gradient(
      ellipse 120% 80% at 8% 0%,
      rgba(196, 30, 58, 0.035),
      transparent 55%
    ),
    linear-gradient(180deg, #faf9f2 0%, #f8f8f0 100%);
}

body,
main {
  background-color: var(--li-surface) !important;
  font-family: var(--li-font) !important;
  color: var(--li-ink) !important;
}

/* Whitelabel: hide upstream LearnHouse / Powered by / «Сделано с помощью» */
a[href*="learnhouse.app"],
a[href*="learnhouse.io"],
a[href*="learnhouse.com"],
a[href*="//learnhouse"],
a[href*="github.com/learnhouse"],
footer a[href*="learnhouse"],
a[aria-label*="LearnHouse" i],
a[aria-label*="Powered by" i],
a[aria-label*="Сделано" i],
a[title*="LearnHouse" i],
a[title*="Powered" i],
a[title*="Сделано" i],
img[alt*="LearnHouse" i],
img[src*="learnhouse"],
[class*="powered-by"],
[class*="PoweredBy"],
[class*="poweredBy"],
[class*="made-with"],
[class*="MadeWith"],
[class*="madeWith"],
[data-testid*="powered-by"],
[data-testid*="learnhouse"],
[data-testid*="made-with"] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

footer p:has(a[href*="learnhouse"]),
footer span:has(a[href*="learnhouse"]),
footer div:has(> a[href*="learnhouse"]),
footer p:has(a[href*="github.com/learnhouse"]),
aside:has(a[href*="learnhouse.app"]),
div:has(> a[href*="learnhouse.app"]):not(main):not(nav):not(header),
/* Free-plan floating «Made with» / «Сделано с помощью» chip (Watermark.tsx) */
div.fixed.bottom-8.right-8.z-50,
div.fixed.bottom-8.right-8:has(a[href*="learnhouse"]),
a[href*="source=in-app"][href*="learnhouse"],
img[src*="lrn-text"],
img[src*="lrn_text"],
/* Login: Terms/Privacy + topbar LearnHouse mark */
p:has(a[href*="learnhouse.io/terms"]),
p:has(a[href*="learnhouse.io/privacy"]),
.login-topbar,
.login-topbar a[href*="learnhouse"],
img[src="/lrn.svg"],
img[src*="/lrn.svg"],
/* Org picker / residual vendor copyright */
p[class*="text-"]:has(> a[href*="learnhouse"]),
a[href="https://learnhouse.app"],
a[href="https://www.learnhouse.app"],
a[href^="https://www.learnhouse.app/"],
a[href^="https://learnhouse.app/"] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
}

/* Hide leftover «Сделано с помощью» / LearnHouse, Inc. lines when linked or labeled */
[aria-label*="LearnHouse" i],
[aria-label*="Сделано с помощью" i],
[aria-label*="Made with" i] {
  display: none !important;
}

/* Google OAuth not configured on pc2 -- hide decoy SSO button */
button:has(img[src*="productlogos/googleg"]),
button:has(img[src*="googleg/v6"]),
button:has(img[src*="googleg"]) {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
}

/* Login OR divider — Chromium rejects :has(+ sibling), use span marker */
body:has(input[type="password"]) div.relative.my-6:has(span.px-3),
body:has(input[type="password"]) div.space-y-2.5:has(button img[src*="googleg"]) {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
}

/* ── Обложка курса ── */
main .bg-cover.rounded-lg.shadow-xl,
main .relative.rounded-lg.shadow-xl.bg-cover {
  height: 240px !important;
  border-radius: 12px !important;
  background-size: cover !important;
  background-position: center 30% !important;
  box-shadow: 0 12px 40px rgba(59, 66, 72, 0.14) !important;
  border: 2px solid rgba(253, 120, 87, 0.15);
}

@media (min-width: 768px) {
  main .bg-cover.rounded-lg.shadow-xl,
  main .relative.rounded-lg.shadow-xl.bg-cover {
    height: 320px !important;
  }
}

/* ── Заголовки ── */
main h1,
.activity-info-section h1 {
  color: var(--li-ink) !important;
  font-weight: 700 !important;
  /* Не uppercase: «Сдача 1», не «СДАЧА 1»; уроки — как в каноне */
  text-transform: none !important;
  letter-spacing: 0.01em !important;
  line-height: 1.15 !important;
}

main h1::after,
.activity-info-section h1.font-bold::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background: var(--li-hinomaru);
  margin-top: 0.5rem;
  border-radius: 2px;
}

.course_metadata_left p.whitespace-pre-line,
.prose p {
  color: var(--li-ink-muted);
  line-height: 1.65;
}

/* ── Сайдбар ── */
.course_metadata_right .rounded-lg {
  border-radius: 10px !important;
  border: 1px solid rgba(59, 66, 72, 0.08) !important;
}

.course_metadata_right button[class*="bg-red"],
.course_metadata_right a[class*="bg-red"],
.course_metadata_right button.bg-red-500,
.course_metadata_right a.bg-red-600 {
  background-color: var(--li-brand) !important;
  color: #fff !important;
  border: none !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.85rem !important;
  border-radius: 9999px !important;
}

.course_metadata_right button[class*="bg-red"]:hover,
.course_metadata_right a[class*="bg-red"]:hover {
  background-color: var(--li-brand-dark) !important;
}

/* ── «Что вы узнаете» ── */
main h2.text-xl.font-bold,
main h2.text-2xl.font-bold {
  color: var(--li-ink);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 1.125rem !important;
}

main .rounded-lg.overflow-hidden.px-5.py-5.space-y-2 {
  background: var(--li-surface) !important;
  border: 1px solid rgba(253, 120, 87, 0.18) !important;
  border-radius: 12px !important;
}

main .rounded-lg.overflow-hidden.px-5.py-5.space-y-2 > div {
  color: var(--li-ink) !important;
  border-bottom: 1px solid rgba(59, 66, 72, 0.06);
}

/* ── Карточки уроков: только миниатюра в шапке, не hero в теле ── */
main img.li-lesson-card,
main img.li-lesson-hero-injected,
main .ProseMirror img.li-lesson-card {
  display: none !important;
}

/* Слайсы сетки уроков в TipTap (не diagrams/) */
main .ProseMirror img[src*="/brand/lessons/"]:not([src*="/diagrams/"]),
main .prose img[src*="/brand/lessons/"]:not([src*="/diagrams/"]) {
  display: none !important;
}

main img.li-activity-thumb {
  display: block !important;
  width: 100px !important;
  height: 57px !important;
  object-fit: contain !important;
  background: var(--li-parchment) !important;
  border-radius: 6px !important;
  padding: 2px !important;
  box-shadow: 0 2px 8px rgba(59, 66, 72, 0.1) !important;
}

/* ── Баннер на видео (poster до воспроизведения) ── */
.block-video .relative.group.w-full.aspect-video,
.block-video .aspect-video.overflow-hidden {
  position: relative;
}

.lp-video-banner {
  position: absolute;
  inset: 0;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: #0a0a0a;
  border-radius: inherit;
  overflow: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.lp-video-banner.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.lp-video-banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.lp-video-banner-play {
  position: relative;
  z-index: 2;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.92);
  background: rgba(196, 30, 58, 0.88);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.38);
  display: block;
}

.lp-video-banner-play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent #fff;
}

.block-video .relative.group:has(.lp-video-banner:not(.is-hidden)) .vjs-big-play-button,
.block-video .aspect-video:has(.lp-video-banner:not(.is-hidden)) .vjs-big-play-button {
  display: none !important;
}

.block-video .vjs-poster {
  background-size: cover !important;
  background-position: center !important;
}

/* ── Контент урока ── */
.bg-white.nice-shadow.rounded-lg {
  background: #fefefe !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 28px rgba(59, 66, 72, 0.07) !important;
  border: 1px solid rgba(59, 66, 72, 0.06);
}

.ProseMirror h2,
.prose h2 {
  color: var(--li-ink) !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 1.1rem !important;
  margin-top: 1.75rem !important;
}

.ProseMirror h3,
.prose h3 {
  color: var(--li-ink) !important;
  font-weight: 700 !important;
}

.ProseMirror blockquote,
.prose blockquote {
  border-left: 4px solid var(--li-hinomaru) !important;
  background: var(--li-surface-warm);
  padding: 0.75rem 1rem !important;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--li-ink-muted);
}

.ProseMirror hr,
.prose hr {
  border: none;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(196, 30, 58, 0.25),
    transparent
  );
  margin: 1.5rem 0;
}

/* ── Callout-блоки в конспектах ── */
.lp-callout {
  border-radius: 10px;
  padding: 0.85rem 1.1rem;
  margin: 1rem 0;
  border-left: 4px solid;
  font-size: 0.95rem;
  line-height: 1.6;
}

.lp-callout p {
  margin: 0;
}

.lp-info {
  background: rgba(87, 220, 253, 0.1);
  border-color: var(--li-sky);
  color: var(--li-ink);
}

.lp-conspect-download a {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.lp-conspect-download a:hover {
  color: var(--li-hinomaru);
}

.lp-important {
  background: rgba(196, 30, 58, 0.08);
  border-color: var(--li-hinomaru);
  color: var(--li-ink);
}

.lp-example {
  background: rgba(253, 203, 87, 0.15);
  border-color: var(--li-mustard);
  color: var(--li-ink);
}

.lp-tip {
  background: rgba(253, 120, 87, 0.1);
  border-color: var(--li-brand);
  color: var(--li-ink);
}

.lp-homework {
  background: linear-gradient(
    135deg,
    rgba(253, 203, 87, 0.18) 0%,
    rgba(253, 120, 87, 0.08) 100%
  );
  border-color: var(--li-mustard);
  border-left-width: 5px;
  margin: 1.75rem 0 2rem;
  padding: 1.1rem 1.25rem 1.15rem;
  box-shadow: 0 2px 12px rgba(196, 30, 58, 0.06);
}

.lp-homework-label {
  margin: 0 0 0.65rem !important;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--li-hinomaru);
}

.lp-homework-body > *:first-child {
  margin-top: 0;
}

.lp-homework-body > *:last-child {
  margin-bottom: 0;
}

.lp-homework-body p,
.lp-homework-body ol,
.lp-homework-body ul {
  margin: 0.35rem 0;
}

.lp-homework-body ol,
.lp-homework-body ul {
  padding-left: 1.25rem;
}

/* ── TipTap / LearnHouse: callout без div-обёрток ── */
.tiptap.ProseMirror blockquote,
.ProseMirror blockquote {
  border-radius: 10px;
  padding: 0.85rem 1.1rem;
  margin: 1rem 0;
  border-left: 4px solid;
  font-size: 0.95rem;
  line-height: 1.6;
  background: rgba(87, 220, 253, 0.1);
  border-color: var(--li-sky);
  color: var(--li-ink);
}

.tiptap.ProseMirror blockquote p,
.ProseMirror blockquote p {
  margin: 0.35rem 0;
}

.tiptap.ProseMirror blockquote p:first-child,
.ProseMirror blockquote p:first-child {
  margin-top: 0;
}

.tiptap.ProseMirror blockquote a[download],
.ProseMirror blockquote a[download] {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.tiptap.ProseMirror blockquote a[download]:hover,
.ProseMirror blockquote a[download]:hover {
  color: var(--li-hinomaru);
}

.tiptap.ProseMirror hr + h3,
.ProseMirror hr + h3 {
  margin: 0.25rem 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--li-hinomaru);
  line-height: 1.3;
}

.tiptap.ProseMirror hr + h3 + table,
.ProseMirror hr + h3 + table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 0 0 1.75rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(253, 203, 87, 0.55);
  border-left: 5px solid var(--li-mustard);
  background: linear-gradient(
    135deg,
    rgba(253, 203, 87, 0.16) 0%,
    rgba(253, 120, 87, 0.06) 100%
  );
  box-shadow: 0 2px 14px rgba(196, 30, 58, 0.07);
  font-size: 0.92rem;
}

.tiptap.ProseMirror hr + h3 + table th,
.ProseMirror hr + h3 + table th {
  background: rgba(253, 203, 87, 0.35);
  color: var(--li-ink);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.55rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid rgba(253, 203, 87, 0.45);
}

.tiptap.ProseMirror hr + h3 + table td,
.ProseMirror hr + h3 + table td {
  padding: 0.65rem 0.75rem;
  vertical-align: top;
  border-bottom: 1px solid rgba(253, 203, 87, 0.22);
  line-height: 1.5;
}

.tiptap.ProseMirror hr + h3 + table tr:last-child td,
.ProseMirror hr + h3 + table tr:last-child td {
  border-bottom: none;
}

.tiptap.ProseMirror hr + h3 + table td:first-child,
.ProseMirror hr + h3 + table td:first-child {
  width: 2.25rem;
  font-weight: 700;
  color: var(--li-hinomaru);
  text-align: center;
}

.tiptap.ProseMirror hr + h3 + table td:nth-child(2),
.ProseMirror hr + h3 + table td:nth-child(2) {
  width: 46%;
}

.tiptap.ProseMirror hr + h3 + table td:nth-child(3),
.ProseMirror hr + h3 + table td:nth-child(3) {
  color: rgba(26, 26, 26, 0.82);
}

.tiptap.ProseMirror hr + h3 + table a,
.ProseMirror hr + h3 + table a {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.tiptap.ProseMirror hr,
.ProseMirror hr {
  border: none;
  height: 0;
  margin: 1.25rem 0 0.85rem;
}

/* ── Legacy quiz-rotator classes (disabled plan A: native TipTap only) ── */
.lp-quiz-native-hidden {
  /* no longer hide native TipTap quiz */
  display: contents;
}

.lp-quiz-mount {
  width: 100%;
}

.block-quiz.lp-quiz-ready,
.block-quiz[data-li-quiz-enhanced="1"] {
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.lp-quiz-rotator {
  border-radius: 12px;
  padding: 1.1rem 1.2rem 1.15rem;
  border: 1px solid rgba(253, 203, 87, 0.45);
  border-left: 5px solid var(--li-mustard);
  background: linear-gradient(
    135deg,
    rgba(253, 203, 87, 0.14) 0%,
    rgba(87, 220, 253, 0.08) 100%
  );
  box-shadow: 0 2px 14px rgba(196, 30, 58, 0.07);
}

.lp-quiz-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}

.lp-quiz-badge {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--li-hinomaru);
}

.lp-quiz-score {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 700;
}

.lp-quiz-score-ok {
  color: #2f9e44;
}

.lp-quiz-score-bad {
  color: var(--li-hinomaru);
}

.lp-quiz-score-total {
  color: rgba(26, 26, 26, 0.55);
  font-weight: 600;
}

.lp-quiz-score-final {
  margin: 0.5rem 0 0.75rem;
  font-size: 1rem;
}

.lp-quiz-summary-text {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  color: var(--li-ink);
}

.lp-quiz-summary.is-pass {
  border-color: rgba(46, 125, 50, 0.45);
  background: linear-gradient(180deg, rgba(46, 125, 50, 0.08), transparent 60%);
}

.lp-quiz-summary.is-fail {
  border-color: rgba(183, 28, 28, 0.4);
  background: linear-gradient(180deg, rgba(183, 28, 28, 0.07), transparent 60%);
}

.lp-quiz-retry-other {
  background: var(--li-ink) !important;
  color: #fff !important;
}

.lp-quiz-summary .lp-quiz-actions {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.lp-quiz-question {
  margin: 0 0 1rem;
  font-size: 1rem;
  line-height: 1.55;
  font-weight: 600;
  color: var(--li-ink);
}

.lp-quiz-options {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.lp-quiz-opt {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  width: 100%;
  text-align: left;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(26, 26, 26, 0.12);
  background: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.lp-quiz-opt:hover:not(:disabled) {
  border-color: var(--li-sky);
  background: #fff;
}

.lp-quiz-opt.is-selected {
  border-color: var(--li-brand);
  box-shadow: 0 0 0 2px rgba(253, 120, 87, 0.18);
}

.lp-quiz-opt.is-correct {
  border-color: #2f9e44;
  background: rgba(47, 158, 68, 0.1);
}

.lp-quiz-opt.is-wrong {
  border-color: var(--li-hinomaru);
  background: rgba(196, 30, 58, 0.08);
}

.lp-quiz-opt:disabled {
  cursor: default;
  opacity: 0.95;
}

.lp-quiz-letter {
  flex: 0 0 auto;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(26, 26, 26, 0.07);
  color: var(--li-ink);
}

.lp-quiz-feedback {
  margin: 0.85rem 0 0;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  font-size: 0.92rem;
  line-height: 1.45;
}

.lp-quiz-feedback.is-ok {
  background: rgba(47, 158, 68, 0.12);
  color: #1b5e20;
}

.lp-quiz-feedback.is-bad {
  background: rgba(196, 30, 58, 0.1);
  color: var(--li-hinomaru);
}

.lp-quiz-actions {
  display: flex;
  gap: 0.65rem;
  margin-top: 0.9rem;
}

.lp-quiz-submit,
.lp-quiz-next {
  border: none;
  border-radius: 999px;
  padding: 0.55rem 1rem;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}

.lp-quiz-submit {
  background: var(--li-ink);
  color: #fff;
}

.lp-quiz-submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.lp-quiz-next {
  background: var(--li-mustard);
  color: var(--li-ink);
}

/* ── Модули · пять стихий ── */
main .bg-neutral-50.text-neutral-600.cursor-pointer {
  background: var(--li-surface) !important;
  color: var(--li-ink) !important;
  border-left: 4px solid var(--li-brand) !important;
  transition: background 0.15s;
}

main .bg-neutral-50.text-neutral-600.cursor-pointer:hover {
  background: var(--li-surface-warm) !important;
}

main .bg-neutral-50 .rounded-full.bg-neutral-200 {
  background: var(--li-hinomaru) !important;
  color: white !important;
  font-weight: 700;
}

main .activity-container:hover {
  background: var(--li-surface-warm);
}

main .text-teal-600 {
  color: var(--li-brand-dark) !important;
}

.fixed.top-\[60px\].bg-white\/90 {
  background: rgba(254, 254, 254, 0.94) !important;
  border-bottom: 1px solid rgba(59, 66, 72, 0.08);
}

/* ── Сноски и библиография ── */
.fn-ref {
  font-size: 0.75em;
  line-height: 0;
  margin-left: 1px;
}

.fn-ref a {
  color: var(--li-hinomaru) !important;
  text-decoration: none !important;
  font-weight: 700;
}

.fn-ref a:hover {
  text-decoration: underline !important;
}

h4.footnotes-heading {
  margin-top: 1.5rem !important;
  padding-top: 1rem;
  border-top: 1px solid rgba(59, 66, 72, 0.15);
  font-size: 0.95rem !important;
  color: var(--li-ink-muted) !important;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

ol.footnotes {
  font-size: 0.88rem;
  color: var(--li-ink-muted);
  line-height: 1.55;
  padding-left: 1.25rem;
  margin-top: 0.5rem;
}

ol.footnotes li {
  margin-bottom: 0.35rem;
}

/* ── Таблицы в конспектах ── */
.ProseMirror table,
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin: 1rem 0;
}

.ProseMirror th,
.prose th {
  background: var(--li-ink);
  color: #fefefe;
  padding: 0.5rem 0.75rem;
  text-align: left;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
}

.ProseMirror td,
.prose td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid rgba(59, 66, 72, 0.1);
}

.ProseMirror tr:nth-child(even) td,
.prose tr:nth-child(even) td {
  background: var(--li-surface-warm);
}

/* ── Mobile OrgMenu (hamburger) ──
 * Upstream MenuLinks = horizontal flex (space-x-5) ~540px wide —
 * on phones the row overflows and overlaps the profile block.
 */
@media (max-width: 767px) {
  /* Keep desktop chrome collapsed if Tailwind md: is delayed/offline */
  nav[aria-label="Top navigation"] .hidden.md\:flex {
    display: none !important;
  }

  /* Dropdown panel under the 60px top bar */
  .fixed.inset-x-0.md\:hidden,
  div.fixed.inset-x-0[class*="md:hidden"] {
    max-height: calc(100dvh - 60px);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: rgba(254, 254, 254, 0.96) !important;
  }

  div.fixed.inset-x-0[class*="md:hidden"] > .flex.flex-col {
    align-items: stretch !important;
    justify-content: flex-start !important;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Nav links: column, full width — not a desktop row */
  div.fixed.inset-x-0[class*="md:hidden"] .flex.space-x-5,
  div.fixed.inset-x-0[class*="md:hidden"] .py-4 > .flex {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 0.2rem !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
  }

  div.fixed.inset-x-0[class*="md:hidden"] .py-4 {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
  }

  div.fixed.inset-x-0[class*="md:hidden"] .flex.space-x-5 > a,
  div.fixed.inset-x-0[class*="md:hidden"] .py-4 > .flex > a {
    display: flex !important;
    align-items: center !important;
    gap: 0.55rem !important;
    width: 100% !important;
    box-sizing: border-box;
    padding: 0.7rem 0.85rem !important;
    border-radius: 10px !important;
    color: var(--li-ink) !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
  }

  div.fixed.inset-x-0[class*="md:hidden"] .flex.space-x-5 > a:active,
  div.fixed.inset-x-0[class*="md:hidden"] .py-4 > .flex > a:active {
    background: var(--li-surface-warm) !important;
  }

  /* Profile block: left-aligned, not centered over nav */
  div.fixed.inset-x-0[class*="md:hidden"] .border-t {
    width: 100% !important;
    display: flex !important;
    justify-content: flex-start !important;
    padding-top: 0.75rem !important;
    margin-top: 0.25rem !important;
  }

  div.fixed.inset-x-0[class*="md:hidden"] .border-t [class*="cursor-pointer"] {
    width: 100%;
    justify-content: flex-start;
  }

  /* Student chrome: hide unused LearnHouse surfaces on phone */
  div.fixed.inset-x-0[class*="md:hidden"] .flex.space-x-5 > a[href*="/podcasts"],
  div.fixed.inset-x-0[class*="md:hidden"] .flex.space-x-5 > a[href*="/communities"],
  div.fixed.inset-x-0[class*="md:hidden"] .flex.space-x-5 > a[href*="/playgrounds"],
  div.fixed.inset-x-0[class*="md:hidden"] .py-4 > .flex > a[href*="/podcasts"],
  div.fixed.inset-x-0[class*="md:hidden"] .py-4 > .flex > a[href*="/communities"],
  div.fixed.inset-x-0[class*="md:hidden"] .py-4 > .flex > a[href*="/playgrounds"],
  nav[aria-label="Top navigation"] a[href*="/podcasts"],
  nav[aria-label="Top navigation"] a[href*="/communities"],
  nav[aria-label="Top navigation"] a[href*="/playgrounds"] {
    display: none !important;
  }

  /* Activity body: room under fixed top bar */
  main {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }

  .activity-info-section h1,
  main h1 {
    font-size: clamp(1.05rem, 4.5vw, 1.35rem) !important;
    word-break: break-word;
  }

  .lp-video-banner-play {
    width: 56px;
    height: 56px;
  }

  .lp-video-banner-play::after {
    border-width: 10px 0 10px 16px;
  }
}

/*
 * LearnHouse: assignment description в <p class="text-sm leading-relaxed …">
 * без white-space → все \n схлопываются в пробелы. Читаемый текст с отступами
 * работает только с pre-wrap.
 */
.nice-shadow .pl-6 > p.text-sm.leading-relaxed,
.nice-shadow div.pl-6 > p,
p.text-sm.leading-relaxed.text-slate-600,
textarea[name="description"] {
  white-space: pre-wrap !important;
  word-break: break-word !important;
  line-height: 1.65 !important;
}

textarea[name="description"] {
  min-height: 18rem;
}

/* path-map restored 2026-08-02 rollback */
/* ── M2 path map · история одного логиста ── */
/* Contain inside ProseMirror column — never widen trail / homework */
main .lp-path-map,
main .lp-path-map-static,
.lp-path-map,
.lp-path-map-static {
  box-sizing: border-box;
  display: block;
  width: 100%;
  max-width: min(640px, 100%);
  min-width: 0;
  margin: 0.85rem 0 1.25rem;
  padding: 0.85rem 0.95rem;
  border-radius: 12px;
  overflow: hidden;
  contain: layout style;
  background:
    linear-gradient(165deg, rgba(253, 120, 87, 0.07), transparent 45%),
    var(--li-parchment, #f8f8f0);
  box-shadow: inset 0 0 0 1px rgba(59, 66, 72, 0.1);
  color: var(--li-ink, #3b4248);
  font-family: "PT Sans", sans-serif;
}

/* Live widget replaces static TipTap fallback */
main:has(.lp-path-map) .lp-path-map-static,
.lp-path-map-static[data-lp-path-map-replaced="1"] {
  display: none !important;
}

.lp-path-map__head {
  display: block;
  margin: 0 0 0.65rem;
  font-size: 0.92rem;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

.lp-path-map__hint {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.78rem;
  font-weight: 400;
  opacity: 0.7;
}

/* Vertical stepper — safe in narrow lesson column */
.lp-path-map__track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  min-width: 0;
}

.lp-path-map__node {
  position: relative;
  display: grid;
  grid-template-columns: 1.25rem minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 0.65rem;
  row-gap: 0.05rem;
  align-items: start;
  width: 100%;
  min-width: 0;
  max-width: none;
  text-align: left;
  padding: 0.45rem 0 0.45rem 0.15rem;
  box-sizing: border-box;
}

.lp-path-map__node:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 0.55rem;
  top: 1.55rem;
  bottom: -0.05rem;
  width: 2px;
  background: rgba(59, 66, 72, 0.16);
  z-index: 0;
}

.lp-path-map__node.is-done:not(:last-child)::after,
.lp-path-map__node.is-current:not(:last-child)::after {
  background: linear-gradient(
    180deg,
    var(--li-coral, #fd7857),
    rgba(253, 120, 87, 0.3)
  );
}

.lp-path-map__dot {
  position: relative;
  z-index: 1;
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: start;
  display: block;
  width: 1.1rem;
  height: 1.1rem;
  margin: 0.1rem 0 0;
  border-radius: 999px;
  border: 2px solid rgba(59, 66, 72, 0.25);
  background: #fefefe;
  box-shadow: none;
}

.lp-path-map__node.is-done .lp-path-map__dot {
  border-color: var(--li-coral, #fd7857);
  background: var(--li-coral, #fd7857);
}

.lp-path-map__node.is-current .lp-path-map__dot {
  border-color: var(--li-coral, #fd7857);
  background: #fefefe;
  box-shadow: 0 0 0 3px rgba(253, 120, 87, 0.2);
  animation: none;
}

.lp-path-map__node.is-todo .lp-path-map__dot {
  opacity: 0.5;
}

.lp-path-map__label {
  grid-column: 2;
  grid-row: 1;
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0.01em;
  line-height: 1.3;
  min-width: 0;
  overflow-wrap: anywhere;
}

.lp-path-map__sub {
  grid-column: 2;
  grid-row: 2;
  display: block;
  margin-top: 0;
  font-size: 0.74rem;
  line-height: 1.35;
  opacity: 0.78;
  max-height: none;
  overflow: hidden;
  min-width: 0;
  overflow-wrap: anywhere;
}

.lp-path-map__node.is-current .lp-path-map__label {
  color: var(--li-coral, #fd7857);
}

.lp-path-map__summary {
  margin: 0.55rem 0 0;
  font-size: 0.84rem;
  line-height: 1.4;
  min-width: 0;
  overflow-wrap: anywhere;
}

.lp-path-map__journal {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-top: 0.7rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(59, 66, 72, 0.1);
  min-width: 0;
}

.lp-path-map__journal-label {
  font-size: 0.8rem;
  font-weight: 700;
}

.lp-path-map__select {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  border: 1px solid rgba(59, 66, 72, 0.2);
  background: #fefefe;
  color: var(--li-ink, #3b4248);
  font: inherit;
  font-size: 0.86rem;
}

.lp-path-map__select:focus {
  outline: 2px solid rgba(253, 120, 87, 0.45);
  outline-offset: 1px;
}

.lp-path-map__foot {
  margin: 0.55rem 0 0;
  font-size: 0.72rem;
  line-height: 1.4;
  opacity: 0.68;
}

/* Static TipTap fallback table — also contained */
.lp-path-map-static table {
  width: 100%;
  max-width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.lp-path-map-static th,
.lp-path-map-static td {
  word-break: break-word;
  overflow-wrap: anywhere;
  vertical-align: top;
  padding: 0.35rem 0.4rem;
}

@media (max-width: 640px) {
  .lp-path-map,
  .lp-path-map-static {
    padding: 0.75rem 0.7rem;
    margin-left: 0;
    margin-right: 0;
  }
}

/* Interactive scenarios disabled (rollback) — hide leftovers */
main .lp-scenario-stage-host,
main .lp-scenario-stage,
.lp-scenario-stage-host,
.lp-scenario-stage,
html.lp-has-scenario-stage main [data-lp-native-scenario-hidden="1"],
main [data-lp-scenario-rollback-hidden="1"],
main .lp-path-map,
main .lp-path-map-static,
.lp-path-map,
.lp-path-map-static,
main .lp-m2-soft-gate,
.lp-m2-soft-gate,
main [data-lp-pathmap-rollback-hidden="1"] {
  display: none !important;
}

/* In-flow slot AFTER TipTap (sibling of .ProseMirror) — not under hide above */
.lp-after-tiptap {
  display: block !important;
  visibility: visible !important;
  width: 100%;
  max-width: 100%;
  margin: 1rem 0 1.5rem;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}

.lp-widget-howto {
  display: block !important;
  max-width: min(820px, 100%);
  margin: 0 auto 0.75rem;
  padding: 0.65rem 0.9rem;
  box-sizing: border-box;
  font-family: var(--li-font, "PT Sans", sans-serif);
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--li-ink, #3b4248);
  background: rgba(253, 120, 87, 0.08);
  border-left: 3px solid var(--li-coral, #fd7857);
  border-radius: 0 10px 10px 0;
}

.lp-widget-slot {
  display: block !important;
  visibility: visible !important;
  width: 100%;
  max-width: min(820px, 100%);
  margin: 0 auto 1.25rem;
  box-sizing: border-box;
  border-radius: 14px;
  /* avoid clipping iframe touch targets on iOS */
  overflow: visible;
  position: relative;
  z-index: 1;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.lp-widget-slot iframe,
.lp-widget-slot iframe.lp-widget-iframe {
  display: block !important;
  visibility: visible !important;
  width: 100% !important;
  max-width: 100% !important;
  border: 0;
  background: transparent;
  pointer-events: auto !important;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 700px) {
  .lp-after-tiptap {
    margin: 0.75rem 0 1.25rem;
    padding: 0;
  }

  .lp-widget-slot {
    max-width: 100%;
    margin: 0 0 1rem;
    border-radius: 12px;
  }

  .lp-widget-slot[data-lp-kind="scenario"] iframe.lp-widget-iframe {
    min-height: 720px;
  }

  .lp-widget-slot[data-lp-kind="quiz"] iframe.lp-widget-iframe {
    min-height: 560px;
  }
}

/* ── Scenario stage · Rise-like (kept offline; hidden above) ── */
/* Layout contract: stage portrait ≠ lesson body hero (/brand/lessons/). */

.lp-scenario-stage-host {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-sizing: border-box;
  width: 100%;
  max-width: min(820px, 100%);
  margin: 0 auto 1.75rem;
  contain: layout style;
}

.lp-scenario-stage {
  --lp-stage-ink: var(--li-ink, #3b4248);
  --lp-stage-coral: var(--li-coral, #fd7857);
  --lp-stage-paper: var(--li-parchment, #f8f8f0);
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  font-family: "PT Sans", sans-serif;
  color: var(--lp-stage-ink);
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(253, 120, 87, 0.12), transparent 55%),
    linear-gradient(160deg, #fff6f3 0%, var(--lp-stage-paper) 48%, #fefefe 100%);
  box-shadow:
    inset 0 0 0 1px rgba(59, 66, 72, 0.1),
    0 14px 36px rgba(59, 66, 72, 0.1);
}

.lp-scenario-stage__head {
  padding: 0.95rem 1.15rem 0.35rem;
}

.lp-scenario-stage__eyebrow {
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lp-stage-coral);
}

.lp-scenario-stage__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.3;
}

.lp-scenario-stage__grid {
  display: grid;
  grid-template-columns: minmax(140px, 220px) minmax(0, 1fr);
  gap: 0.85rem 1.1rem;
  padding: 0.35rem 1.15rem 0.85rem;
  align-items: stretch;
}

/* S3-hybrid: drill = panel-only (no samurai portrait on training cases) */
.lp-scenario-stage[data-genre="drill"] .lp-scenario-stage__grid {
  grid-template-columns: minmax(0, 1fr);
}

.lp-scenario-stage[data-genre="drill"] .lp-scenario-stage__hero {
  display: none;
}

/* S4-C1 soft checklist on DZ M2 */
.lp-m2-soft-gate {
  box-sizing: border-box;
  width: 100%;
  max-width: min(820px, 100%);
  margin: 0 auto 1.25rem;
  padding: 0.9rem 1.1rem;
  border-radius: 14px;
  background: linear-gradient(160deg, #fff6f3 0%, #f8f8f0 55%, #fff 100%);
  box-shadow: inset 0 0 0 1px rgba(59, 66, 72, 0.1);
  font-family: "PT Sans", sans-serif;
  color: #3b4248;
}
.lp-m2-soft-gate__title {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fd7857;
}
.lp-m2-soft-gate__hint {
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
  line-height: 1.45;
  opacity: 0.9;
}
.lp-m2-soft-gate__list {
  margin: 0 0 0.55rem;
  padding-left: 1.1rem;
  font-size: 0.9rem;
  line-height: 1.55;
}
.lp-m2-soft-gate__item.is-done { color: #3b4248; }
.lp-m2-soft-gate__item.is-todo { opacity: 0.75; }
.lp-m2-soft-gate__sum {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.4;
  opacity: 0.85;
}


.lp-scenario-stage__hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.55rem;
  padding: 0.35rem 0.25rem 0.5rem;
}

/* Portrait only — not lesson-card / full-bleed hero */
.lp-scenario-stage__hero-img,
main .lp-scenario-stage img.lp-scenario-stage__hero-img {
  display: block !important;
  width: 100%;
  max-width: 200px;
  height: auto;
  max-height: 180px;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  object-position: center top;
  background: rgba(59, 66, 72, 0.06);
  border-radius: 14px;
  box-shadow:
    0 0 0 1px rgba(59, 66, 72, 0.12),
    0 10px 24px rgba(15, 23, 42, 0.12);
  transition: transform 0.35s ease, filter 0.35s ease;
}

/* Vector placeholder reads better contained (not cropped navy slab) */
.lp-scenario-stage__hero-img[data-lp-hero-kind="svg"] {
  object-fit: contain;
  object-position: center;
  background:
    radial-gradient(80% 70% at 50% 30%, rgba(253, 120, 87, 0.12), transparent 60%),
    #f8f8f0;
}

.lp-scenario-stage[data-mood="tense"] .lp-scenario-stage__hero-img {
  filter: saturate(0.85) contrast(1.05);
  transform: translateY(2px);
}

.lp-scenario-stage[data-mood="resolve"] .lp-scenario-stage__hero-img {
  filter: saturate(1.05);
  transform: translateY(-2px);
}

.lp-scenario-stage__hero-cap {
  margin: 0;
  max-width: 12rem;
  text-align: center;
  font-size: 0.78rem;
  line-height: 1.35;
  opacity: 0.78;
}

.lp-scenario-stage__panel {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
}

.lp-scenario-stage__bubble {
  position: relative;
  padding: 0.95rem 1rem 1rem;
  border-radius: 14px;
  background: #fefefe;
  box-shadow:
    inset 0 0 0 1px rgba(59, 66, 72, 0.08),
    0 6px 16px rgba(59, 66, 72, 0.06);
  animation: lp-stage-in 0.35s ease;
}

.lp-scenario-stage__bubble.is-feedback {
  background: linear-gradient(180deg, #fff6f3, #fefefe);
  box-shadow:
    inset 0 0 0 1px rgba(253, 120, 87, 0.28),
    0 6px 16px rgba(253, 120, 87, 0.08);
}

.lp-scenario-stage__bubble.is-end {
  background: linear-gradient(180deg, #f0fafc, #fefefe);
}

.lp-scenario-stage__bubble-label {
  margin: 0 0 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  opacity: 0.65;
}

.lp-scenario-stage__bubble-text {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.55;
  white-space: pre-wrap;
}

.lp-scenario-stage__options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.lp-scenario-stage__option {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  width: 100%;
  margin: 0;
  padding: 0.75rem 0.85rem;
  text-align: left;
  cursor: pointer;
  border: 1px solid rgba(59, 66, 72, 0.14);
  border-radius: 12px;
  background: #fefefe;
  color: inherit;
  font: inherit;
  font-size: 0.95rem;
  line-height: 1.4;
  box-shadow: 0 2px 8px rgba(59, 66, 72, 0.05);
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.lp-scenario-stage__option:hover,
.lp-scenario-stage__option:focus-visible {
  border-color: rgba(253, 120, 87, 0.55);
  background: #fff6f3;
  box-shadow: 0 6px 16px rgba(253, 120, 87, 0.12);
  transform: translateY(-1px);
  outline: none;
}

.lp-scenario-stage__option.is-next {
  border-color: rgba(253, 120, 87, 0.45);
  background: linear-gradient(90deg, #fff6f3, #fefefe);
  font-weight: 700;
}

.lp-scenario-stage__option.is-done,
.lp-scenario-stage__option:disabled {
  cursor: default;
  opacity: 0.85;
  transform: none;
  box-shadow: none;
}

.lp-scenario-stage__letter {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.55rem;
  height: 1.55rem;
  margin-top: 0.05rem;
  border-radius: 999px;
  background: rgba(59, 66, 72, 0.08);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.lp-scenario-stage__option:hover .lp-scenario-stage__letter,
.lp-scenario-stage__option.is-next .lp-scenario-stage__letter {
  background: var(--lp-stage-coral);
  color: #fefefe;
}

.lp-scenario-stage__option-text {
  flex: 1 1 auto;
  min-width: 0;
}

.lp-scenario-stage__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 1.15rem 0.95rem;
  border-top: 1px solid rgba(59, 66, 72, 0.08);
}

.lp-scenario-stage__trail {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
}

.lp-scenario-stage__trail-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: rgba(59, 66, 72, 0.2);
}

.lp-scenario-stage__trail-dot.is-done {
  background: rgba(253, 120, 87, 0.55);
}

.lp-scenario-stage__trail-dot.is-current {
  width: 0.7rem;
  height: 0.7rem;
  background: var(--lp-stage-coral);
  box-shadow: 0 0 0 3px rgba(253, 120, 87, 0.22);
}

.lp-scenario-stage__reset {
  margin: 0;
  padding: 0.35rem 0.65rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--lp-stage-ink);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  opacity: 0.65;
  cursor: pointer;
}

.lp-scenario-stage__reset:hover,
.lp-scenario-stage__reset:focus-visible {
  opacity: 1;
  color: var(--lp-stage-coral);
  outline: none;
}

@keyframes lp-stage-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 700px) {
  .lp-scenario-stage__grid {
    grid-template-columns: 1fr;
    padding: 0.25rem 0.85rem 0.75rem;
  }

  .lp-scenario-stage__hero {
    flex-direction: row;
    justify-content: flex-start;
    gap: 0.75rem;
    padding: 0.15rem 0 0.25rem;
  }

  .lp-scenario-stage__hero-img,
  main .lp-scenario-stage img.lp-scenario-stage__hero-img {
    width: 88px;
    max-width: 88px;
    max-height: 72px;
    border-radius: 12px;
  }

  .lp-scenario-stage__hero-cap {
    text-align: left;
    max-width: none;
  }

  .lp-scenario-stage__head,
  .lp-scenario-stage__foot {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }
}
