#ai-reference.mr-restored {
  --mr-orange: #e77d4e;
  --mr-blue: #224fd6;
  --mr-ink: #e8e9ec;
  --mr-fill: #171b23;
  --mr-accent: #e77d4e;
  --md-accent: #aac0ff;
  background: #09090c;
}
.mr-restored .md-wrap {
  display: block;
  width: calc(100% - clamp(40px,10vw,144px));
  max-width: 1240px;
  padding-block: clamp(64px,7vw,108px);
}
.mr-restored .mr-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: clamp(36px,7vw,104px);
  margin-bottom: clamp(32px,4.3vw,68px);
}
.mr-restored .md-copy { grid-area: auto }
.mr-restored .md-eyebrow { color: var(--mr-orange) }
.mr-restored .md-copy h2 em { color: #efaa87 }
.mr-restored .md-description { margin: 0; max-width: 53ch }
.mr-restored .md-providers {
  gap: 10px 25px; border: 0; margin-top: 18px; padding-top: 0;
}
.mr-restored .md-provider { padding-left: 10px; border-left: 1px solid #536899 }
.mr-restored .md-provider b { display: flex; align-items: center; gap: 6px; font-size: 13px }
.mr-restored .md-provider span { color: #a3a7ad }
.mr-restored .mr-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(265px,.87fr) minmax(0,1.4fr);
  align-items: center;
  gap: clamp(12px,3vw,48px);
  isolation: isolate;
}
.mr-restored .mr-art {
  position: relative;
  min-height: 435px;
  isolation: isolate;
}
/* Keep the hand-drawn webs on their own plane behind the robot. */
.mr-restored .mr-art::before {
  content: ""; position: absolute; inset: -3% -10% -3% -10%; z-index: -1;
  background-image: radial-gradient(#8599bf5c .8px,transparent .85px);
  background-size: 19px 19px;
  mask-image: radial-gradient(ellipse 55% 54% at 50% 51%,#000 50%,transparent);
  pointer-events: none;
}
.mr-restored .mr-alternatives {
  position: absolute;
  width: min(93%,435px); aspect-ratio: 420 / 190; top: 4%; left: 4%;
  opacity: .88;
}
.mr-restored .mr-tools { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none }
.mr-restored .mr-tool {
  position: absolute; width: 54%; height: 46%; overflow: hidden;
  border: 1px solid #424955; border-radius: 7px;
  background: linear-gradient(130deg,#1c2027,#101216 80%);
  color: #a5adb9;
  box-shadow: 0 6px 15px #0008;
}
.mr-restored .mr-tool:nth-child(1) { left: 1%; top: 12%; transform: rotate(-12deg); z-index: 1 }
.mr-restored .mr-tool:nth-child(2) { right: 1%; top: 6%; transform: rotate(9deg); z-index: 2 }
.mr-restored .mr-tool:nth-child(3) { left: 6%; top: 50%; transform: rotate(-5deg); z-index: 3 }
.mr-restored .mr-tool:nth-child(4) { right: 0; top: 48%; transform: rotate(7deg); z-index: 4 }
.mr-restored .mr-tool-title {
  display: flex; align-items: center; gap: 6px; padding: 8px 10px;
  border-bottom: 1px solid #3c444e; color: #c3c9d3;
  font: 500 clamp(9px,.92vw,12px)/1.2 Inter,Arial,sans-serif;
  letter-spacing: -.035em; white-space: nowrap;
}
.mr-restored .mr-tool-title svg {
  width: 15px; height: 15px; fill: none; stroke: currentColor;
  stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round;
}
.mr-restored .mr-window-dots { display: flex; gap: 3px; margin-left: auto }
.mr-restored .mr-window-dots i { display: block; width: 2px; height: 2px; border-radius: 50%; background: #8b94a4 }
.mr-restored .mr-tool-body { display: grid; gap: 4px; padding: 8px 10px }
.mr-restored .mr-tool-body i { width: 58%; height: 2px; border-radius: 1px; background: #454e5b }
.mr-restored .mr-tool-body i:nth-child(2) { width: 78% }
.mr-restored .mr-tool-body i:nth-child(3) { width: 43% }
.mr-restored .mr-cobweb { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 5; color: #8e9aad; opacity: .75; pointer-events: none }
.mr-restored .mr-character {
  position: absolute; left: 6%; bottom: 7%;
  width: min(77%,350px);
}
.mr-restored .mr-character::before {
  content: ""; position: absolute; inset: 12% 13% -13% 1%; z-index: -1;
  background: radial-gradient(closest-side,#09090c 51%,#09090ce6 65%,transparent);
}
.mr-restored .mr-mascot-svg { width: 100%; height: auto; display: block; overflow: visible; filter: drop-shadow(0 12px 8px #0007) }
.mr-restored .mr-head { transform: rotate(1deg); transform-origin: 59px 58px }
.mr-restored .mr-pupils { fill: #a2bdff }
.mr-restored .mr-magnifier { transform: translate(2px,1px) rotate(2deg); transform-origin: 83px 54px; transition: transform .52s ease-in-out }
.mr-restored[data-scan=active] .mr-magnifier { transform: translate(-2.5px,.5px) rotate(-4deg) }
.mr-restored .mr-thought {
  position: absolute; z-index: 2; left: 52%; top: -9px;
  padding: 8px 11px; font: 500 11px/1.2 var(--md-mono); letter-spacing: -.04em;
  color: #f1cfbf; background: #211b1a; border: 1px solid #6e4939; border-radius: 6px;
  transform: rotate(-3deg); white-space: nowrap;
}
.mr-restored .mr-thought::after {
  content: ""; position: absolute; width: 7px; height: 7px; bottom: -5px; left: 13px;
  border: solid #6e4939; border-width: 0 1px 1px 0; background: #211b1a; transform: rotate(45deg);
}
.mr-restored .mr-signature {
  display: flex; justify-content: center; align-items: center; flex-direction: column; gap: 4px;
  width: 86%; color: #e0e3e7; font: 580 13px/1.3 var(--md-mono); letter-spacing: .085em;
}
.mr-restored .mr-signature small { display: inline-flex; align-items: center; gap: 6px; color: #a8adb6; font: 450 11px/1.4 Inter,Arial,sans-serif; letter-spacing: 0 }
.mr-restored .mr-signature i { width: 4px; height: 4px; border-radius: 50%; background: var(--mr-orange) }
.mr-restored .md-console {
  grid-area: auto; border: 1px solid #3c424d; border-radius: 16px;
  background: #101215; box-shadow: 0 16px 50px -30px #000c;
}
.mr-restored .md-console-cap {
  background: linear-gradient(110deg,#24232a,#17191e 82%);
  border-bottom: 1px solid #35383e;
}
.mr-restored .md-console-cap svg { color: var(--mr-orange) }
.mr-restored .md-pr-heading > span { color: #aab7d2 }
.mr-restored .md-file { background: #181b20 }
.mr-restored .md-diff { background: #0c0e12 }
.mr-restored .mr-code-line { font-size: clamp(11px,1vw,13px); line-height: 1.75; padding-inline: 15px }
.mr-restored .md-review-controls button { min-width: 34px; min-height: 34px }
.mr-restored .md-console .md-review-deck { min-width: 0 }
.mr-restored .mr-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .mr-restored .mr-stage { view-timeline-name: --review-stage; view-timeline-axis: block }
    .mr-restored .mr-alternatives, .mr-restored .mr-character {
      animation: mr-stage-float linear both; animation-timeline: --review-stage; animation-range: entry 0% exit 100%;
    }
    .mr-restored .mr-alternatives { --mr-from: -9px; --mr-to: 12px }
    .mr-restored .mr-character { --mr-from: 14px; --mr-to: -7px }
    @keyframes mr-stage-float { from { translate: 0 var(--mr-from) } to { translate: 0 var(--mr-to) } }
  }
}
@media(max-width:900px) {
  .mr-restored .mr-intro { grid-template-columns: .88fr 1.12fr; gap: 25px }
  .mr-restored .mr-stage { grid-template-columns: minmax(232px,.73fr) minmax(0,1.27fr); gap: 14px }
  .mr-restored .mr-art { min-height: 340px }
  .mr-restored .mr-character { left: 3%; bottom: 8%; width: 86% }
  .mr-restored .mr-thought { font-size: 9px; left: 37% }
}
@media(max-width:720px) {
  .mr-restored .md-wrap { width: calc(100% - 40px); padding-block: 58px }
  .mr-restored .mr-intro { grid-template-columns: 1fr; gap: 17px; margin-bottom: 25px }
  .mr-restored .mr-stage { grid-template-columns: 1fr; gap: 13px }
  .mr-restored .mr-art { min-height: 0; width: min(100%,520px); aspect-ratio: 1.78; margin-inline: auto }
  .mr-restored .mr-alternatives { width: 63%; top: 8%; left: 36% }
  .mr-restored .mr-character { width: 50%; bottom: 2%; left: 2% }
  .mr-restored .mr-thought { top: 47%; left: 86%; font-size: .65rem }
  .mr-restored .mr-thought::after { bottom: 9px; left: -5px; transform: rotate(135deg) }
  .mr-restored .mr-signature { width: max-content; position: absolute; left: 87%; top: 73%; align-items: flex-start }
  .mr-restored .md-console { width: 100% }
  .mr-restored .mr-stage { overflow: clip; padding-top: 12px; border-top: 1px solid #24272d }
  .mr-restored .md-providers { gap: 8px 18px }
  .mr-restored .mr-code-line { padding-inline: 10px; font-size: 11px }
  .mr-restored .md-review-controls button { min-width: 40px; min-height: 40px }
}
@media(max-width:390px) {
  .mr-restored .mr-tool-title { font-size: 8px; gap: 4px; padding: 5px }
  .mr-restored .mr-tool-title svg { width: 12px; height: 12px }
  .mr-restored .mr-thought { font-size: 9px; padding: 6px 8px }
  .mr-restored .mr-signature { font-size: 11px }
  .mr-restored .mr-signature small { font-size: 10px }
}
@media(prefers-reduced-motion:reduce) {
  .mr-restored *, .mr-restored *::after { animation: none !important; transition: none !important }
  .mr-restored [data-review-action=replay] { display: none }
}
