:root {
  color-scheme: light;
  --ink: #26251e;
  --muted: #6b6a61;
  --line: #deddd6;
  --paper: #f2f1ed;
  --blue: #0066cc;
  --green: #22723c;
  --red: #b52d32;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-family:
    -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", Arial,
    sans-serif;
  color: var(--ink);
  background: #f7f7f4;
  -webkit-font-smoothing: antialiased;
}
* {
  box-sizing: border-box;
  letter-spacing: 0;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
button {
  font: inherit;
  cursor: pointer;
}
button:disabled {
  cursor: default;
}
:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}
::selection {
  background: #deddd6;
  color: var(--ink);
}
* {
  scrollbar-width: thin;
  scrollbar-color: #c9c8be #f2f1ed;
}
svg {
  display: block;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
code {
  font-family: var(--mono);
}
.preview-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 70px;
  padding: 12px max(24px, calc((100% - 1160px) / 2));
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.brand {
  flex-shrink: 0;
}
.brand img {
  display: block;
  width: 138px;
  height: auto;
}
main {
  width: min(1160px, calc(100% - 64px));
  margin: 52px auto 38px;
}
.is-embedded .preview-nav,
.is-embedded .section-heading {
  display: none;
}
.is-embedded main {
  width: 100%;
  margin: 0;
  padding: 6px;
}
.section-heading {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: end;
  gap: 72px;
  margin-bottom: 44px;
}
h1 {
  font-size: 40px;
  line-height: 1.12;
  font-weight: 600;
  margin: 0;
  text-wrap: balance;
}
.section-heading > p {
  margin: 0 0 3px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
}
.scene-caption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 12px;
}
.scene-caption strong {
  font-weight: 500;
  color: var(--ink);
}
.caption-divider {
  color: #9a9aa2;
  margin-inline: 8px;
}
.review-window {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.window-bar {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 49px;
  padding: 0 22px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.window-dots {
  display: flex;
  gap: 6px;
}
.window-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff6058;
}
.window-dots i:nth-child(2) {
  background: #febc2e;
}
.window-dots i:nth-child(3) {
  background: #28c840;
}
.file-label,
.branch-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 11px var(--mono);
}
.file-label svg,
.branch-label svg {
  width: 14px;
  height: 14px;
  color: var(--muted);
}
.branch-label {
  margin-left: auto;
  color: var(--muted);
}
.inline-workspace {
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  min-height: 462px;
}
.source-pane {
  min-width: 0;
  background: var(--paper);
  border-right: 1px solid var(--line);
}
.pane-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px 14px;
  font-size: 12px;
  color: var(--muted);
}
.diff-count {
  color: var(--green);
  font: 11px var(--mono);
}
.diff-count > span {
  color: var(--muted);
}
.code-source {
  position: relative;
  overflow-x: auto;
  padding: 16px 0 24px;
}
.code-line {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 32px;
  padding-inline: 24px;
  position: relative;
}
.line-no {
  flex-shrink: 0;
  width: 18px;
  color: #777780;
  font: 11px var(--mono);
}
.code-line code {
  white-space: pre;
  font-size: 12px;
}
code b {
  color: #9b349e;
  font-weight: 500;
}
code i {
  color: var(--muted);
  font-style: normal;
}
code q {
  color: var(--green);
}
code q::before,
code q::after {
  content: '"';
}
.target-line {
  background: #eaf5ed;
  transition: background 400ms;
}
.line-pin {
  width: 7px;
  height: 7px;
  margin-left: auto;
  flex-shrink: 0;
  background: var(--green);
  border-radius: 50%;
  transition: background 250ms;
}
.scan-line {
  position: absolute;
  top: 14px;
  left: 0;
  right: 0;
  height: 1px;
  background: #0071e3;
  opacity: 0;
  pointer-events: none;
}
.location-strip {
  display: flex;
  gap: 8px;
  padding: 14px 24px;
  align-items: center;
  border-block: 1px solid var(--line);
  color: var(--blue);
  background: #f3f7fc;
}
.location-strip svg {
  width: 15px;
  height: 15px;
}
.location-strip code {
  font-size: 12px;
}
.location-strip > span {
  margin-left: auto;
  color: #52667e;
  font-size: 11px;
}
.source-context {
  padding: 22px 24px 24px;
}
.source-context > span {
  color: var(--muted);
  font-size: 11px;
}
.source-context strong {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 500;
}
.source-context strong svg {
  width: 14px;
  height: 14px;
  color: var(--muted);
}
.source-context p {
  color: var(--muted);
  margin: 8px 0 0;
  font-size: 12px;
}
.review-pane {
  min-width: 0;
  padding: 22px 26px;
}
.review-author {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  font-size: 13px;
}
.review-author img {
  width: 23px;
  height: 23px;
  object-fit: contain;
}
.review-author strong {
  font-weight: 600;
}
.review-author > span {
  margin-left: auto;
  font-size: 11px;
  color: var(--muted);
}
.severity-line {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.severity {
  display: inline-flex;
  width: max-content;
  flex-shrink: 0;
  align-items: center;
  gap: 6px;
  background: #fff0ef;
  color: var(--red);
  padding: 6px 9px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 600;
}
.severity svg {
  width: 14px;
  height: 14px;
}
.classification {
  color: var(--muted);
  font-size: 11px;
}
.finding-content h2 {
  margin: 14px 0 10px;
  font-size: 23px;
  line-height: 1.2;
  font-weight: 600;
  text-wrap: balance;
}
.finding-content p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.suggestion {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.suggestion-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.suggestion-heading svg {
  width: 16px;
  height: 16px;
  color: var(--blue);
}
.suggestion-heading > span {
  margin-left: auto;
  color: var(--muted);
  font-size: 11px;
}
.patch-lines {
  padding: 13px 0;
}
.patch-lines code {
  display: block;
  font-size: 12px;
  line-height: 1.6;
  padding: 2px 10px;
  overflow-wrap: anywhere;
}
.removed {
  color: #a53136;
  background: #fff0ef;
}
.added {
  color: #25633b;
  background: #edf7ef;
}
.apply-fix {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 6px;
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  transition: background 180ms;
}
.apply-fix svg {
  width: 14px;
  height: 14px;
}
.apply-fix:hover {
  background: #0055aa;
}
.apply-fix:disabled {
  background: #edf7ef;
  color: var(--green);
}
.verification {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 17px;
  color: var(--green);
  font-size: 11px;
}
.verification svg {
  width: 15px;
  height: 15px;
}
.verification strong {
  margin-left: auto;
  font-weight: 500;
}
.is-ready [data-show-from] {
  transition:
    opacity 350ms ease,
    transform 450ms var(--ease),
    visibility 350ms;
}
.is-ready[data-phase="0"] [data-show-from],
.is-ready[data-phase="1"] [data-show-from="2"],
.is-ready[data-phase="1"] [data-show-from="3"],
.is-ready[data-phase="2"] [data-show-from="3"] {
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
}
.is-ready[data-phase="0"] .target-line {
  background: #e8f2ff;
}
.is-ready[data-phase="0"] .line-pin {
  background: #0071e3;
}
.is-ready[data-phase="1"] .target-line,
.is-ready[data-phase="2"] .target-line {
  background: #fff0ef;
}
.is-ready[data-phase="1"] .line-pin,
.is-ready[data-phase="2"] .line-pin {
  background: var(--red);
}
.is-ready[data-phase="0"] .scan-line {
  animation: scan-source 3s linear both;
}
@keyframes scan-source {
  0% {
    opacity: 0;
    transform: translateY(0);
  }
  10%,
  80% {
    opacity: 0.7;
  }
  100% {
    opacity: 0;
    transform: translateY(120px);
  }
}

.playback {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 26px;
}
.phase-tabs {
  display: flex;
  gap: 26px;
}
.phase-tabs button {
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 12px 0;
  font-size: 13px;
  color: var(--muted);
  transition:
    color 180ms,
    border-color 180ms;
}
.phase-tabs button:hover {
  color: var(--ink);
}
.phase-tabs button[aria-pressed="true"] {
  color: var(--blue);
  border-bottom-color: var(--blue);
}
.playback-progress {
  flex-basis: 100%;
  height: 2px;
  background: #e6e6ec;
  overflow: hidden;
}
.playback-progress > span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
}
.animation:not(.is-ready) .playback,
.animation:not(.is-ready) .apply-fix {
  display: none;
}
.animation.is-paused *,
.animation.is-paused *::before,
.animation.is-paused *::after {
  animation-play-state: paused !important;
}
.animation.is-manual *,
.animation.is-manual *::before,
.animation.is-manual *::after {
  animation: none !important;
}

@media (max-width: 1000px) {
  .section-heading {
    gap: 40px;
    grid-template-columns: 1.2fr 1fr;
  }
  h1 {
    font-size: 36px;
  }
  .code-line {
    padding-inline: 16px;
    gap: 12px;
  }
  .code-line code {
    font-size: 11px;
  }
  .review-pane {
    padding: 22px 20px;
  }
  .classification {
    font-size: 11px;
  }
}
@media (max-width: 760px) {
  main {
    width: calc(100% - 40px);
    margin-top: 36px;
  }
  .preview-nav {
    flex-direction: column;
    gap: 8px;
    padding: 18px 20px 6px;
  }
  .section-heading {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 30px;
  }
  h1 {
    font-size: 34px;
    max-width: 590px;
  }
  .section-heading > p {
    font-size: 15px;
    max-width: 65ch;
  }
  .inline-workspace {
    grid-template-columns: 1fr;
  }
  .source-pane {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .code-line code {
    font-size: 12px;
  }
  .source-context {
    display: none;
  }
  .review-pane {
    min-height: 487px;
  }
  .finding-content h2 {
    font-size: 23px;
    text-wrap: pretty;
  }
  .branch-label {
    display: none;
  }
  .scene-caption {
    font-size: 11px;
    align-items: flex-start;
  }
  .scene-caption > span:last-child {
    flex-shrink: 0;
  }
  .phase-tabs {
    gap: 18px;
  }
  .phase-tabs button {
    font-size: 12px;
  }
}
@media (max-width: 420px) {
  main {
    width: calc(100% - 32px);
    margin-top: 28px;
  }
  h1 {
    font-size: 30px;
  }
  .scene-caption {
    flex-wrap: wrap;
    gap: 6px 16px;
  }
  .window-bar {
    gap: 15px;
    padding-inline: 16px;
  }
  .file-label {
    font-size: 11px;
  }
  .code-line {
    padding-inline: 12px;
    gap: 10px;
  }
  .code-line code {
    font-size: 10px;
  }
  .location-strip {
    padding-inline: 14px;
  }
  .location-strip > span {
    font-size: 11px;
  }
  .location-strip code {
    font-size: 11px;
  }
  .review-pane {
    padding-inline: 18px;
    min-height: 512px;
  }
  .phase-tabs {
    justify-content: space-between;
    width: 100%;
    gap: 8px;
  }
  .phase-tabs button {
    font-size: 11px;
  }
  .playback {
    justify-content: center;
    gap: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition:
      opacity 120ms ease,
      color 120ms ease,
      background-color 120ms ease !important;
  }
  .scan-line {
    display: none;
  }
  .is-ready [data-show-from] {
    transform: none !important;
  }
}
