/* Layout and home styles adapted directly from the supplied MyCVE prototype. */
.reference-home {
  max-width: 1240px;
  margin: auto;
}
.ref-home-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding-bottom: 39px;
}
.ref-home-intro .eyebrow {
  font-size: 9px;
  margin-bottom: 17px;
}
.ref-home-intro h1 {
  font-size: 45px;
  font-weight: 450;
  letter-spacing: -1.8px;
  line-height: 1.2;
}
.ref-home-intro p {
  color: var(--reference-muted);
  font-size: 14px;
  line-height: 1.85;
  margin-top: 18px;
}
.ref-home-intro > .btn {
  padding: 12px 18px;
  margin-top: 15px;
}
.ref-workspace-at-glance {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 23px 0;
  margin-bottom: 47px;
  border-block: 1px solid var(--border);
  color: var(--reference-muted);
  font-size: 12px;
}
.ref-workspace-at-glance > a,
.ref-workspace-at-glance > span {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ref-workspace-at-glance strong {
  color: var(--ink);
  font-size: 17px;
  font-weight: 500;
}
.ref-workspace-at-glance > i {
  height: 16px;
  width: 1px;
  background: var(--border);
}
.ref-workspace-at-glance .reference-icon {
  width: 14px;
  height: 14px;
}
.ref-workspace-at-glance > a:hover {
  color: var(--grape);
}
.ref-workspace-at-glance > a:last-child {
  margin-left: auto;
}
.ref-home-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 25px;
}
.ref-home-section-heading .eyebrow {
  font-size: 8px;
  margin-bottom: 10px;
}
.ref-home-section-heading h2 {
  font-size: 24px;
  letter-spacing: -0.5px;
  font-weight: 500;
}
.ref-home-project-row {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 27px 0;
  border-top: 1px solid var(--border);
  animation: reference-section-in 320ms calc(var(--order, 0) * 50ms) both;
  transition: background 160ms;
}
.ref-home-project-row:last-child {
  border-bottom: 1px solid var(--border);
}
.ref-home-project-row:hover {
  background: color-mix(in srgb, var(--surface) 65%, transparent);
}
.ref-home-project-icon {
  display: grid;
  place-items: center;
  color: var(--grape);
  width: 49px;
  height: 49px;
  border: 1px solid var(--border);
  border-radius: 10px;
  flex-shrink: 0;
}
.ref-home-project-icon.blue {
  color: var(--blue);
}
.ref-home-project-icon.green {
  color: var(--green);
}
.ref-home-project-icon .reference-icon {
  width: 23px;
  height: 23px;
}
.ref-home-project-name {
  flex: 1;
  min-width: 0;
}
.ref-home-project-name h3 {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.2px;
  overflow-wrap: anywhere;
}
.ref-home-project-name p {
  font-size: 12px;
  color: var(--reference-muted);
  margin-top: 7px;
  line-height: 1.7;
}
.ref-home-project-name small {
  color: var(--reference-muted);
  font-size: 9px;
  display: block;
  margin-top: 9px;
}
.ref-home-project-name small i {
  padding-inline: 6px;
  font-style: normal;
}
.ref-home-project-pulse {
  width: 125px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}
.ref-home-project-pulse .sparkline {
  position: static;
  width: 105px;
  height: 29px;
  opacity: 0.8;
}
.ref-home-project-pulse span {
  font-size: 9px;
  color: var(--reference-muted);
}
.ref-home-project-state {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  min-width: 132px;
}
.ref-home-project-state small {
  color: var(--reference-muted);
  font-size: 9px;
}
.ref-home-open-project {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--grape);
  margin-left: 14px;
  font-size: 10px;
}
.ref-home-open-project > .reference-icon {
  width: 17px;
  height: 17px;
  transition: transform 170ms;
}
.ref-home-project-row:hover .ref-home-open-project > .reference-icon {
  transform: translateX(4px);
}
.ref-home-bottom-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 65px;
  margin-top: 50px;
}
.ref-home-bottom-grid .eyebrow {
  font-size: 8px;
}
.ref-home-bottom-grid h2 {
  font-size: 22px;
  line-height: 1.45;
  letter-spacing: -0.5px;
  font-weight: 450;
}
.ref-home-team {
  position: relative;
  padding-right: 130px;
}
.ref-home-team p {
  font-size: 12px;
  color: var(--reference-muted);
  line-height: 1.9;
  margin-top: 13px;
}
.ref-home-team .text-link {
  margin-top: 19px;
  display: inline-flex;
}
.ref-home-team-graphic {
  position: absolute;
  right: 0;
  top: 26px;
  width: 110px;
  height: 137px;
}
.ref-home-team-graphic span {
  position: absolute;
  height: 32px;
  width: 32px;
  border: 1px solid var(--border);
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 9px;
  color: var(--grape);
  background: var(--bg);
  z-index: 1;
  animation: reference-drift 7s ease-in-out infinite;
}
.ref-home-team-graphic span:nth-child(1) {
  left: 0;
  top: 0;
}
.ref-home-team-graphic span:nth-child(2) {
  right: 0;
  top: 35px;
  color: var(--green);
  animation-delay: -2s;
}
.ref-home-team-graphic span:nth-child(3) {
  left: 10px;
  bottom: 5px;
  color: var(--blue);
  animation-delay: -4s;
}
.ref-home-team-graphic i {
  position: absolute;
  inset: 15px;
  border: 1px dashed var(--border);
  border-radius: 50%;
}
.ref-home-team-graphic > .reference-icon {
  position: absolute;
  top: 53px;
  left: 41px;
  color: var(--grape);
  width: 23px;
  height: 23px;
}
.ref-home-activity > a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-subtle);
}
.ref-home-activity > a:first-of-type {
  margin-top: 7px;
}
.ref-home-activity strong {
  font-size: 11px;
  font-weight: 500;
}
.ref-home-activity p {
  font-size: 10px;
  color: var(--reference-muted);
  margin-top: 4px;
}
.ref-home-event-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--grape);
}
.ref-home-activity > a > .reference-icon {
  margin-left: auto;
  width: 14px;
  height: 14px;
  color: var(--reference-muted);
}
.ref-home-scope-note {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--reference-muted);
  font-size: 10px;
  border-top: 1px solid var(--border);
  margin-top: 39px;
  padding-top: 20px;
}
.ref-home-scope-note > .reference-icon {
  width: 13px;
  height: 13px;
}

/* One visual system for the existing service-backed components. */
.redesign-app {
  --reference-muted: #7e8097;
  --border-subtle: #222330;
  --surface-hover: #1d1e2b;
  --viz-grid: #2b2c39;
  --viz-text: #7e8097;
  --viz-status-good: #86cdb1;
  --danger-text: #f18aa0;
  --warn-text: #eaae7f;
  font-size: 14px;
  line-height: 1.5;
}
[data-theme="light"] .redesign-app {
  --reference-muted: #767187;
  --border-subtle: #e7e6ef;
  --surface-hover: #eeecf6;
  --viz-grid: #e0ddeb;
  --viz-text: #767187;
  --danger-text: #b43351;
  --warn-text: #a56633;
}
.redesign-layout {
  display: block;
  padding-left: 222px;
  min-height: 100vh;
}
.redesign-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 222px;
  height: 100dvh;
  z-index: 50;
  background: var(--bg);
  border-right: 1px solid var(--border-subtle);
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: visible;
}
.reference-brand {
  height: 82px;
  min-height: 82px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 24px;
  color: var(--ink) !important;
  font-size: 24px;
  letter-spacing: -1px;
  font-weight: 700;
}
.reference-brand:hover {
  text-decoration: none !important;
}
.redesign-nav-content {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
}
.reference-workspace {
  padding: 10px 20px 27px;
}
.reference-workspace small {
  display: block;
  color: var(--reference-muted);
  font-size: 10px;
  margin: 7px 0 0 3px;
}
.reference-workspace .workspace-switcher {
  max-width: 100%;
  width: 100%;
}
.reference-workspace .workspace-switcher__trigger {
  max-width: 100%;
}
.redesign-sidebar nav {
  padding: 10px 12px;
}
.reference-nav-label {
  font-size: 9px;
  letter-spacing: 1.1px;
  font-weight: 500;
  color: var(--reference-muted);
  padding: 0 12px;
  margin-bottom: 13px;
}
.reference-nav-label--shared {
  margin-top: 34px;
}
.redesign-nav-link {
  margin: 5px 0;
  padding: 13px 12px;
  min-height: 44px;
  border-radius: 0;
  gap: 11px;
  font-size: 12px;
  color: var(--ink-muted);
}
.redesign-nav-link.is-active,
.redesign-nav-link:hover {
  background: transparent;
}
.redesign-nav-link.is-active {
  font-weight: 400;
  color: var(--grape);
}
.reference-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}
.redesign-nav-link .reference-icon {
  color: var(--reference-muted);
}
.redesign-nav-link.is-active .reference-icon {
  color: var(--grape);
}
.reference-active-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--grape);
  margin-left: auto;
}
.reference-sidebar-note {
  display: flex;
  gap: 10px;
  padding: 25px 24px;
  color: var(--reference-muted);
  margin-top: auto;
}
.reference-sidebar-note .reference-icon {
  width: 15px;
  margin-top: 3px;
  color: var(--grape);
}
.reference-sidebar-note p {
  font-size: 10px;
  line-height: 1.9;
}
.redesign-nav-footer {
  margin: 0;
  padding: 18px 22px;
  border-top: 1px solid var(--border-subtle);
  gap: 20px;
}
.redesign-nav-footer > a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  color: var(--reference-muted);
}
.redesign-nav-footer > a .reference-icon {
  width: 14px;
}
.redesign-nav-footer > a .reference-icon:last-child {
  margin-left: auto;
}
.redesign-nav-footer .account-menu {
  position: relative;
}
.redesign-back {
  margin: 6px 23px 24px;
  padding: 0;
  font-size: 11px;
}
.redesign-project-switch {
  width: calc(100% - 44px);
  margin: 0 22px 24px;
  background-color: transparent;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  font-size: 13px;
  padding-left: 0;
}
.redesign-app .app-header {
  position: sticky;
  top: 0;
  left: auto;
  width: auto;
  height: 68px;
  background: var(--bg);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 40;
}
.redesign-header .app-header__inner {
  height: 68px;
  min-height: 68px;
  padding: 0 34px;
  gap: 16px;
}
.reference-breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--ink-muted);
}
.reference-breadcrumb a,
.reference-breadcrumb .reference-icon {
  color: var(--reference-muted);
}
.reference-breadcrumb .reference-icon {
  width: 13px;
  height: 13px;
}
.redesign-header .app-header__actions {
  gap: 18px;
}
.reference-search {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--reference-muted) !important;
  border-right: 1px solid var(--border);
  padding-right: 20px;
}
.reference-search .reference-icon {
  width: 15px;
}
.redesign-app .page {
  max-width: 1600px;
  padding: 30px 34px 32px;
}
.redesign-app .page.reference-home {
  padding-top: 48px;
  max-width: 1308px;
}
.redesign-app .app-footer {
  margin-left: 222px;
  padding: 0 34px;
  color: var(--reference-muted);
  font-size: 10px;
}
.redesign-app h1,
.redesign-app .page-title {
  font-size: 28px;
  font-weight: 550;
  letter-spacing: -1px;
}
.redesign-app h2,
.redesign-app .pd-section {
  font-size: 15px;
  line-height: 1.5;
  font-weight: 550;
  letter-spacing: -0.15px;
  font-family: var(--font-sans);
}
.redesign-app h3 {
  font-size: 14px;
  font-weight: 550;
}
.redesign-app .mc-btn {
  font: 500 11px/1.45 var(--font-sans);
  padding: 9px 12px;
  min-height: 34px;
  border-radius: 7px;
  box-shadow: none;
  gap: 7px;
}
.redesign-app .mc-btn--primary {
  background: var(--grape);
  color: var(--on-fizz);
  border: 1px solid var(--grape);
}
.redesign-app .mc-btn--secondary {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink-muted);
}
.redesign-app .mc-btn .reference-icon {
  width: 14px;
  height: 14px;
}
.redesign-app .mc-btn:hover {
  text-decoration: none;
  filter: brightness(1.08);
}
.redesign-app .mc-panel,
.redesign-app .viz-card {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  box-shadow: none;
}
.redesign-app .mc-panel {
  padding: 22px;
}
.redesign-app .mc-panel__head {
  margin-bottom: 20px;
}
.redesign-app .page-lede,
.redesign-app .mc-meta {
  font-size: 12px;
  line-height: 1.8;
  color: var(--reference-muted);
}
.redesign-app .pd-head {
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}
.redesign-app .pd-head__title h1 {
  font-size: 32px;
  font-weight: 550;
}
.redesign-app .pd-meta {
  padding: 15px 0;
  margin: 22px 0 0;
  border-block: 1px solid var(--border);
}
.redesign-app .pd-risk {
  font-size: 10px;
  color: var(--sev-high);
  background: color-mix(in srgb, var(--sev-high) 10%, transparent);
  border: 0;
  padding: 4px 8px;
  border-radius: 4px;
}
.redesign-app .pd-kpis {
  gap: 0;
  background: none;
}
.redesign-app .mc-stat {
  background: none;
  border: 0;
  border-right: 1px solid var(--border);
  border-radius: 0;
  box-shadow: none;
  padding: 18px 22px;
}
.redesign-app .mc-stat:last-child {
  border-right: 0;
}
.redesign-app .mc-stat__label {
  font-size: 11px;
  color: var(--ink-muted);
  font-weight: 400;
}
.redesign-app .mc-stat__value {
  font: 500 30px/1.3 var(--font-sans);
  letter-spacing: -1px;
}
.redesign-app .pd-next {
  background: none;
  border: 0;
  border-block: 1px solid var(--border);
  border-radius: 0;
}
.redesign-app .pd-grid {
  gap: 22px;
}
.redesign-app .pr-card {
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  box-shadow: none;
}
.redesign-app .pr-card__link {
  padding: 24px;
  gap: 18px;
}
.redesign-app .pr-card__name {
  font-size: 17px;
  font-weight: 500;
}
.redesign-app .pr-card__desc {
  font-size: 12px;
}
.redesign-app .pr-card__risk {
  font-size: 10px;
}
.redesign-app .redesign-note {
  font-size: 11px;
  line-height: 1.8;
  background: var(--surface);
  border-left-color: var(--border);
  color: var(--reference-muted);
}
.redesign-app .redesign-page-head h1 {
  margin-bottom: 9px;
}
.redesign-app .redesign-page-head p {
  font-size: 12px;
  color: var(--reference-muted);
}
.redesign-app .redesign-table {
  font-size: 12px;
}
.redesign-app .redesign-table th {
  font-size: 9px;
  padding: 12px;
  color: var(--reference-muted);
}
.redesign-app .redesign-table td {
  padding: 17px 12px;
}
.redesign-app .compact-view select {
  font-size: 14px;
  background-color: var(--surface);
  border-radius: 5px;
}
.reference-home .eyebrow {
  font-size: 9px;
  letter-spacing: 1.5px;
  color: var(--grape);
  margin-bottom: 10px;
}
.redesign-app .ref-home-intro h1 {
  font-size: 45px;
  font-weight: 450;
  letter-spacing: -1.8px;
  line-height: 1.2;
}
.ref-home-intro > .mc-btn {
  padding: 12px 18px;
  margin-top: 15px;
}
.ref-workspace-at-glance a {
  color: var(--reference-muted);
}
.ref-home-project-row {
  color: var(--ink) !important;
}
.ref-home-project-row:hover {
  text-decoration: none !important;
}
.redesign-app .ref-home-section-heading h2 {
  font-size: 24px;
  font-weight: 500;
}
.redesign-app .ref-home-project-name h3 {
  font-size: 18px;
  font-weight: 500;
}
.reference-badge {
  font-size: 10px;
  padding: 4px 7px;
  border-radius: 4px;
  background: var(--surface-raised);
  color: var(--ink-muted);
  white-space: nowrap;
}
.reference-badge.is-warning {
  color: var(--sev-high);
  background: color-mix(in srgb, var(--sev-high) 12%, transparent);
}
.reference-severity-count {
  color: var(--grape);
  font: 500 22px var(--font-mono);
}
.reference-text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--grape);
  font-size: 11px;
}
.ref-home-team .reference-text-link {
  margin-top: 19px;
}
.redesign-app .ref-home-bottom-grid h2 {
  font-size: 22px;
  font-weight: 450;
  line-height: 1.45;
}
.ref-home-activity ul {
  margin: 7px 0 0;
  list-style: none;
  padding: 0;
}
.ref-home-activity li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-subtle);
}
.redesign-app .ref-home-project-name p {
  line-height: 1.7;
}
.redesign-app :focus-visible {
  outline: 2px solid var(--grape);
  outline-offset: 4px;
}
@media (max-width: 1100px) {
  .ref-home-project-pulse {
    display: none;
  }
  .ref-home-open-project {
    font-size: 0;
  }
  .ref-home-bottom-grid {
    gap: 35px;
  }
}
@media (max-width: 760px) {
  .redesign-layout {
    padding-left: 0;
  }
  .redesign-sidebar {
    position: sticky;
    inset: auto;
    top: 0;
    width: 100%;
    height: auto;
    display: block;
    border-right: 0;
    border-bottom: 1px solid var(--border);
    padding: 0;
  }
  .reference-brand {
    height: 60px;
    min-height: 60px;
    font-size: 22px;
    padding: 0 18px;
    width: max-content;
  }
  .redesign-menu {
    position: absolute;
    right: 16px;
    top: 12px;
    width: auto;
    min-height: 36px !important;
  }
  .redesign-nav-content {
    display: none;
  }
  .redesign-sidebar.is-open .redesign-nav-content {
    display: flex;
    max-height: calc(100dvh - 60px);
    padding: 10px 0;
  }
  .redesign-header .app-header__inner,
  .redesign-app .app-header {
    height: 52px;
    min-height: 52px;
  }
  .redesign-app .app-header {
    top: 60px;
  }
  .redesign-header .app-header__inner {
    padding: 0 18px;
  }
  .reference-search span {
    display: none;
  }
  .reference-search {
    padding-right: 12px;
  }
  .redesign-header .app-header__actions {
    gap: 10px;
  }
  .redesign-app .page,
  .redesign-app .page.reference-home {
    padding: 28px 20px;
  }
  .redesign-app .app-footer {
    margin-left: 0;
    padding: 0 20px;
  }
  .ref-home-intro {
    flex-wrap: wrap;
    padding-bottom: 24px;
    gap: 21px;
  }
  .redesign-app .ref-home-intro h1 {
    font-size: 35px;
    max-width: 330px;
    letter-spacing: -1.4px;
  }
  .ref-home-intro p {
    font-size: 12px;
    margin-top: 13px;
  }
  .ref-home-intro > .mc-btn {
    margin-top: 0;
    padding: 10px 15px;
  }
  .ref-workspace-at-glance {
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 32px;
    padding-block: 18px;
    font-size: 10px;
  }
  .ref-workspace-at-glance > a:last-child {
    margin-left: 0;
    width: 100%;
  }
  .ref-workspace-at-glance > i:last-of-type {
    display: none;
  }
  .ref-home-project-row {
    flex-wrap: wrap;
    gap: 12px;
    padding-block: 22px;
    position: relative;
  }
  .ref-home-project-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
  }
  .ref-home-project-name {
    min-width: calc(100% - 75px);
  }
  .redesign-app .ref-home-project-name h3 {
    font-size: 17px;
  }
  .ref-home-project-name p {
    font-size: 11px;
  }
  .ref-home-project-state {
    align-items: center;
    flex-direction: row;
    gap: 13px;
    width: 100%;
    margin-left: 50px;
  }
  .ref-home-project-state small,
  .reference-badge {
    font-size: 9px;
  }
  .ref-home-open-project {
    position: absolute;
    top: 33px;
    right: 0;
  }
  .ref-home-open-project > .reference-icon {
    width: 15px;
    height: 15px;
  }
  .ref-home-bottom-grid {
    grid-template-columns: 1fr;
    gap: 35px;
    margin-top: 35px;
  }
  .ref-home-team {
    padding-right: 98px;
  }
  .ref-home-team-graphic {
    transform: scale(0.8);
    transform-origin: right top;
  }
  .ref-home-scope-note {
    align-items: flex-start;
    font-size: 10px;
    line-height: 1.8;
  }
  .redesign-app .pd-head__title h1 {
    font-size: 27px;
  }
  .redesign-app .mc-panel {
    padding: 18px;
  }
  .redesign-app .pd-hero {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  .redesign-app *,
  .redesign-app *::before,
  .redesign-app *::after {
    animation: none !important;
    transition: none !important;
  }
}
.reference-workspace .ws-switch {
  max-width: 100%;
  width: 100%;
}
.reference-workspace .ws-switch__btn {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  max-width: 100%;
  width: 100%;
  height: 32px;
  gap: 9px;
  font-size: 12px;
}
.reference-workspace .ws-role {
  display: none;
}
.reference-workspace .ws-switch__icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  background: var(--grape-wash);
  color: var(--grape);
  border-radius: 8px;
}
.reference-workspace .ws-switch__name {
  max-width: 135px;
}
.redesign-nav-footer .acct__btn {
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  gap: 9px;
}
.redesign-nav-footer .acct__name {
  display: block;
  font-size: 11px;
  max-width: 125px;
}
.redesign-nav-footer .acct__avatar {
  width: 31px;
  height: 31px;
  background: #55476c;
  color: #e7dafa;
  border: 1px solid #8e79b833;
  font-size: 10px;
}
.redesign-nav-footer .acct__menu {
  position: fixed;
  left: 14px;
  right: auto;
  bottom: 70px;
  top: auto;
  max-height: calc(100dvh - 100px);
  overflow: auto;
}
.reference-workspace .ws-menu {
  position: fixed;
  left: 14px;
  right: auto;
  top: 136px;
  max-height: calc(100dvh - 160px);
  overflow: auto;
}
.reference-flat-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 16px 0 26px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}
.reference-flat-stats > div {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 0 26px;
  border-left: 1px solid var(--border-subtle);
}
.reference-flat-stats > div:first-child {
  padding-left: 0;
  border-left: 0;
}
.reference-flat-stats span {
  font-size: 11px;
  color: var(--ink-muted);
}
.reference-flat-stats strong {
  font-size: 31px;
  line-height: 1.4;
  letter-spacing: -1px;
  font-weight: 500;
}
.reference-flat-stats small {
  font-size: 10px;
  color: var(--reference-muted);
}
.reference-critical {
  color: var(--sev-critical);
}
.reference-accent {
  color: var(--grape);
}
.reference-project-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 1fr);
  gap: 34px;
}
.reference-project-overview > section {
  min-width: 0;
}
.reference-section-heading {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin: 0 0 22px;
}
.reference-section-heading > span {
  font: 11px var(--font-mono);
  margin-top: 6px;
  color: var(--grape);
}
.redesign-app .reference-section-heading h2 {
  font-size: 18px;
  font-weight: 500;
}
.reference-section-heading p {
  font-size: 12px;
  color: var(--reference-muted);
  margin-top: 6px;
}
.redesign-app .reference-project-overview .mc-panel,
.redesign-app .reference-project-overview .viz-card {
  border: 0;
  padding: 0;
  background: none;
}
.reference-project-overview .pd-next > .pd-section {
  display: none;
}
.redesign-app .reference-project-overview .pd-next__item {
  padding: 20px 0;
  border-top: 1px solid var(--border-subtle);
}
.redesign-app .reference-project-overview .pd-next__title {
  font-size: 13px;
  font-weight: 500;
}
.redesign-app .reference-project-overview .pd-next__detail {
  font-size: 11px;
  color: var(--reference-muted);
}
.redesign-app .reference-priority .mc-panel {
  background: none;
  border: 0;
  border-block: 1px solid var(--border);
  border-radius: 0;
  padding: 0;
}
.reference-priority .mc-panel__head {
  padding-top: 18px;
}
.reference-priority {
  margin-top: 25px;
}
.reference-deeper {
  border-top: 1px solid var(--border);
  padding: 22px 0;
  margin-top: 20px;
}
.reference-deeper summary {
  font-size: 12px;
  color: var(--grape);
  cursor: pointer;
}
.reference-deeper-body {
  display: grid;
  gap: 24px;
  margin-top: 24px;
}
@media (max-width: 1000px) {
  .reference-project-overview {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}
@media (max-width: 760px) {
  .reference-flat-stats {
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 0;
  }
  .reference-flat-stats > div {
    padding: 20px !important;
  }
  .reference-flat-stats > div:nth-child(odd) {
    padding-left: 0 !important;
    border-left: 0;
  }
  .reference-flat-stats > div:nth-child(n + 3) {
    border-top: 1px solid var(--border-subtle);
  }
  .reference-flat-stats strong {
    font-size: 28px;
  }
  .reference-workspace .ws-menu {
    top: 100px;
  }
  .redesign-nav-footer .acct__menu {
    left: 12px;
    bottom: 20px;
    width: calc(100vw - 24px);
  }
}
.redesign-app {
  --viz-surface: var(--surface);
  --viz-tooltip-bg: var(--surface-raised);
  --viz-tooltip-ink: var(--ink);
}
.redesign-app .reference-project-overview .mc-chart {
  background: transparent;
  border: 0;
  padding: 0;
  gap: 16px;
}
.redesign-app .mc-chart__desc {
  font-size: 11px;
  color: var(--reference-muted);
}
.redesign-app .mc-chart__legend,
.redesign-app .mc-chart__toggle {
  font-size: 10px;
}
.redesign-app .mc-chart__title {
  font-size: 13px;
  font-weight: 500;
}
.redesign-app .mc-chart__key {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.redesign-app .mc-chart {
  border-color: var(--border-subtle);
  border-radius: 12px;
  box-shadow: none;
}
.redesign-app .page.reference-home {
  display: block;
}
.reference-home .ref-home-intro .eyebrow {
  margin-top: 0;
  line-height: 1.5;
}
.reference-home .reference-severity-count {
  font-size: 22px;
  color: var(--grape);
}
.redesign-header .theme-toggle,
.redesign-header .notif-bell {
  border: 0;
  background: transparent;
  box-shadow: none;
}
.redesign-app .reference-project-overview .pd-next__item {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}
.redesign-app .reference-project-overview .pd-next__item:hover {
  background: transparent;
  transform: translateX(3px);
}
.redesign-app .reference-priority .mc-panel__head {
  margin-bottom: 0;
  padding-bottom: 12px;
}
.redesign-app .pd-back {
  font-size: 11px;
}
.redesign-app .mc-segmented {
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 6px;
  gap: 2px;
  background: var(--bg);
}
.redesign-app .mc-segmented > button {
  padding: 4px 9px;
  font-size: 10px;
  min-height: 26px;
  border: 0;
  border-radius: 4px;
}
.redesign-app .mc-segmented > [aria-checked="true"],
.redesign-app .mc-segmented > [aria-pressed="true"] {
  box-shadow: none;
  background: var(--surface-raised);
  color: var(--ink);
}
@media (max-width: 760px) {
  .redesign-sidebar {
    max-height: none;
  }
  .redesign-sidebar.is-open .redesign-nav-content {
    max-height: calc(100dvh - 60px);
  }
  .reference-search {
    min-height: 32px;
    min-width: 30px;
    justify-content: center;
  }
}
.redesign-app .pl-graph {
  background: transparent;
  border: 0;
  border-block: 1px solid var(--border-subtle);
  border-radius: 0;
  padding: 20px 10px;
  background-image: radial-gradient(var(--border) 0.8px, transparent 0.8px);
  background-size: 19px 19px;
}
@media (max-width: 760px) {
  .reference-search .sr-only {
    display: block;
  }
}
.redesign-app .mc-table {
  font-size: 12px;
}
.redesign-app .mc-table th {
  font: 500 10px/1.5 var(--font-sans);
  letter-spacing: 0.6px;
  color: var(--reference-muted);
  background: transparent;
}
.redesign-app .mc-table td {
  padding-block: 18px;
}
.redesign-app .cv-product {
  border: 0;
  border-top: 1px solid var(--border);
  background: transparent;
  border-radius: 0;
  padding: 22px 0;
}
.redesign-app .cv-section {
  padding-top: 10px;
}
.redesign-app .cv-section__title {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
}
.redesign-app .cv-head__meta,
.redesign-app .cv-total,
.redesign-app .cv-pager__range {
  font-size: 11px;
  color: var(--reference-muted);
}
.redesign-app .source-block {
  background: var(--surface);
  border-color: var(--border-subtle);
}
.redesign-app .chat-unavailable {
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  min-height: 520px;
  background: var(--bg);
}
.redesign-app .chat-unavailable > aside {
  background: var(--surface);
  padding: 22px 18px;
}
.redesign-app .chat-unavailable > aside h2 {
  font-size: 13px;
}
.redesign-app .chat-unavailable > aside h3 {
  font-size: 11px;
  color: var(--reference-muted);
  margin-top: 24px;
}
.redesign-app .chat-unavailable > aside p {
  font-size: 11px;
  color: var(--reference-muted);
}
.redesign-app .chat-welcome {
  padding: 45px 30px;
}
.redesign-app .chat-welcome p {
  font-size: 12px;
  max-width: 55ch;
}

/* Match the prototype's introductory rhythm, measured at desktop width. */
.reference-home .ref-home-intro .eyebrow {
  margin-bottom: 17px;
}
.reference-workspace {
  padding-bottom: 15px;
}
/* Grid children must shrink before their inner evidence tables can scroll. */
.redesign-app .project-section {
  min-width: 0;
  max-width: 100%;
}
.redesign-app .redesign-table-scroll {
  min-width: 0;
  max-width: 100%;
}
.reference-workspace .ws-switch__name {
  display: block;
}

/* The prototype’s transform-only motion, paired with the reduced-motion override above. */
@keyframes reference-section-in {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes reference-drift {
  50% {
    transform: translateY(-5px);
  }
}
.redesign-app .reference-deeper[open] > .reference-deeper-body {
  animation: reference-section-in 180ms ease-out;
}
@media (prefers-reduced-motion: reduce) {
  .redesign-app .reference-deeper[open] > .reference-deeper-body {
    animation: none;
  }
}

/* Workspace capabilities remain reachable beside the primary destinations. */
.redesign-sidebar .workspace-tool-nav { border-top: 1px solid var(--border-subtle); margin-top: 12px; padding: 22px 16px 12px; }
.workspace-tool-nav .reference-nav-label { padding: 0 8px; }
.workspace-tool-nav input { width: 100%; min-width: 0; box-sizing: border-box; padding: 9px 10px; margin-bottom: 10px; font: inherit; font-size: 12px; color: var(--ink); background: var(--bg); border: 1px solid var(--border); border-radius: 6px; }
.tool-scope { font-size: 11px; color: var(--reference-muted); padding: 0 8px; margin: 0 0 12px; }
.tool-nav-group summary { cursor: pointer; padding: 10px 6px; font-size: 12px; color: var(--ink); }
.tool-nav-group summary::marker { color: var(--reference-muted); }
.tool-nav-row { margin: 2px 0; }
.tool-nav-link { display: block; padding: 8px 12px; border-radius: 5px; color: var(--reference-muted); font-size: 12px; line-height: 1.4; transition: background-color 150ms ease, color 150ms ease; }
.tool-nav-link:hover, .tool-nav-link.is-active { color: var(--ink); background: var(--surface-raised); text-decoration: none; }
.tool-nav-link.is-active { color: var(--grape); box-shadow: inset 2px 0 currentColor; }
.tool-nav-link small { display: block; font-size: 10px; }
.tool-nav-link.is-unavailable { opacity: .7; }
.tool-plan-link { display: block; font-size: 10px; padding: 0 12px 7px; }
.workspace-tool-nav :is(a, input, summary):focus-visible { outline: 2px solid var(--grape); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .tool-nav-link { transition: none; } }
@media (max-width: 760px) { .tool-nav-link, .tool-nav-group summary { min-height: 44px; box-sizing: border-box; display: block; } }
.assessment-commands { margin-block: 28px; min-width: 0; }
.command-project, .command-fields label { display: flex; flex-direction: column; gap: 7px; font-size: 13px; }
.command-project { max-width: 380px; margin-block: 24px; }
.command-fields { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,250px),1fr)); gap: 18px; margin-block: 24px; }
.command-fields :is(input,select), .command-project select { width: 100%; box-sizing: border-box; min-height: 42px; background: var(--surface); color: var(--ink); border: 1px solid var(--border); border-radius: 6px; padding: 9px 12px; font: inherit; }
.command-recipes { display: grid; gap: 16px; margin-block: 24px; }
.command-recipes > section { min-width: 0; }
.command-recipes h3 { font-size: 15px; margin-bottom: 10px; }
.assessment-commands input:focus-visible, .assessment-commands select:focus-visible, .command-project select:focus-visible { outline: 2px solid var(--grape); outline-offset: 2px; }
.cloud-job-panel { border-block: 1px solid var(--border-subtle); padding: 18px 0; margin: 24px 0; }
.cloud-job-panel > summary { cursor: pointer; font-weight: 600; color: var(--grape); }
.cloud-job-panel > p, .cloud-job-panel h3 { margin-block: 18px; }
.project-cloud-jobs { padding: 0; list-style: none; }
.project-cloud-jobs li { display:flex; align-items:center; justify-content:space-between; gap:16px; border-bottom:1px solid var(--border-subtle); padding:14px 0; }

.paid-team-chat { display:grid; grid-template-columns:220px minmax(0,1fr); border:1px solid var(--border-subtle); border-radius:12px; overflow:hidden; }
.paid-chat-teams { padding:20px; border-right:1px solid var(--border-subtle); }
.paid-chat-teams select { width:100%; margin:10px 0 24px; }
.paid-chat-teams h2 { font-size:13px; }
.paid-chat-current { color:var(--grape); padding:10px 0; font-weight:600; }
.paid-chat-room { min-width:0; }
.paid-chat-room > header,.paid-chat-room > form { padding:20px 24px; }
.paid-chat-history { min-height:220px; max-height:55vh; overflow:auto; padding:0 24px; border-block:1px solid var(--border-subtle); }
.paid-chat-history article { padding:16px 0; border-bottom:1px solid var(--border-subtle); }
.paid-chat-history article header { display:flex; gap:12px; flex-wrap:wrap; font-size:12px; }
.paid-chat-history time { color:var(--ink-muted); }
.paid-chat-history article p { white-space:pre-wrap; overflow-wrap:anywhere; margin:8px 0 0; }
.paid-chat-room textarea { display:block; width:100%; box-sizing:border-box; min-height:90px; margin-top:8px; resize:vertical; }
.paid-chat-send { display:flex; gap:16px; justify-content:space-between; align-items:center; margin-top:12px; }
@media(max-width:700px) { .paid-team-chat { grid-template-columns:1fr; } .paid-chat-teams { border-right:0; border-bottom:1px solid var(--border-subtle); } .paid-chat-teams select { margin-bottom:8px; } .paid-chat-send { align-items:stretch; flex-direction:column; } .paid-chat-room > header,.paid-chat-room > form,.paid-chat-history { padding-inline:16px; } }

.paid-chat-teams select,.paid-chat-room textarea { font:inherit; color:var(--ink); background:var(--surface); border:1px solid var(--border-subtle); border-radius:8px; padding:10px 12px; }
.paid-chat-teams select:focus-visible,.paid-chat-room textarea:focus-visible,.paid-chat-history:focus-visible { outline:2px solid var(--grape); outline-offset:3px; }
.paid-chat-room textarea::placeholder { color:var(--ink-muted); }
