/* Worked report on Policy-driven Review. Other Review Intelligence pages stay unchanged. */
.ar-example {
  --ar-ink: #263342;
  --ar-muted: #5d6a7b;
  --ar-line: #e0e6ed;
  color: var(--ar-ink);
}
.ri-page .ar-example-note {
  margin: 0 0 14px;
  color: var(--ar-muted);
  font-size: 12px;
  line-height: 1.7;
}
.ar-report {
  background: #fff;
  border: 1px solid var(--ar-line);
  border-radius: 8px;
  overflow: hidden;
}
.ar-report-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  padding: 22px 26px;
  border-bottom: 1px solid var(--ar-line);
}
.ar-verdict {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 11px;
  border-radius: 4px;
  background: #f8f0e3;
  color: #986013;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}
.ri-page .ar-report-head h3 {
  flex: 1 1 550px;
  margin: 0;
  font-size: 19px !important;
  line-height: 1.5;
  color: var(--ar-ink);
}
.ar-report-head h3 span {
  color: var(--ar-muted);
  font-weight: 500;
}
.ar-report-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px 24px;
  flex-basis: 100%;
  color: var(--ar-muted);
  font-size: 12px;
}
.ar-report-meta strong {
  font-weight: 550;
  color: #415163;
}
.ar-report-section {
  padding: 24px 26px;
}
.ar-report-section + .ar-report-section {
  border-top: 1px solid var(--ar-line);
}
.ri-page .ar-report-section > h3 {
  margin: 0 0 20px;
  color: var(--ar-muted);
  font-size: 12px !important;
  line-height: 1.5;
  text-transform: uppercase;
}
.ar-diagram-scroll {
  overflow-x: auto;
  scrollbar-color: #adb9c7 #f2f5f8;
  border-radius: 4px;
}
.ar-diagram-scroll:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}
.ar-graph {
  position: relative;
}
.ri-page .ar-graph > h3 {
  min-height: 36px;
  padding-right: 100px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
}
.ar-graph > .ri-motion-controls {
  position: absolute;
  right: 26px;
  top: 24px;
}
.ar-diagram {
  position: relative;
  min-width: 960px;
  aspect-ratio: 1000 / 500;
  background: #fff;
  isolation: isolate;
}
.ar-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px !important;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.ar-band {
  position: absolute;
  left: 13%;
  width: 68%;
  height: 30%;
  background: #f5f6f9;
}
.ar-band-delivery {
  top: 0;
}
.ar-band-orchestration {
  top: 30%;
  background: #edf0f4;
}
.ar-band-adapters {
  top: 60%;
}
.ar-external-zone {
  position: absolute;
  left: 83.5%;
  top: 0;
  width: 16%;
  height: 94%;
  border: 1px dashed #c8d3df;
}
.ar-layer-label {
  position: absolute;
  left: 1%;
  width: 11.5%;
  line-height: 1.5;
}
.ar-layer-label strong {
  display: block;
  font-size: 13px;
  color: var(--ar-ink);
}
.ar-layer-label small {
  display: block;
  margin-top: 3px;
  color: var(--ar-muted);
  font-size: 12px;
}
.ar-label-delivery {
  top: 11%;
}
.ar-label-orchestration {
  top: 41%;
}
.ar-label-adapters {
  top: 73%;
}
.ar-outside-label {
  position: absolute;
  left: 84.5%;
  width: 14%;
  top: 2%;
  text-align: center;
  font-size: 12px;
  color: var(--ar-muted);
}
.ri-page main svg.ar-connections {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.ar-wire {
  fill: none;
  stroke-width: 1.8;
}
.ar-wire-existing {
  stroke: #82919e;
}
.ar-wire-added {
  stroke: #258454;
}
.ar-wire-violation {
  stroke: #c03c38;
  stroke-dasharray: 0.07 0.05;
}
.ar-wire-boundary {
  stroke: #b57920;
}
.ar-packet {
  opacity: 0;
  transform-origin: 0 0;
  transform-box: view-box;
  pointer-events: none;
}
.ar-packet-existing {
  fill: #82919e;
}
.ar-packet-added {
  fill: #258454;
}
.ar-packet-violation {
  fill: #c03c38;
}
.ar-packet-boundary {
  fill: #b57920;
}
.ar-module {
  position: absolute;
  width: 25%;
  height: 15.6%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  background: #fff;
  border: 1px solid #ccd5df;
  border-radius: 5px;
}
.ar-module strong {
  color: var(--ar-ink);
  font-size: 14px;
  line-height: 1.4;
}
.ar-module-title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.ri-page main .ar-module-title > svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.75;
  color: #53687e;
}
.ri-page main .ar-api .ar-module-title > svg {
  color: #2367ad;
}
.ri-page main .ar-cache .ar-module-title > svg {
  color: #258454;
}
.ri-page .ar-module code {
  color: var(--ar-muted);
  font-size: 12px;
  line-height: 1.5;
  white-space: nowrap;
  overflow-wrap: normal;
}
.ar-api {
  left: 16.4%;
  top: 8%;
}
.ar-pipeline {
  left: 16.4%;
  top: 38%;
}
.ar-worker {
  left: 48.5%;
  top: 38%;
}
.ar-cache {
  left: 16.4%;
  top: 70%;
  border-color: #258454;
}
.ar-new {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-left: auto;
  flex-shrink: 0;
  background: #e9f4ed;
  color: #216b45;
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 3px;
}
.ri-page main .ar-new svg {
  width: 11px;
  height: 11px;
}
.ar-redis {
  position: absolute;
  left: 87.2%;
  top: 70%;
  width: 7.8%;
  height: 15.6%;
  border: 1.5px solid #b57920;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: #fff;
  color: var(--ar-ink);
  font-size: 13px;
}
.ri-page main .ar-redis > svg {
  width: 24px;
  height: 24px;
  stroke-width: 1.75;
  color: #986013;
}
.ar-edge-label {
  position: absolute;
  font-size: 12px;
  line-height: 1.5;
}
.ri-page .ar-edge-label code {
  font-size: 12px;
  white-space: nowrap;
}
.ar-edge-label strong,
.ar-edge-label code,
.ar-edge-label small {
  display: block;
}
.ar-edge-label small {
  font-size: 12px;
}
.ar-edge-existing {
  left: 22.8%;
  top: 26%;
  color: #637483;
}
.ar-edge-cycle {
  left: 37.2%;
  top: 25%;
  color: #b5312d;
}
.ar-edge-get {
  left: 18.8%;
  top: 61.5%;
  color: #216e46;
}
.ar-edge-put {
  left: 62.5%;
  top: 57%;
  color: #216e46;
}
.ar-edge-redis {
  left: 45.4%;
  top: 72%;
  color: #916016;
}
.ar-boundary-note {
  position: absolute;
  left: 44.6%;
  top: 81%;
  color: var(--ar-muted);
  font-size: 12px;
}
.ar-redis-note {
  position: absolute;
  left: 84%;
  top: 87%;
  width: 15%;
  text-align: center;
  color: var(--ar-muted);
  font-size: 12px;
}
.ar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  padding: 0;
  margin: 8px 0 0;
  list-style: none;
  color: var(--ar-muted);
  font-size: 12px;
}
.ar-legend li {
  display: flex;
  align-items: center;
  gap: 7px;
}
.ar-key {
  display: block;
  width: 23px;
  flex: 0 0 23px;
  border-top: 2px solid;
}
.ar-key-added {
  border-color: #258454;
}
.ar-key-violation {
  border-color: #c03c38;
  border-top-style: dashed;
}
.ar-key-boundary {
  border-color: #b57920;
}
.ar-key-existing {
  border-color: #82919e;
}
.ar-findings {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: finding;
}
.ar-findings li {
  display: grid;
  grid-template-columns: 20px 84px minmax(0, 1fr) 108px;
  gap: 12px;
  padding: 17px 0;
  border-top: 1px solid var(--ar-line);
  align-items: baseline;
}
.ar-findings li:first-child {
  border-top: 0;
  padding-top: 0;
}
.ar-findings li:last-child {
  padding-bottom: 0;
}
.ar-findings li::before {
  counter-increment: finding;
  content: counter(finding);
  color: var(--ar-muted);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.ar-severity {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: 84px;
  padding: 3px 6px;
  border: 1px solid currentColor;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.4;
  text-transform: uppercase;
  white-space: nowrap;
}
.ri-page main .ar-severity > svg {
  width: 14px;
  height: 14px;
  stroke-width: 1.75;
}
.ar-high {
  color: #bf3935;
}
.ar-medium {
  color: #986013;
}
.ar-low {
  color: #586a80;
}
.ar-finding-copy {
  min-width: 0;
}
.ri-page .ar-finding-copy h4 {
  margin: 0;
  color: var(--ar-ink);
  font-size: 14px;
  line-height: 1.65;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.ri-page .ar-finding-copy p {
  margin: 4px 0 0;
  color: var(--ar-muted);
  font-size: 14px;
  line-height: 1.7;
}
.ri-page .ar-finding-copy code {
  font-size: 13px;
}
.ar-confidence {
  font-size: 12px;
  line-height: 1.5;
  text-align: right;
  color: var(--ar-muted);
  font-variant-numeric: tabular-nums;
}
.ar-senior-notes {
  margin: 0;
}
.ri-page .ar-senior-notes > div {
  display: grid;
  grid-template-columns: 174px minmax(0, 1fr);
  gap: 24px;
  padding: 10px 0;
  border: 0;
}
.ri-page .ar-senior-notes > div:first-child {
  padding-top: 0;
}
.ri-page .ar-senior-notes > div:last-child {
  padding-bottom: 0;
}
.ri-page .ar-senior-notes dt {
  margin: 0;
  color: var(--ar-muted);
  font-size: 12px;
  line-height: 1.7;
  font-weight: 600;
  text-transform: uppercase;
}
.ar-note-title {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.ri-page main .ar-note-title > svg {
  width: 16px;
  height: 16px;
  stroke-width: 1.75;
}
.ar-senior-notes dt small {
  display: block;
  font-size: 12px;
  font-weight: 400;
  text-transform: none;
}
.ri-page .ar-senior-notes dd {
  color: #415163;
  font-size: 14px;
  line-height: 1.8;
}
.ar-report-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  padding: 18px 26px;
  border-top: 1px solid var(--ar-line);
  color: var(--ar-muted);
  font-size: 12px;
  line-height: 1.6;
}
.ar-report-foot strong {
  color: #415163;
  font-weight: 550;
}
.ar-terminal {
  margin-top: 16px;
  border: 1px solid var(--ar-line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}
.ar-terminal summary {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 16px 24px;
  color: var(--ar-ink);
  font-size: 14px;
  font-weight: 550;
  list-style: none;
}
.ar-terminal summary::-webkit-details-marker {
  display: none;
}
.ar-terminal summary:hover {
  background: #f5f8fb;
}
.ar-terminal summary:focus-visible {
  outline-offset: -4px !important;
}
.ar-terminal summary svg {
  width: 16px !important;
  height: 16px !important;
  transform: rotate(-90deg);
}
.ar-terminal[open] summary svg {
  transform: rotate(0);
}
.ri-page .ar-terminal pre {
  margin: 0;
  padding: 22px 24px;
  border-top: 1px solid var(--ar-line);
  background: #fff;
  color: #263342;
  font-size: 12px;
  line-height: 1.85;
  white-space: pre;
  overflow-x: auto;
  scrollbar-color: #adb9c7 #f2f5f8;
}
.ri-page .ar-terminal pre code {
  font-size: inherit;
  overflow-wrap: normal;
}
.ri-page .ar-context-note {
  margin: 24px 0 0;
  color: var(--ar-muted);
  font-size: 13px;
  line-height: 1.85;
  max-width: 105ch;
}
.ar-context-note strong {
  color: #415163;
}
@media (max-width: 900px) {
  .ar-report-meta {
    justify-content: flex-start;
  }
  .ar-findings li {
    grid-template-columns: 20px 84px minmax(0, 1fr);
  }
  .ar-confidence {
    grid-column: 3;
    text-align: left;
  }
}
@media (max-width: 640px) {
  .ar-report-head,
  .ar-report-section {
    padding: 20px 16px;
  }
  .ar-graph > .ri-motion-controls {
    right: 16px;
    top: 20px;
  }
  .ri-page .ar-report-head h3 {
    font-size: 17px !important;
  }
  .ar-report-meta {
    gap: 8px;
  }
  .ar-report-meta span {
    flex-basis: 100%;
  }
  .ar-report-meta strong {
    overflow-wrap: anywhere;
  }
  .ar-findings li {
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 8px 10px;
    padding-block: 18px;
  }
  .ar-finding-copy,
  .ar-confidence {
    grid-column: 2;
  }
  .ar-severity {
    grid-column: 2;
  }
  .ri-page .ar-senior-notes > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    padding-block: 14px;
  }
  .ar-report-foot {
    padding: 18px 16px;
    gap: 10px;
  }
  .ar-report-foot span {
    flex-basis: 100%;
  }
  .ar-terminal summary {
    padding: 16px;
    align-items: flex-start;
  }
  .ar-terminal summary svg {
    margin-top: 3px;
  }
  .ri-page .ar-terminal pre {
    padding: 18px 16px;
  }
}
