body[data-av-shell="app"] .app-detail-v2.av2-enhanced {
  position: relative;
  max-width: 1420px;
  margin: 0 auto;
  padding-bottom: 84px;
}

body[data-av-shell="app"] .av2-enhanced .detail-hero-v2 {
  border-color: #d8dee8;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .03);
}

body[data-av-shell="app"] .av2-enhanced .detail-hero-main {
  padding: 17px 18px;
}

body[data-av-shell="app"] .av2-enhanced .detail-app-mark {
  width: 40px;
  height: 40px;
  border-color: #bdd2ee;
  background: #edf5ff;
  color: #1558ae;
}

/* Use a cool blue state language for this workspace; warnings and risks keep their own tones. */
body[data-av-shell="app"] .av2-enhanced .badge-success {
  border-color: #c9dcf8;
  background: #edf4ff;
  color: #245ea9;
}

body[data-av-shell="app"] .av2-enhanced .detail-title {
  font-size: 20px;
}

body[data-av-shell="app"] .av2-enhanced .detail-metric-grid {
  background: #f9fafb;
}

body[data-av-shell="app"] .av2-enhanced .detail-metric-grid .metric-card {
  min-height: 76px;
  padding: 12px 14px;
  background: transparent;
}

body[data-av-shell="app"] .av2-enhanced .detail-workspace {
  gap: 12px;
}

body[data-av-shell="app"] .av2-enhanced .av2-legacy-tabs {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

body[data-av-shell="app"] .av2-control-head {
  border: 1px solid #d8dee8;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .035);
  overflow: hidden;
}

body[data-av-shell="app"] .av2-control-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 18px 13px;
  border-bottom: 1px solid #e7ebf0;
}

body[data-av-shell="app"] .av2-control-title span,
body[data-av-shell="app"] .av2-eyebrow {
  display: block;
  color: #1769d1;
  font-size: 11px;
  font-weight: 800;
}

body[data-av-shell="app"] .av2-control-title h3 {
  margin-top: 3px;
  color: #101828;
  font-size: 16px;
  line-height: 1.35;
}

body[data-av-shell="app"] .av2-control-title p {
  max-width: 430px;
  color: #667085;
  font-size: 12px;
  line-height: 1.55;
  text-align: right;
}

body[data-av-shell="app"] .av2-group-nav {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

body[data-av-shell="app"] .av2-group-button {
  position: relative;
  min-width: 0;
  min-height: 62px;
  padding: 11px 14px;
  border: 0;
  border-right: 1px solid #e7ebf0;
  background: #fff;
  color: #475467;
  text-align: left;
  cursor: pointer;
}

body[data-av-shell="app"] .av2-group-button:last-child {
  border-right: 0;
}

body[data-av-shell="app"] .av2-group-button::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: -1px;
  left: 12px;
  height: 3px;
  background: transparent;
}

body[data-av-shell="app"] .av2-group-button:hover {
  background: #f8fafc;
}

body[data-av-shell="app"] .av2-group-button.active {
  background: #f5f9ff;
  color: #1558ae;
}

body[data-av-shell="app"] .av2-group-button.active::after {
  background: #1769e0;
}

body[data-av-shell="app"] .av2-group-button span,
body[data-av-shell="app"] .av2-group-button small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-av-shell="app"] .av2-group-button span {
  font-size: 13px;
  font-weight: 760;
}

body[data-av-shell="app"] .av2-group-button small {
  margin-top: 4px;
  color: #98a2b3;
  font-size: 10px;
}

body[data-av-shell="app"] .av2-subnav {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 39px;
  padding: 6px 12px;
  border-top: 1px solid #e7ebf0;
  background: #f9fafb;
}

body[data-av-shell="app"] .av2-subnav button,
body[data-av-shell="app"] .av2-subnav > span {
  min-height: 26px;
  padding: 5px 10px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: #667085;
  font-size: 11px;
  font-weight: 720;
}

body[data-av-shell="app"] .av2-subnav button {
  cursor: pointer;
}

body[data-av-shell="app"] .av2-subnav button:hover {
  color: #1558ae;
}

body[data-av-shell="app"] .av2-subnav button.active {
  border-color: #c9dcf8;
  background: #fff;
  color: #1558ae;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}

body[data-av-shell="app"] .av2-enhanced .detail-layout-v3 {
  grid-template-columns: minmax(0, 1fr) 286px;
  gap: 14px;
}

body[data-av-shell="app"] .av2-overview {
  border: 1px solid #d8dee8;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .035);
  overflow: hidden;
}

body[data-av-shell="app"] .av2-overview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid #e7ebf0;
}

body[data-av-shell="app"] .av2-overview-head h3 {
  margin-top: 4px;
  color: #101828;
  font-size: 19px;
}

body[data-av-shell="app"] .av2-overview-head p {
  margin-top: 5px;
  color: #667085;
  font-size: 12px;
  line-height: 1.55;
}

body[data-av-shell="app"] .av2-overview-layout {
  display: grid;
  grid-template-columns: minmax(260px, .78fr) minmax(360px, 1.22fr);
  min-height: 220px;
}

body[data-av-shell="app"] .av2-score-panel {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px;
  border-right: 1px solid #e7ebf0;
  background: #fbfcfe;
}

body[data-av-shell="app"] .av2-score-ring {
  --av2-score: 0deg;
  position: relative;
  display: grid;
  place-content: center;
  width: 116px;
  height: 116px;
  flex: 0 0 116px;
  border-radius: 50%;
  background: conic-gradient(#1769e0 var(--av2-score), #e8edf3 0);
  text-align: center;
}

body[data-av-shell="app"] .av2-score-ring::before {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background: #fff;
}

body[data-av-shell="app"] .av2-score-ring strong,
body[data-av-shell="app"] .av2-score-ring span {
  position: relative;
  z-index: 1;
}

body[data-av-shell="app"] .av2-score-ring strong {
  color: #101828;
  font-size: 30px;
  line-height: 1;
}

body[data-av-shell="app"] .av2-score-ring span {
  margin-top: 6px;
  color: #667085;
  font-size: 10px;
  font-weight: 720;
}

body[data-av-shell="app"] .av2-score-copy b {
  display: block;
  color: #101828;
  font-size: 15px;
  line-height: 1.4;
}

body[data-av-shell="app"] .av2-score-copy p {
  margin-top: 7px;
  color: #667085;
  font-size: 12px;
  line-height: 1.65;
}

body[data-av-shell="app"] .av2-health-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

body[data-av-shell="app"] .av2-health-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 110px;
  padding: 18px;
  border: 0;
  border-right: 1px solid #e7ebf0;
  border-bottom: 1px solid #e7ebf0;
  background: #fff;
  text-align: left;
  cursor: pointer;
}

body[data-av-shell="app"] .av2-health-row:nth-child(2n) {
  border-right: 0;
}

body[data-av-shell="app"] .av2-health-row:nth-last-child(-n+2) {
  border-bottom: 0;
}

body[data-av-shell="app"] .av2-health-row:hover {
  background: #f8fafc;
}

body[data-av-shell="app"] .av2-health-state {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #edf4ff;
  color: #245ea9;
  font-size: 12px;
  font-weight: 900;
}

body[data-av-shell="app"] .av2-health-row.warn .av2-health-state {
  background: #fff5dc;
  color: #9a6700;
}

body[data-av-shell="app"] .av2-health-row b,
body[data-av-shell="app"] .av2-health-row small {
  display: block;
}

body[data-av-shell="app"] .av2-health-row b {
  color: #344054;
  font-size: 12px;
}

body[data-av-shell="app"] .av2-health-row small {
  margin-top: 4px;
  color: #667085;
  font-size: 11px;
}

body[data-av-shell="app"] .av2-health-row i {
  color: #1769d1;
  font-size: 10px;
  font-style: normal;
  font-weight: 760;
}

body[data-av-shell="app"] .av2-overview-bottom {
  padding: 18px 20px 8px;
  border-top: 1px solid #e7ebf0;
}

body[data-av-shell="app"] .av2-overview-bottom h4 {
  margin-top: 4px;
  color: #101828;
  font-size: 15px;
}

body[data-av-shell="app"] .av2-recommend-list {
  margin-top: 12px;
}

body[data-av-shell="app"] .av2-recommend-row,
body[data-av-shell="app"] .av2-all-clear {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  padding: 11px 0;
  border-top: 1px solid #edf0f4;
}

body[data-av-shell="app"] .av2-recommend-row:first-child,
body[data-av-shell="app"] .av2-all-clear:first-child {
  border-top: 0;
}

body[data-av-shell="app"] .av2-recommend-row > span {
  width: 6px;
  height: 30px;
  border-radius: 3px;
  background: #d99015;
}

body[data-av-shell="app"] .av2-recommend-row.high > span {
  background: #d14343;
}

body[data-av-shell="app"] .av2-recommend-row.low > span {
  background: #4d86d1;
}

body[data-av-shell="app"] .av2-recommend-row b,
body[data-av-shell="app"] .av2-all-clear b {
  display: block;
  color: #344054;
  font-size: 12px;
}

body[data-av-shell="app"] .av2-recommend-row p,
body[data-av-shell="app"] .av2-all-clear p {
  margin-top: 3px;
  color: #667085;
  font-size: 11px;
  line-height: 1.5;
}

body[data-av-shell="app"] .av2-all-clear {
  grid-template-columns: 28px minmax(0, 1fr) auto;
}

body[data-av-shell="app"] .av2-all-clear > span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #edf4ff;
  color: #245ea9;
  font-weight: 900;
}

body[data-av-shell="app"] .av2-enhanced .detail-aside {
  min-width: 0;
}

body[data-av-shell="app"] .av2-assistant {
  position: sticky;
  top: 72px;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .035);
  overflow: hidden;
}

body[data-av-shell="app"] .av2-assistant-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  border-bottom: 1px solid #e7ebf0;
  background: #fbfcfe;
}

body[data-av-shell="app"] .av2-assistant-head > div {
  display: flex;
  align-items: center;
  gap: 7px;
}

body[data-av-shell="app"] .av2-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2f6fe4;
  box-shadow: 0 0 0 4px #e8f1ff;
}

body[data-av-shell="app"] .av2-assistant-head b {
  color: #344054;
  font-size: 12px;
}

body[data-av-shell="app"] .av2-assistant-head > span {
  color: #1558ae;
  font-size: 12px;
  font-weight: 850;
}

body[data-av-shell="app"] .av2-assistant-body {
  padding: 15px 14px 12px;
}

body[data-av-shell="app"] .av2-assistant-label {
  color: #1769d1;
  font-size: 10px;
  font-weight: 800;
}

body[data-av-shell="app"] .av2-assistant-body h4 {
  margin-top: 6px;
  color: #101828;
  font-size: 15px;
}

body[data-av-shell="app"] .av2-assistant-body > p {
  margin-top: 6px;
  color: #667085;
  font-size: 11px;
  line-height: 1.6;
}

body[data-av-shell="app"] .av2-aside-issues {
  display: grid;
  gap: 0;
  margin-top: 13px;
  border-top: 1px solid #edf0f4;
}

body[data-av-shell="app"] .av2-aside-issues button {
  display: grid;
  grid-template-columns: 7px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid #edf0f4;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

body[data-av-shell="app"] .av2-aside-issues button > span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d99015;
}

body[data-av-shell="app"] .av2-aside-issues button > span.high {
  background: #d14343;
}

body[data-av-shell="app"] .av2-aside-issues button > span.low {
  background: #4d86d1;
}

body[data-av-shell="app"] .av2-aside-issues button b {
  overflow: hidden;
  color: #475467;
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-av-shell="app"] .av2-aside-issues button small {
  color: #1769d1;
  font-size: 10px;
}

body[data-av-shell="app"] .av2-aside-clear {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 0;
  color: #245ea9;
  font-size: 11px;
}

body[data-av-shell="app"] .av2-aside-clear span {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #edf4ff;
  font-weight: 900;
}

body[data-av-shell="app"] .av2-assistant-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  padding: 0 14px 13px;
}

body[data-av-shell="app"] .av2-assistant-actions .btn:first-child {
  grid-column: 1 / -1;
}

body[data-av-shell="app"] .av2-assistant-note {
  padding: 10px 14px;
  border-top: 1px solid #e7ebf0;
  background: #f9fafb;
  color: #7a8495;
  font-size: 10px;
  line-height: 1.55;
}

body[data-av-shell="app"] .av2-savebar {
  position: fixed;
  z-index: 70;
  right: 20px;
  bottom: 18px;
  left: 244px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 1176px;
  min-height: 58px;
  margin: 0 auto;
  padding: 9px 11px 9px 14px;
  border: 1px solid #d6dde7;
  border-radius: 8px;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 12px 30px rgba(16, 24, 40, .14);
  backdrop-filter: blur(10px);
}

body[data-av-shell="app"] .av2-savebar.dirty {
  border-color: #aac8ef;
}

body[data-av-shell="app"] .av2-save-state,
body[data-av-shell="app"] .av2-save-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

body[data-av-shell="app"] .av2-save-state {
  min-width: 0;
}

body[data-av-shell="app"] .av2-save-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #2f6fe4;
  box-shadow: 0 0 0 4px #e8f1ff;
}

body[data-av-shell="app"] .av2-savebar.dirty .av2-save-dot {
  background: #1769e0;
  box-shadow: 0 0 0 4px #e8f1ff;
}

body[data-av-shell="app"] .av2-save-state b,
body[data-av-shell="app"] .av2-save-state small {
  display: block;
}

body[data-av-shell="app"] .av2-save-state b {
  color: #344054;
  font-size: 12px;
}

body[data-av-shell="app"] .av2-save-state small {
  margin-top: 2px;
  color: #7a8495;
  font-size: 10px;
}

body[data-av-shell="app"] .av2-save-actions .btn[hidden] {
  display: none !important;
}

body[data-av-shell="app"] .av2-change-popover {
  position: absolute;
  right: 10px;
  bottom: calc(100% + 8px);
  width: 270px;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(16, 24, 40, .16);
  overflow: hidden;
}

body[data-av-shell="app"] .av2-change-popover[hidden] {
  display: none;
}

body[data-av-shell="app"] .av2-change-popover > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 12px;
  border-bottom: 1px solid #e7ebf0;
}

body[data-av-shell="app"] .av2-change-popover b {
  color: #344054;
  font-size: 12px;
}

body[data-av-shell="app"] .av2-change-popover button {
  width: 24px;
  height: 24px;
  border: 0;
  background: transparent;
  color: #667085;
  font-size: 18px;
  cursor: pointer;
}

body[data-av-shell="app"] .av2-change-popover ul {
  display: grid;
  max-height: 240px;
  margin: 0;
  padding: 7px 12px 10px 28px;
  overflow: auto;
}

body[data-av-shell="app"] .av2-change-popover li {
  padding: 5px 0;
  color: #475467;
  font-size: 11px;
}

@media (max-width: 1180px) {
  body[data-av-shell="app"] .av2-group-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body[data-av-shell="app"] .av2-group-button:nth-child(3) {
    border-right: 0;
  }

  body[data-av-shell="app"] .av2-group-button:nth-child(-n+3) {
    border-bottom: 1px solid #e7ebf0;
  }

  body[data-av-shell="app"] .av2-overview-layout {
    grid-template-columns: 1fr;
  }

  body[data-av-shell="app"] .av2-score-panel {
    border-right: 0;
    border-bottom: 1px solid #e7ebf0;
  }
}

@media (max-width: 960px) {
  body[data-av-shell="app"] .av2-enhanced .detail-layout-v3 {
    grid-template-columns: 1fr;
  }

  body[data-av-shell="app"] .av2-assistant {
    position: static;
  }

  body[data-av-shell="app"] .av2-savebar {
    left: 16px;
    right: 16px;
  }
}

@media (max-width: 640px) {
  body[data-av-shell="app"] .app-detail-v2.av2-enhanced {
    padding-bottom: 112px;
  }

  body[data-av-shell="app"] .av2-enhanced .detail-hero-main {
    padding: 14px;
  }

  body[data-av-shell="app"] .av2-enhanced .detail-hero-main > .detail-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  body[data-av-shell="app"] .av2-enhanced .detail-hero-main > .detail-actions .btn {
    min-width: 0;
    padding-inline: 6px;
  }

  body[data-av-shell="app"] .av2-control-title {
    display: block;
    padding: 14px;
  }

  body[data-av-shell="app"] .av2-control-title p {
    margin-top: 7px;
    text-align: left;
  }

  body[data-av-shell="app"] .av2-group-nav {
    display: flex;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  body[data-av-shell="app"] .av2-group-button {
    min-width: 116px;
    border-right: 1px solid #e7ebf0 !important;
    border-bottom: 0 !important;
  }

  body[data-av-shell="app"] .av2-overview-head {
    display: block;
    padding: 15px;
  }

  body[data-av-shell="app"] .av2-overview-head .btn {
    width: 100%;
    margin-top: 12px;
  }

  body[data-av-shell="app"] .av2-score-panel {
    align-items: flex-start;
    padding: 18px 15px;
  }

  body[data-av-shell="app"] .av2-score-ring {
    width: 92px;
    height: 92px;
    flex-basis: 92px;
  }

  body[data-av-shell="app"] .av2-score-ring strong {
    font-size: 24px;
  }

  body[data-av-shell="app"] .av2-health-list {
    grid-template-columns: 1fr;
  }

  body[data-av-shell="app"] .av2-health-row {
    min-height: 70px;
    padding: 13px 15px;
    border-right: 0;
    border-bottom: 1px solid #e7ebf0 !important;
  }

  body[data-av-shell="app"] .av2-health-row:last-child {
    border-bottom: 0 !important;
  }

  body[data-av-shell="app"] .av2-overview-bottom {
    padding: 15px 15px 6px;
  }

  body[data-av-shell="app"] .av2-recommend-row,
  body[data-av-shell="app"] .av2-all-clear {
    grid-template-columns: 7px minmax(0, 1fr);
  }

  body[data-av-shell="app"] .av2-recommend-row .btn,
  body[data-av-shell="app"] .av2-all-clear .btn {
    grid-column: 2;
    width: 100%;
  }

  body[data-av-shell="app"] .av2-all-clear {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  body[data-av-shell="app"] .av2-savebar {
    right: 10px;
    bottom: 10px;
    left: 10px;
    display: grid;
    gap: 8px;
    padding: 10px;
  }

  body[data-av-shell="app"] .av2-save-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body[data-av-shell="app"] .av2-save-actions .btn {
    min-width: 0;
    padding-inline: 7px;
  }

  body[data-av-shell="app"] .av2-change-popover {
    right: 0;
    left: 0;
    width: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-av-shell="app"] .av2-score-ring {
    transition: none;
  }
}
