/* Pull-request examples, code findings, and playback controls. */
.mars-demo {
  --md-ink: #f2f4f6;
  --md-muted: #adb0b3;
  --md-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --md-accent: #9db7ff;
  --md-success: #9bb7ff;
  --md-stroke: #303336;
  color: var(--md-ink);
  background: #08090a;
  font-family: Inter, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.mars-demo, .mars-demo * { box-sizing: border-box }
.mars-demo [hidden] { display: none !important }
.mars-demo .md-wrap {
  max-width: 1240px;
  width: calc(100% - clamp(40px, 10vw, 144px));
  margin: auto;
  padding: clamp(60px, 8vw, 116px) 0;
  display: grid;
  grid-template-columns: minmax(0,.8fr) minmax(0,1.15fr);
  align-items: center;
  gap: clamp(36px,7.5vw,110px);
  border-top: 1px solid #25282b;
}
.md-review .md-wrap { grid-template-columns: minmax(0,1.15fr) minmax(0,.8fr) }
.md-review .md-copy { grid-column: 2; grid-row: 1 }
.md-review .md-console { grid-column: 1; grid-row: 1 }
.mars-demo .md-copy { min-width: 0 }
.mars-demo .md-eyebrow {
  display: flex; align-items: center; gap: 12px;
  margin: 0 0 23px; color: var(--md-accent);
  font: 500 11px/1.2 var(--md-mono); letter-spacing: .13em;
}
.mars-demo .md-eyebrow i { width: 25px; height: 1px; background: currentColor }
.mars-demo .md-copy h2 {
  margin: 0; font: 620 clamp(40px, 4.8vw, 70px)/.99 Inter, Arial, sans-serif;
  letter-spacing: -.065em; text-wrap: balance; color: var(--md-ink);
}
.mars-demo .md-copy h2 em { color: var(--md-accent); font: inherit }
.mars-demo .md-description { margin: 24px 0 0; max-width: 420px; color: var(--md-muted); font: 400 clamp(15px,1.2vw,18px)/1.6 Inter, Arial, sans-serif; letter-spacing: -.016em }
.mars-demo .md-console {
  min-width: 0; position: relative; overflow: hidden;
  border: 1px solid #35435e; border-radius: 17px; background: #0f1112;
  box-shadow: 0 20px 60px -38px #224fd6, inset 0 1px 0 #5f729040;
}
.mars-demo .md-console-cap { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 19px; background: linear-gradient(110deg,#1b2437,#151921 75%); border-bottom: 1px solid var(--md-stroke) }
.mars-demo .md-console-cap > span { display: flex; align-items: center; gap: 9px; font-size: 14px; letter-spacing: -.02em }
.mars-demo .md-console-cap > span b { font-weight: 580 }
.mars-demo .md-console-cap svg { display: block; width: 17px; height: 17px; color: var(--md-accent) }
.mars-demo .md-console-cap small,.mars-demo .md-review-controls > span { color: #b2b5b8; font: 400 10px/1.4 var(--md-mono) }
.mars-demo button { cursor: pointer; font-family: inherit; appearance: none }
.mars-demo button:focus-visible,.mars-demo summary:focus-visible { outline: 2px solid #aac2ff; outline-offset: 2px }
.mars-demo .md-iconbutton { flex: none; display: grid; place-items: center; padding: 0; height: 29px; width: 30px; border-radius: 6px; background: #17191b; color: #cacdd0; border: 1px solid #36435b }
.mars-demo .md-iconbutton:hover { color: white; border-color: #6682b4; background: #1e2c42 }
.mars-demo .md-iconbutton svg { width: 15px; height: 15px }
.mars-demo .md-file { border-bottom: 1px solid #292c2f; display: flex; align-items: center; gap: 7px; min-height: 33px; padding: 7px 14px; color: #c1c4c7; background: #151719; font: 500 11px/1.2 var(--md-mono) }
.mars-demo .md-file svg { width: 14px; height: 14px; color: #999c9f; flex: none }
.mars-demo .md-diff code { font: inherit; white-space: pre; background: none; color: inherit; padding: 0 }
.mars-demo .mr-code-keyword { font-style: normal; color: #efa07e }
.mars-demo .mr-code-string { text-decoration: none; color: #a5bfff }
.mars-demo .md-providers { display: flex; flex-wrap: wrap; gap: 17px 26px; margin-top: 28px; padding-top: 17px; border-top: 1px solid #2b2e31; width: fit-content }
.mars-demo .md-provider { display: grid; gap: 3px }
.mars-demo .md-provider b { font: 540 14px/1.3 Inter,Arial,sans-serif; color: #dde0e3 }
.mars-demo .md-provider span { font: 400 11px/1.4 var(--md-mono); color: #9b9ea1 }
.mars-demo .md-pr-heading { padding: 18px 20px 16px }
.mars-demo .md-pr-heading > span { color: #9fa2a5; font: 500 10px/1.4 var(--md-mono) }
.mars-demo .md-pr-heading h3 { margin: 5px 0 0; letter-spacing: -.035em; font: 600 clamp(17px,1.5vw,22px)/1.22 Inter,Arial,sans-serif; color: var(--md-ink) }
.md-review .md-file { border-block: 1px solid #292c2f }
.mars-demo .md-changecount { margin-left: auto }
.mars-demo .mr-count { display: flex; gap: 8px; font: 450 11px/1.2 var(--md-mono) }
.mars-demo .mr-count b { color: var(--md-success); font-weight: inherit }
.mars-demo .mr-count i { color: #f3ab8a; font-style: normal }
.mars-demo .md-diff { padding: 10px 0; background: #0a0c0d; color: #d5d8db; overflow-x: auto }
.mars-demo .mr-code-line { display: flex; align-items: baseline; width: max-content; min-width: 100%; font: 400 clamp(10px,1vw,12px)/1.7 var(--md-mono); padding: 0 12px }
.mars-demo .mr-line-number,.mars-demo .mr-line-sign { width: 21px; flex: none; color: #878a8d; font-size: .91em; user-select: none }
.mars-demo .mr-line-sign { width: 14px }
.mars-demo .mr-added-line { background: #132444 }
.mars-demo .mr-added-line .mr-line-sign { color: var(--md-success) }
.mars-demo .mr-removed-line { background: #302018 }
.mars-demo .mr-removed-line .mr-line-sign { color: #f2aa8b }
.mars-demo .mr-risk-dot { margin-left: 8px; color: #f0a27e; font-weight: 660 }
.mars-demo .md-finding { display: grid; grid-template-columns: 22px 1fr; align-items: start; gap: 8px; padding: 17px 19px; border-top: 1px solid #292c2f }
.mars-demo .md-finding > div { min-width: 0 }
.mars-demo .md-review-symbol { display: grid; place-items: center; width: 22px; height: 22px; color: #e77d4e }
.mars-demo .md-review-symbol svg { width: 19px; height: 19px }
.mars-demo .md-finding strong { display: block; font: 600 14px/1.5 Inter,Arial,sans-serif; color: #eaedef; letter-spacing: -.012em }
.mars-demo .md-finding p { font: 400 12.5px/1.55 Inter,Arial,sans-serif; margin: 6px 0; color: #b2b5b8 }
.mars-demo .md-finding p code { color: #d4d7da; font: .94em var(--md-mono); background: transparent; padding: 0 }
.mars-demo .md-finding details { margin-top: 9px }
.mars-demo .md-finding summary { width: fit-content; cursor: pointer; display: flex; align-items: center; gap: 8px; color: var(--md-accent); font: 560 12px/1.5 Inter,Arial,sans-serif; list-style: none }
.mars-demo summary::-webkit-details-marker { display: none }
.mars-demo .md-finding summary i { font: 400 16px/1 var(--md-mono) }
.mars-demo .md-finding details[open] summary i { transform: rotate(45deg) }
.mars-demo .mr-fix { margin: 9px 0; padding: 8px; display: grid; gap: 5px; background: #142137; border: 1px solid #304c80; border-radius: 5px; color: var(--md-success); font: 400 11px/1.5 var(--md-mono); overflow-wrap: anywhere }
.mars-demo .mr-fix-label { color: #aab6cf; font: 500 10px/1.3 var(--md-mono) }
.mars-demo .mr-fix code { font: inherit }
.mars-demo .md-review-controls { border-top: 1px solid #2b2e31; display: flex; justify-content: space-between; align-items: center; padding: 9px 18px; gap: 12px }
.mars-demo .md-review-controls > div { display: flex; gap: 5px }
.mars-demo .md-review-controls b { font-weight: 450; color: #d7dadd }
@media(max-width:880px) {
  .mars-demo .md-wrap { grid-template-columns: minmax(0,1fr) minmax(0,1.43fr); gap: 30px; width: calc(100% - 48px) }
  .md-review .md-wrap { grid-template-columns: minmax(0,1.43fr) minmax(0,1fr) }
}
@media(max-width:720px) {
  .mars-demo .md-wrap { grid-template-columns: minmax(0,1fr); gap: 25px; width: calc(100% - 40px); padding-block: 52px }
  .md-review .md-copy,.md-review .md-console { grid-column: auto; grid-row: auto }
  .mars-demo .md-copy h2 { font-size: clamp(40px,8.7vw,60px) }
  .mars-demo .md-eyebrow { margin-bottom: 16px }
  .mars-demo .md-description { margin-top: 15px; max-width: 540px }
  .mars-demo .md-providers { margin-top: 17px }
  .mars-demo .md-console { border-radius: 13px }
}
@media(max-width:400px) {
  .mars-demo .md-wrap { width: calc(100% - 32px) }
  .mars-demo .md-console-cap,.mars-demo .md-pr-heading { padding-inline: 13px }
}
.md-review { --md-accent: #acc0f1; --md-stroke:#363e4a; }
.md-review .md-console { border-color:#404b5b; box-shadow:0 20px 60px -48px #536584; }
.md-review .md-console-cap { background:linear-gradient(100deg,#1b202b,#171a21 80%); }
