.msw-lead {
  --msw-lead-ink: #172d24;
  --msw-lead-muted: #4e6258;
  --msw-lead-line: #cdd9d1;
  --msw-lead-accent: #c5451a;
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
  margin: 28px 0;
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--msw-lead-line);
  border-radius: 14px;
  background: #f4f8f5;
  color: var(--msw-lead-ink);
  font-size: 1rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.msw-lead *, .msw-lead *::before, .msw-lead *::after { box-sizing: border-box; }
.msw-lead [hidden] { display: none !important; }
.msw-lead h2, .msw-lead h3 {
  margin: 0 0 13px;
  color: var(--msw-lead-ink);
  font-size: clamp(1.4rem, 2.3vw, 1.85rem);
  line-height: 1.3;
  letter-spacing: -.025em;
}
.msw-lead p { margin: 0 0 17px; font-size: 1rem; line-height: 1.65; color: var(--msw-lead-muted); }
.msw-lead p:last-child { margin-bottom: 0; }
.msw-lead-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.msw-lead-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  appearance: none;
  min-width: 0;
  max-width: 100%;
  min-height: 50px;
  padding: 13px 22px;
  border: 1px solid var(--msw-lead-accent);
  border-radius: 8px;
  background: var(--msw-lead-accent);
  color: #fff;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  cursor: pointer;
  transition: background-color .15s, border-color .15s;
}
.msw-lead-button:hover { color: #fff; background: #a93512; border-color: #a93512; }
.msw-lead-button:focus-visible, .msw-lead a:focus-visible, .msw-lead summary:focus-visible {
  outline: 3px solid #28716a;
  outline-offset: 4px;
}
.msw-lead a[data-msw-fallback] {
  display: inline-block;
  max-width: 100%;
  padding: 10px 0;
  color: var(--msw-lead-ink);
  font-size: .9375rem;
  font-weight: 650;
  line-height: 1.5;
  text-decoration: underline;
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}
.msw-lead a[data-msw-fallback]:hover { color: #a93512; }
.msw-lead [data-msw-status] {
  margin: 18px 0 0;
  padding: 13px 16px;
  border-left: 3px solid #739284;
  border-radius: 0 6px 6px 0;
  background: #e8f0eb;
  color: #294b3a;
  font-size: .9375rem;
  line-height: 1.65;
}
.msw-lead [data-msw-status]:empty { display: none; }
.msw-lead[data-msw-state="context-error"] [data-msw-status],
.msw-lead[data-msw-state="unavailable"] [data-msw-status],
.msw-lead[data-msw-state="waiting"] [data-msw-status] {
  border-left-color: #ad6034;
  background: #fff4e9;
  color: #6d411e;
}
.msw-lead [data-msw-frame-slot] {
  min-width: 0;
  max-width: 100%;
  margin-top: 24px;
  border: 1px solid var(--msw-lead-line);
  border-radius: 9px;
  background: #fff;
  overflow: hidden;
  scroll-margin-top: 115px;
}
.msw-lead-frame {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 500px;
  height: 1100px;
  margin: 0;
  border: 0;
  background: #fff;
}
.msw-lead-context { margin-top: 20px; padding: 15px 17px; border: 1px solid var(--msw-lead-line); border-radius: 8px; background: #fff; }
.msw-lead-context summary { min-height: 30px; font-size: .9375rem; font-weight: 650; line-height: 1.55; cursor: pointer; }
.msw-lead-context label { display: block; margin-top: 17px; margin-bottom: 8px; font-size: .9375rem; font-weight: 600; line-height: 1.55; }
.msw-lead textarea[data-msw-context] {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 170px;
  padding: 12px 14px;
  border: 1px solid #a8bdb0;
  border-radius: 7px;
  background: #fff;
  color: var(--msw-lead-ink);
  font: inherit;
  font-size: 1rem;
  line-height: 1.6;
  resize: vertical;
}
.msw-lead textarea[data-msw-context]:focus { outline: 2px solid #28716a; outline-offset: 3px; }
@media (max-width: 640px) {
  .msw-lead { margin: 23px 0; padding: 19px 14px; border-radius: 10px; }
  .msw-lead-actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .msw-lead-button { width: 100%; padding: 13px 14px; }
  .msw-lead [data-msw-status] { padding: 12px; }
  .msw-lead [data-msw-frame-slot] { margin-top: 19px; scroll-margin-top: 90px; }
  .msw-lead-context { padding: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .msw-lead-button { transition: none; }
  .msw-lead [data-msw-frame-slot] { scroll-behavior: auto; }
}
