.mst-caseflow-app {
  --mst-accent: #8f0b5d;
  --mst-accent-dark: #720545;
  --mst-text: #05040a;
  --mst-muted: #514852;
  --mst-line: #eadde5;
  --mst-soft: #fbf7fa;
  --mst-soft-2: #fffafd;
  --mst-success: #2f6f55;
  --mst-warning: #9a5b00;
  --mst-shadow: 0 16px 38px rgba(60, 18, 44, 0.08);
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  color: var(--mst-text);
  font-family: inherit;
  line-height: 1.66;
}

.mst-caseflow-app *,
.mst-caseflow-app *::before,
.mst-caseflow-app *::after {
  box-sizing: border-box;
}

.mst-caseflow-app button,
.mst-caseflow-app a,
.mst-caseflow-app summary {
  font: inherit;
}

.mst-caseflow-app button {
  margin: 0;
}

.mst-caseflow-app [hidden] {
  display: none !important;
}

.mst-caseflow-state {
  max-width: 980px;
  margin: 24px auto;
  padding: 20px 22px;
  border: 1px solid var(--mst-line);
  border-radius: 18px;
  background: var(--mst-soft);
  color: var(--mst-text);
  box-shadow: var(--mst-shadow);
}

.mst-caseflow-state--loading {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mst-caseflow-state--error {
  border-left: 5px solid var(--mst-warning);
}

.mst-caseflow-state__spinner {
  display: inline-block;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border: 3px solid rgba(143, 11, 93, 0.2);
  border-top-color: var(--mst-accent);
  border-radius: 50%;
  animation: mst-caseflow-spin 0.8s linear infinite;
}

.mst-caseflow-state__title {
  display: block;
  margin-bottom: 5px;
  color: var(--mst-warning);
  font-weight: 600;
}

.mst-caseflow-state__text {
  margin: 0;
  font-size: 16px;
}

@keyframes mst-caseflow-spin {
  to { transform: rotate(360deg); }
}

.mst-case-intro {
  max-width: 980px;
  margin: 0 auto;
}

.mst-case-section {
  margin: clamp(32px, 5vw, 60px) 0;
}

.mst-case-section:first-child {
  margin-top: 0;
}

.mst-case-section h2,
.mst-case-sources h2 {
  margin: 0 0 20px;
  color: var(--mst-accent);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 400;
  line-height: 1.16;
  letter-spacing: -0.015em;
}

.mst-case-section p,
.mst-case-sources > p {
  margin: 0 0 18px;
  font-size: clamp(17px, 1.5vw, 19px);
}

.mst-case-lead {
  padding: clamp(20px, 3vw, 28px);
  border-left: 5px solid var(--mst-accent);
  border-radius: 22px;
  background: var(--mst-soft);
  box-shadow: var(--mst-shadow);
}

.mst-case-lead p {
  margin: 0;
  font-size: clamp(18px, 1.9vw, 21px);
  line-height: 1.58;
}

.mst-case-callout {
  margin: 24px 0 0;
  padding: 22px 24px;
  border-left: 5px solid var(--mst-accent);
  border-radius: 18px;
  background: var(--mst-soft);
  box-shadow: var(--mst-shadow);
  font-size: clamp(17px, 1.5vw, 19px);
}

.mst-case-callout strong {
  color: var(--mst-accent);
}

.mst-case-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.mst-case-card {
  padding: 22px;
  border: 1px solid var(--mst-line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--mst-shadow);
}

.mst-case-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--mst-accent);
  font-size: clamp(19px, 1.8vw, 24px);
  font-weight: 500;
  line-height: 1.2;
}

.mst-case-card p {
  margin: 0;
}

.mst-caseflow__graph {
  margin: clamp(40px, 6vw, 72px) auto;
}

.mst-caseflow__head {
  max-width: 980px;
  margin: 0 auto 24px;
}

.mst-caseflow__head h2 {
  margin: 0 0 12px;
  color: var(--mst-accent);
  font-size: clamp(30px, 3.2vw, 44px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.mst-caseflow__head p {
  max-width: 920px;
  margin: 0;
  font-size: clamp(17px, 1.5vw, 19px);
}

.mst-caseflow__eyebrow {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 10px;
  padding: 7px 13px;
  border: 1px solid rgba(143, 11, 93, 0.28);
  border-radius: 999px;
  background: #fff5fb;
  color: var(--mst-accent);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mst-caseflow__panel-label {
  display: inline-grid;
  gap: 4px;
  width: fit-content;
  margin-bottom: 10px;
  padding: 8px 12px;
  border: 1px solid rgba(143, 11, 93, 0.28);
  border-radius: 14px;
  background: #fff5fb;
  color: var(--mst-accent);
  line-height: 1.15;
}

.mst-caseflow__panel-kicker,
.mst-caseflow__panel-badge {
  display: block;
}

.mst-caseflow__panel-kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mst-caseflow__panel-badge {
  font-size: 13px;
  font-weight: 600;
}

.mst-caseflow__shell {
  display: grid;
  grid-template-columns: minmax(540px, 0.98fr) minmax(420px, 1.02fr);
  align-items: start;
  gap: 26px;
}

.mst-caseflow__map {
  position: relative;
  min-width: 0;
  padding: 8px 4px 8px 56px;
}

.mst-caseflow__map::before {
  content: "";
  position: absolute;
  top: 24px;
  bottom: 34px;
  left: 24px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(var(--mst-accent), #d9b9cc 78%, var(--mst-line));
}

.mst-caseflow__stage {
  position: relative;
  margin: 0 0 24px;
}

.mst-caseflow__stage--has-branches {
  margin-bottom: 0;
}

.mst-caseflow__stage::before {
  content: attr(data-step);
  position: absolute;
  top: 18px;
  left: -45px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 2px solid var(--mst-accent);
  border-radius: 50%;
  background: #fff;
  color: var(--mst-accent);
  box-shadow: 0 0 0 5px #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.mst-caseflow__stage--pending::before {
  border-color: var(--mst-muted);
  color: var(--mst-muted);
}

.mst-caseflow__stage--current::before {
  border-color: var(--mst-accent);
  background: var(--mst-accent);
  color: #fff;
}

.mst-caseflow__node {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 154px;
  padding: 17px 18px;
  border: 1px solid var(--mst-line);
  border-left: 5px solid var(--mst-accent);
  border-radius: 20px;
  background-color: #fff;
  color: var(--mst-text);
  box-shadow: var(--mst-shadow);
  cursor: pointer;
  text-align: left;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.mst-caseflow__stage--current > .mst-caseflow__node,
.mst-caseflow__stage--current > .mst-caseflow__node + .mst-caseflow__mobile-slot {
  position: relative;
}

.mst-caseflow__stage--current > .mst-caseflow__node {
  background-image: linear-gradient(135deg, #fff5fb, #fff 72%);
}

.mst-caseflow__node:hover {
  transform: translateY(-2px);
  border-color: rgba(143, 11, 93, 0.48);
  box-shadow: 0 18px 42px rgba(60, 18, 44, 0.13);
}

.mst-caseflow__node:focus-visible,
.mst-caseflow__close:focus-visible,
.mst-caseflow__nav-btn:focus-visible,
.mst-case-doc__summary:focus-visible,
.mst-case-doc-link:focus-visible,
.mst-case-sources__group > summary:focus-visible,
.mst-case-sources__folder:focus-visible,
.mst-case-doc__external:focus-visible {
  outline: 3px solid rgba(143, 11, 93, 0.28);
  outline-offset: 4px;
}

.mst-caseflow__node-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.mst-caseflow__node-kicker {
  color: var(--mst-accent);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.mst-caseflow__node-date {
  flex: 0 0 auto;
  max-width: 48%;
  margin-left: auto;
  color: var(--mst-muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  text-align: right;
}

.mst-caseflow__node-title {
  display: block;
  font-size: clamp(18px, 1.7vw, 23px);
  font-weight: 500;
  line-height: 1.22;
}

.mst-caseflow__node-meta {
  display: block;
  margin-top: 7px;
  color: var(--mst-muted);
  font-size: 14px;
  line-height: 1.4;
}

.mst-caseflow__node-footer {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  width: 100%;
  margin-top: auto;
  padding-top: 12px;
}

.mst-caseflow__node-status {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  padding: 5px 9px;
  border: 1px solid rgba(143, 11, 93, 0.25);
  border-radius: 999px;
  background: #fff5fb;
  color: var(--mst-accent);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.1;
}

.mst-caseflow__node--answer {
  border-left-color: var(--mst-success);
}

.mst-caseflow__node--answer .mst-caseflow__node-kicker {
  color: var(--mst-success);
}

.mst-caseflow__node--answer .mst-caseflow__node-status {
  border-color: rgba(47, 111, 85, 0.26);
  background: #f4fbf7;
  color: var(--mst-success);
}

.mst-caseflow__node--gap {
  border-left-color: var(--mst-warning);
  border-left-style: dashed;
}

.mst-caseflow__node--gap .mst-caseflow__node-kicker {
  color: var(--mst-warning);
}

.mst-caseflow__node--gap .mst-caseflow__node-status {
  border-color: rgba(154, 91, 0, 0.28);
  background: #fff9ef;
  color: var(--mst-warning);
}

.mst-caseflow__node--pending {
  border-left-color: var(--mst-muted);
  background-color: var(--mst-soft-2);
}

.mst-caseflow__node--pending .mst-caseflow__node-kicker {
  color: var(--mst-muted);
}

.mst-caseflow__node--pending .mst-caseflow__node-status {
  border-color: rgba(81, 72, 82, 0.24);
  background: #fff;
  color: var(--mst-muted);
}

.mst-caseflow__node[aria-expanded="true"],
.mst-caseflow__stage--current > .mst-caseflow__node[aria-expanded="true"] {
  border-color: var(--mst-accent);
  background-color: var(--mst-accent);
  background-image: none;
  color: #fff;
}

.mst-caseflow__node[aria-expanded="true"] .mst-caseflow__node-meta,
.mst-caseflow__node[aria-expanded="true"] .mst-caseflow__node-kicker,
.mst-caseflow__node[aria-expanded="true"] .mst-caseflow__node-date {
  color: #fff;
}

.mst-caseflow__node[aria-expanded="true"] .mst-caseflow__node-status {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.mst-caseflow__fork {
  position: relative;
  margin: 0 0 26px;
  padding-top: 34px;
}

.mst-caseflow__fork::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 34px;
  background: var(--mst-line);
}

.mst-caseflow__branches {
  --branch-columns: 3;
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--branch-columns), minmax(0, 1fr));
  gap: 12px;
  padding-top: 20px;
}

.mst-caseflow__branches::before {
  content: "";
  position: absolute;
  top: 0;
  left: calc(50% / var(--branch-columns));
  right: calc(50% / var(--branch-columns));
  height: 2px;
  background: var(--mst-line);
}

.mst-caseflow__branch {
  position: relative;
  min-width: 0;
}

.mst-caseflow__branch--top-row::before {
  content: "";
  position: absolute;
  top: -20px;
  left: 50%;
  width: 2px;
  height: 20px;
  background: var(--mst-line);
}

.mst-caseflow__branch--lower-row {
  margin-top: 6px;
}

.mst-caseflow__branch .mst-caseflow__node {
  height: 100%;
  padding: 14px;
  border-radius: 17px;
}

.mst-caseflow__node--branch .mst-caseflow__node-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 5px;
  margin-bottom: 8px;
}

.mst-caseflow__node--branch .mst-caseflow__node-date {
  max-width: 100%;
  width: 100%;
  margin-left: 0;
  overflow-wrap: anywhere;
  white-space: normal;
  text-align: right;
}

.mst-caseflow__node--branch .mst-caseflow__node-kicker {
  display: block;
  width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
  white-space: normal;
  text-align: left;
}

.mst-caseflow__branch .mst-caseflow__node-footer {
  padding-top: 10px;
}

.mst-caseflow__branch .mst-caseflow__node-title {
  font-size: 17px;
}

.mst-caseflow__branch .mst-caseflow__node-meta {
  font-size: 13px;
}

.mst-caseflow__mobile-slot {
  display: none;
}

.mst-caseflow__detail-wrap {
  position: sticky;
  top: 24px;
  min-width: 0;
}

.mst-caseflow__detail {
  max-height: calc(100vh - 48px);
  overflow: auto;
  border: 1px solid var(--mst-line);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--mst-shadow);
  scrollbar-color: rgba(143, 11, 93, 0.32) transparent;
}

.mst-caseflow__detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 22px 18px;
  border-bottom: 1px solid var(--mst-line);
  background: linear-gradient(135deg, var(--mst-soft), #fff 72%);
}

.mst-caseflow__detail-head h3 {
  margin: 0;
  color: var(--mst-text);
  font-size: clamp(22px, 2.2vw, 31px);
  font-weight: 500;
  line-height: 1.2;
}

.mst-caseflow__detail-body {
  padding: 22px;
}

.mst-caseflow__detail-body p {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.62;
}

.mst-caseflow__detail-lead {
  font-size: 18px !important;
}

.mst-caseflow__detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 18px 0;
}

.mst-caseflow__detail-box {
  padding: 16px;
  border: 1px solid var(--mst-line);
  border-radius: 17px;
  background: var(--mst-soft-2);
}

.mst-caseflow__detail-box h4,
.mst-caseflow__block-title {
  margin: 0 0 7px;
  color: var(--mst-accent);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}

.mst-caseflow__block-title {
  margin-top: 20px;
  font-size: 18px;
}

.mst-caseflow__detail-box p,
.mst-caseflow__detail-box li {
  font-size: 15px;
  line-height: 1.55;
}

.mst-caseflow__detail-box p:last-child {
  margin-bottom: 0;
}

.mst-caseflow__detail-box ul {
  margin: 0;
  padding-left: 1.15em;
}

.mst-caseflow__detail-box li {
  margin: 0 0 7px;
}

.mst-caseflow__detail-box li:last-child {
  margin-bottom: 0;
}

.mst-caseflow__detail-callout {
  margin: 18px 0;
  padding: 16px 18px;
  border-left: 4px solid var(--mst-accent);
  border-radius: 14px;
  background: var(--mst-soft);
  font-size: 15px;
}

.mst-caseflow__detail-callout strong {
  color: var(--mst-accent);
}

.mst-caseflow__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  padding: 0;
  border: 1px solid var(--mst-line);
  border-radius: 50%;
  background: #fff;
  color: var(--mst-accent);
  cursor: pointer;
  font-size: 23px;
  line-height: 1;
}

.mst-caseflow__close:hover {
  background: var(--mst-soft);
}

.mst-caseflow__detail-nav {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--mst-line);
}

.mst-caseflow__nav-btn {
  padding: 9px 12px;
  border: 1px solid rgba(143, 11, 93, 0.28);
  border-radius: 999px;
  background: #fff;
  color: var(--mst-accent);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}

.mst-caseflow__nav-btn:hover {
  background: var(--mst-soft);
}

.mst-caseflow__nav-btn[disabled] {
  opacity: 0.38;
  cursor: not-allowed;
}

.mst-caseflow__default {
  padding: 26px;
}

.mst-caseflow__default h3 {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.25;
}

.mst-caseflow__default p {
  margin: 0 0 12px;
  font-size: 16px;
}

.mst-case-doc-link {
  display: block;
  margin: 16px 0;
  padding: 16px 18px;
  border: 1px solid var(--mst-line);
  border-radius: 18px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.mst-case-doc-link:hover {
  transform: translateY(-1px);
  border-color: rgba(143, 11, 93, 0.42);
  box-shadow: 0 12px 28px rgba(60, 18, 44, 0.1);
}

.mst-case-doc-link__content {
  display: block;
}

.mst-case-doc-link__title {
  display: block;
  color: var(--mst-text);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}

.mst-case-doc-link__meta {
  display: block;
  margin-top: 4px;
  color: var(--mst-muted);
  font-size: 13px;
}

.mst-case-doc-link__action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 11px;
  padding: 7px 11px;
  border: 1px solid rgba(143, 11, 93, 0.35);
  border-radius: 999px;
  background: #fff5fb;
  color: var(--mst-accent);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
}

.mst-case-doc-link__action::after {
  content: "↗";
  font-size: 14px;
  line-height: 1;
}

.mst-case-doc {
  margin: 16px 0;
  overflow: hidden;
  border: 1px solid var(--mst-line);
  border-radius: 18px;
  background: #fff;
}

.mst-case-doc__summary {
  position: relative;
  padding: 16px 52px 16px 18px;
  list-style: none;
  cursor: pointer;
}

.mst-case-doc__summary::-webkit-details-marker,
.mst-case-sources__group > summary::-webkit-details-marker {
  display: none;
}

.mst-case-doc__summary::after {
  content: "+";
  position: absolute;
  top: 16px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(143, 11, 93, 0.28);
  border-radius: 50%;
  color: var(--mst-accent);
  font-size: 20px;
  line-height: 1;
}

.mst-case-doc[open] > .mst-case-doc__summary::after {
  content: "−";
}

.mst-case-doc__title {
  display: block;
  color: var(--mst-text);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}

.mst-case-doc__meta {
  display: block;
  margin-top: 4px;
  color: var(--mst-muted);
  font-size: 13px;
}

.mst-case-doc__toggle {
  display: inline-flex;
  margin-top: 11px;
  padding: 7px 11px;
  border: 1px solid rgba(143, 11, 93, 0.35);
  border-radius: 999px;
  background: #fff5fb;
  color: var(--mst-accent);
  font-size: 13px;
  font-weight: 600;
}

.mst-case-doc__hide {
  display: none;
}

.mst-case-doc[open] .mst-case-doc__show {
  display: none;
}

.mst-case-doc[open] .mst-case-doc__hide {
  display: inline;
}

.mst-case-doc__preview {
  padding: 14px;
  border-top: 1px solid var(--mst-line);
  background: var(--mst-soft-2);
}

.mst-case-doc__frame {
  height: min(72vh, 760px);
  min-height: 420px;
  overflow: hidden;
  border: 1px solid var(--mst-line);
  border-radius: 14px;
  background: #fff;
}

.mst-case-doc__frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.mst-case-doc__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 24px;
  color: var(--mst-muted);
  text-align: center;
}

.mst-case-doc__external {
  display: inline-flex;
  margin-top: 11px;
  color: var(--mst-accent);
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mst-caseflow__qa {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.mst-caseflow__qa-institution {
  overflow: hidden;
  border: 1px solid var(--mst-line);
  border-radius: 20px;
  background: #fff;
}

.mst-caseflow__qa-institution--gap {
  border-color: rgba(154, 91, 0, 0.45);
  border-style: dashed;
}

.mst-caseflow__qa-head {
  padding: 17px 18px;
  border-bottom: 1px solid var(--mst-line);
  background: linear-gradient(135deg, var(--mst-soft), #fff 76%);
}

.mst-caseflow__qa-head h4 {
  margin: 4px 0 5px;
  color: var(--mst-text);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.3;
}

.mst-caseflow__qa-head p {
  margin: 0;
  color: var(--mst-muted);
  font-size: 13px;
}

.mst-caseflow__qa-eyebrow {
  display: inline-flex;
  padding: 5px 9px;
  border: 1px solid rgba(143, 11, 93, 0.28);
  border-radius: 999px;
  background: #fff5fb;
  color: var(--mst-accent);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.mst-caseflow__qa-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--mst-line);
}

.mst-caseflow__qa-pair:first-child {
  border-top: 0;
}

.mst-caseflow__qa-question,
.mst-caseflow__qa-answer {
  padding: 16px;
}

.mst-caseflow__qa-question {
  border-right: 1px solid var(--mst-line);
  background: #fff;
}

.mst-caseflow__qa-answer {
  background: var(--mst-accent);
  color: #fff;
}

.mst-caseflow__qa-answer--gap {
  background: #7b4d08;
}

.mst-caseflow__qa-question span,
.mst-caseflow__qa-answer span {
  display: inline-flex;
  margin-bottom: 9px;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.mst-caseflow__qa-question span {
  background: var(--mst-soft);
  color: var(--mst-accent);
}

.mst-caseflow__qa-answer span {
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.mst-caseflow__qa-question p,
.mst-caseflow__qa-answer p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
}

.mst-caseflow__qa-answer p {
  color: #fff;
}

.mst-caseflow__qa-sense {
  padding: 14px 16px;
  background: var(--mst-accent-dark);
  color: #fff;
  font-size: 14px;
  line-height: 1.55;
}

.mst-caseflow__qa-sense strong {
  color: #fff;
}

.mst-case-sources {
  max-width: 980px;
  margin: clamp(48px, 6vw, 72px) auto 0;
}

.mst-case-sources > p {
  margin-bottom: 20px;
}

.mst-case-sources__group {
  margin: 14px 0;
  overflow: hidden;
  border: 1px solid var(--mst-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--mst-shadow);
}

.mst-case-sources__group > summary {
  position: relative;
  padding: 18px 52px 18px 20px;
  list-style: none;
  color: var(--mst-accent);
  cursor: pointer;
  font-size: clamp(18px, 1.8vw, 23px);
  font-weight: 500;
}

.mst-case-sources__group > summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  font-size: 24px;
  font-weight: 400;
}

.mst-case-sources__group[open] > summary::after {
  content: "−";
}

.mst-case-sources__body {
  padding: 16px 18px;
  border-top: 1px solid var(--mst-line);
  background: var(--mst-soft-2);
}

.mst-case-sources__folder {
  display: inline-flex;
  margin: 14px 0 4px;
  padding: 9px 13px;
  border: 1px solid rgba(143, 11, 93, 0.3);
  border-radius: 999px;
  background: #fff;
  color: var(--mst-accent);
  font-weight: 600;
  text-decoration: none;
}

.mst-case-sources__folder:hover {
  background: var(--mst-soft);
}

@media (max-width: 1100px) and (min-width: 941px) {
  .mst-caseflow__shell {
    grid-template-columns: 1fr;
  }

  .mst-caseflow__detail-wrap {
    position: static;
  }

  .mst-caseflow__detail {
    max-height: none;
  }
}

@media (max-width: 940px) {
  .mst-case-cards {
    grid-template-columns: 1fr;
  }

  .mst-caseflow__shell {
    grid-template-columns: 1fr;
  }

  .mst-caseflow__detail-wrap {
    position: static;
    display: none;
  }

  .mst-caseflow__detail {
    max-height: none;
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .mst-caseflow__mobile-slot {
    display: block;
    margin-top: 12px;
  }

  .mst-caseflow__mobile-slot:empty {
    display: none;
  }

  .mst-caseflow__mobile-slot > [data-case-panel] {
    overflow: hidden;
    border: 1px solid var(--mst-line);
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--mst-shadow);
  }

  .mst-caseflow__fork {
    margin-bottom: 30px;
    padding-top: 38px;
  }

  .mst-caseflow__fork::before {
    top: 0;
    left: 20px;
    width: 2px;
    height: calc(100% - 28px);
  }

  .mst-caseflow__branches {
    grid-template-columns: 1fr;
    gap: 14px;
    padding-top: 0;
    padding-left: 42px;
  }

  .mst-caseflow__branches::before {
    display: none;
  }

  .mst-caseflow__branches > .mst-caseflow__branch::before {
    content: "";
    position: absolute;
    top: 28px;
    left: -22px;
    width: 22px;
    height: 2px;
    background: var(--mst-line);
  }

  .mst-caseflow__branch .mst-caseflow__node {
    height: auto;
  }

  .mst-caseflow__qa-pair {
    grid-template-columns: 1fr;
  }

  .mst-caseflow__qa-question {
    border-right: 0;
    border-bottom: 1px solid var(--mst-line);
  }

  .mst-caseflow__detail-head,
  .mst-caseflow__detail-body {
    padding: 18px;
  }

  .mst-case-doc__frame {
    height: 70vh;
    min-height: 380px;
  }
}

@media (max-width: 620px) {
  .mst-caseflow__map {
    padding-left: 43px;
  }

  .mst-caseflow__map::before {
    left: 17px;
  }

  .mst-caseflow__stage::before {
    left: -37px;
  }

  .mst-caseflow__node-top {
    align-items: flex-start;
  }

  .mst-caseflow__node-date {
    max-width: 52%;
  }

  .mst-caseflow__node-status {
    white-space: normal;
    text-align: center;
  }

  .mst-caseflow__fork::before {
    left: 14px;
  }

  .mst-caseflow__branches {
    padding-left: 34px;
  }

  .mst-caseflow__branches > .mst-caseflow__branch::before {
    left: -20px;
    width: 20px;
  }

  .mst-caseflow__detail-nav {
    flex-direction: column;
  }

  .mst-caseflow__nav-btn {
    width: 100%;
  }

  .mst-case-doc__summary {
    padding-right: 46px;
  }

  .mst-case-doc__summary::after {
    right: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mst-caseflow__node {
    transition: none;
  }

  .mst-caseflow-state__spinner {
    animation: none;
  }

  html:focus-within {
    scroll-behavior: auto;
  }
}

@media print {
  .mst-caseflow__detail-wrap,
  .mst-caseflow__detail-nav,
  .mst-caseflow__close,
  .mst-case-doc__toggle,
  .mst-case-doc__preview {
    display: none !important;
  }

  .mst-caseflow__shell {
    display: block;
  }

  .mst-caseflow__node,
  .mst-case-card,
  .mst-case-sources__group {
    box-shadow: none;
  }
}
