:root {
  color-scheme: light;
  --paper: #f6f7f3;
  --surface: #fff;
  --ink: #1c302b;
  --muted: #52655c;
  --border: #d9dfd7;
  --forest: #174735;
  --lime: #d7f381;
  --amber: #89500f;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  font-family: Inter, 'Helvetica Neue', Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
a,
select {
  touch-action: manipulation;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.55;
  cursor: default;
}
button,
select,
input {
  color: var(--ink);
}
:focus-visible {
  outline: 3px solid #498168;
  outline-offset: 3px;
}
.skip {
  position: absolute;
  top: -5rem;
  left: 1rem;
  z-index: 5;
  background: white;
  padding: 12px;
}
.skip:focus {
  top: 10px;
}
.icon {
  width: 18px;
  height: 18px;
  flex: none;
  vertical-align: middle;
}
.mono {
  font-family: var(--mono);
  font-size: 0.8rem;
}
time {
  font-size: 0.8rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.meta,
small {
  color: var(--muted);
  font-size: 0.8rem;
}
.grow {
  flex: 1;
  min-width: 0;
}
b,
strong {
  font-weight: 640;
}
small {
  display: block;
  line-height: 1.5;
}
.grow b,
.component b {
  display: block;
  overflow-wrap: anywhere;
}
.grow small {
  margin-top: 5px;
}
#shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 226px minmax(0, 1fr);
}
.rail {
  background: #eef1e9;
  border-right: 1px solid #d3dbd2;
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: sticky;
  top: 0;
  min-width: 0;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 740;
  letter-spacing: -1.5px;
  font-size: 26px;
  padding: 26px 23px 27px;
}
.wordmark .mark {
  display: block;
  width: 28px;
  height: 28px;
  flex: none;
}
.railbody {
  padding: 22px 14px;
}
.raillabel {
  display: block;
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-weight: 680;
  color: #627166;
  padding-left: 9px;
  margin: 0 0 9px;
}
.railhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 9px;
}
.railhead .raillabel {
  margin: 0;
}
.railnew {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #16452f;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}
.railnew .icon {
  width: 13px;
}
.railnew:hover {
  background: #e1e8dc;
}
.projectlist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
  max-height: 40vh;
  overflow-y: auto;
}
.projectitem {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 7px;
  color: #475b50;
  font-size: 14px;
  font-weight: 550;
}
.projectitem span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.projectitem:hover {
  background: #e1e8dc;
}
.projectitem.active {
  background: #fafbf7;
  box-shadow: inset 0 0 0 1px #ccd6cb;
  color: #16452f;
  font-weight: 700;
}
.projectselect {
  display: none;
  background: #fafbf7;
  border: 1px solid #ccd6cb;
  align-items: center;
  padding: 0 10px;
  gap: 8px;
  height: 43px;
  border-radius: 8px;
  position: relative;
}
.projectselect select {
  position: absolute;
  inset: 0;
  width: 100%;
  border: none;
  background: transparent;
  appearance: none;
  padding: 0 30px 0 37px;
  font-weight: 650;
  cursor: pointer;
}
.projectselect > .icon:last-child {
  margin-left: auto;
  width: 14px;
  pointer-events: none;
}
.rail nav {
  margin-top: 29px;
  display: grid;
  gap: 4px;
}
.navitem,
.addproj {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 7px;
  color: #475b50;
  font-size: 14px;
  font-weight: 550;
}
.navitem.active {
  background: #dce7d7;
  color: #16452f;
  font-weight: 700;
}
.navitem:hover,
.addproj:hover {
  background: #e1e8dc;
}
.navitem small {
  margin-left: auto;
  padding: 0 7px;
  border-radius: 4px;
  background: #c6d9c1;
  color: #274e32;
}
.addproj {
  font-size: 13px;
  margin-top: 18px;
}
.railbottom {
  margin-top: auto;
  padding: 12px 16px 20px;
}
.local {
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--border);
  padding: 17px 9px 0;
  margin-top: 10px;
  color: #55675a;
}
.local i,
.pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #56866a;
  display: inline-block;
}
.workspace {
  min-width: 0;
}
.topbar {
  height: 64px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 clamp(24px, 4vw, 70px);
  font-size: 13px;
  color: var(--muted);
  background: #fbfcf8;
}
.topbar span {
  display: flex;
  align-items: center;
  gap: 10px;
}
.topbar em {
  font-style: normal;
  color: #67766b;
}
.topbar strong {
  color: var(--ink);
}
.topbar .topstatus {
  font-size: 12px;
}
.topbar .icon {
  width: 15px;
}
.workspace main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 36px clamp(24px, 4vw, 70px) 50px;
  outline: none;
}
.pagehead,
.sectionhead,
.actions,
.formfoot,
.dialoghead,
.importlinks {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.pagehead {
  margin-bottom: 24px;
}
.pagehead h1 {
  font-size: clamp(32px, 3.6vw, 53px);
  line-height: 1.03;
  letter-spacing: -0.058em;
  margin: 0;
  font-weight: 610;
}
.pagehead p,
p {
  line-height: 1.55;
}
.pagehead p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  border: 1px solid #c5d0c6;
  background: #fff;
  padding: 10px 14px;
  border-radius: 7px;
  font-weight: 600;
  font-size: 13px;
  line-height: 1.25;
}
.button:hover {
  background: #eaf1e7;
}
.button.primary {
  background: var(--forest);
  color: white;
  border-color: var(--forest);
}
.button.primary:hover {
  background: #215b44;
}
.button.bright {
  background: var(--lime);
  color: #153a2a;
  border: 0;
}
.button.bright:hover {
  background: #e7ff99;
}
.button .icon {
  width: 16px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 11px;
  margin: 0 0 18px;
}
.stat {
  padding: 17px 21px;
}
.stat + .stat {
  border-left: 1px solid var(--border);
}
.stat-label {
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 620;
  color: #4e6355;
}
.stat-label .icon {
  width: 16px;
  height: 16px;
}
.stat-value {
  font-size: 33px;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  font-weight: 550;
  margin: 7px 0 2px;
}
.stat-note {
  font-size: 12px;
  color: var(--muted);
}
.warm {
  color: var(--amber);
}
.spotlight {
  position: relative;
  isolation: isolate;
  background: linear-gradient(111deg, #163c30 0%, #1b4033 62%, #2c5540 100%);
  color: #fff;
  border-radius: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(180px, 0.75fr);
  align-items: center;
  gap: 3%;
  padding: 25px 29px;
  overflow: hidden;
  margin-bottom: 20px;
}
.spotlight:after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 42%;
  background-image: radial-gradient(#8baa8340 0.9px, transparent 1.1px);
  background-size: 9px 9px;
  z-index: -1;
  mask-image: linear-gradient(90deg, transparent, #000 35%);
}
.urgent-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 650;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #d7efa8;
}
.pulse {
  background: #d7ed9f;
}
.feature-body h2 {
  font-size: clamp(22px, 2.4vw, 34px);
  letter-spacing: -0.045em;
  margin: 11px 0 6px;
  line-height: 1.1;
  font-weight: 600;
}
.feature-body p {
  font-size: 13px;
  line-height: 1.55;
  max-width: 480px;
  color: #dce6dc;
  margin: 0 0 16px;
}
.evidence-art {
  display: grid;
  place-items: center;
  padding: 14px 10px;
}
.slip {
  border: 1px solid #71907a;
  background: #315542;
  color: #f2f6e9;
  border-radius: 7px;
  min-width: 158px;
  max-width: 98%;
  padding: 13px 15px;
  transform: rotate(-4deg);
  box-shadow:
    5px 6px 0 -1px #42664c,
    5px 6px 0 0 #6a876d,
    10px 12px 0 -1px #375641,
    10px 12px 0 0 #6a876d;
}
.slip-head {
  font-size: 11px;
  color: #d4e8ce;
  display: flex;
  align-items: center;
  gap: 6px;
}
.slip .icon {
  width: 14px;
}
.slip strong {
  display: block;
  margin: 12px 0 2px;
  font-size: 15px;
  overflow-wrap: anywhere;
}
.slip-foot {
  font-size: 11px;
  border-top: 1px dashed #83a085;
  padding-top: 7px;
  margin-top: 9px;
}
.panel,
.detail-lead {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 10px;
  margin-bottom: 18px;
  overflow: hidden;
}
.sectionhead {
  padding: 16px 20px;
}
.sectionhead h2,
.panel h2 {
  font-weight: 630;
  font-size: 19px;
  letter-spacing: -0.035em;
  margin: 0;
}
.risk-row,
.source-row,
.eventrow,
.component {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-top: 1px solid #e3e7e1;
  font-size: 14px;
}
.risk-row:hover,
.source-row:hover,
a.eventrow:hover,
.treeitem:hover {
  background: #f4f7ee;
}
.risk-row > .icon,
.source-row > .icon,
.eventrow > .icon {
  width: 15px;
  color: #6a7b70;
}
.score {
  width: 40px;
  min-height: 32px;
  display: grid;
  place-items: center;
  font-weight: 650;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  border-radius: 5px;
}
.score.amber {
  color: #82500c;
  background: #faebc8;
}
.score.neutral {
  color: #435c4e;
  background: #eaf0e8;
}
.tag {
  font-size: 11px;
  background: #f1f3ef;
  border: 1px solid #dce1d9;
  color: #48594d;
  display: inline-block;
  padding: 4px 7px;
  border-radius: 5px;
}
.boxicon {
  height: 32px;
  width: 32px;
  display: grid;
  place-items: center;
  background: #eff3ec;
  border-radius: 6px;
  flex: none;
}
.textlink {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #255f47;
  border: 0;
  background: transparent;
  padding: 0;
  font-weight: 630;
  font-size: 13px;
  cursor: pointer;
}
.textlink:hover {
  text-decoration: underline;
}
.textlink .icon {
  width: 14px;
}
.pad,
.empty,
.detail-lead {
  padding: 21px;
}
.pad p,
.empty,
.annotation {
  font-size: 14px;
  color: var(--muted);
}
.back {
  margin-bottom: 18px;
}
.detail-lead {
  background: #203e32;
  color: #eef6ec;
}
.detail-lead p {
  font-size: 17px;
  max-width: 680px;
}
.chipline,
.tabs {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.tabs {
  margin-bottom: 18px;
}
.tabs button {
  padding: 8px 12px;
  font-size: 13px;
  border: 1px solid var(--border);
  background: white;
  border-radius: 6px;
}
.tabs button[aria-pressed='true'] {
  background: #dfebda;
  color: #285139;
  border-color: #b8cbb5;
}
.maplayout {
  display: grid;
  grid-template-columns: minmax(150px, 0.55fr) minmax(0, 1.7fr);
  gap: 15px;
  align-items: start;
}
.tree {
  padding: 14px 10px;
}
.tree h2 {
  padding: 5px 8px 14px;
}
.treeitem {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  border-left: 1px solid #b5c7b8;
  margin: 3px 0 0 8px;
  padding: 9px 6px;
}
.treeitem span {
  overflow-wrap: anywhere;
}
.treeitem small {
  margin-left: auto;
}
.treeitem.selected {
  background: #e5eedf;
  border-left: 3px solid #3d6b4d;
}
.mapdetail .sectionhead {
  flex-wrap: wrap;
}
.mapdetail h2 {
  margin-top: 5px;
}
.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
  padding: 18px 20px;
  border-top: 1px solid var(--border);
}
.facts b {
  font-size: 13px;
  display: block;
  margin-top: 4px;
}
.annotation {
  background: #f4f6ef;
  padding: 12px 20px;
  line-height: 1.5;
}
.annotation.warn,
.feedrow.warn {
  background: #fbf1dc;
  color: #6b4210;
}
.annotation.notice {
  border-radius: 6px;
  margin-bottom: 15px;
}
.feedrow {
  display: grid;
  gap: 3px;
  padding: 12px 20px;
  border-top: 1px solid #e3e7e1;
  font-size: 14px;
}
.feedrow.warn small {
  color: #6b4210;
}
.tag.drill {
  background: #fbf1dc;
  border-color: #e9cf97;
  color: #6b4210;
  font-weight: 630;
  padding: 2px 5px;
}
.component {
  justify-content: space-between;
}
.component > div {
  min-width: 0;
}
.eventrow .grow small {
  margin: 0 0 3px;
}
.settingsform {
  max-width: 640px;
}
.onboard {
  max-width: 640px;
}
.onboard h2 {
  margin-top: 16px;
}
.actions,
.importlinks {
  justify-content: flex-start;
  flex-wrap: wrap;
}
.actions {
  margin-top: 12px;
}
form label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  margin: 12px 0;
}
form input:not([type='file']):not([type='checkbox']),
form select {
  width: 100%;
  font-size: 14px;
  padding: 10px 11px;
  border: 1px solid #b8c4b7;
  border-radius: 6px;
  background: #fff;
}
form input[type='number'] {
  max-width: 95px;
}
.formpair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.filezone {
  position: relative;
  cursor: pointer;
  justify-items: center;
  background: #f3f7ef;
  padding: 18px;
  border: 1px dashed #91a88c;
  border-radius: 8px;
}
.filezone:focus-within {
  outline: 2px solid var(--forest);
}
.filezone input {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.formfoot {
  margin-top: 20px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
#dialog {
  color: var(--ink);
  background: #fff;
  border: 1px solid #bfcbbf;
  border-radius: 13px;
  box-shadow: 0 28px 90px #0a25193b;
  width: min(520px, calc(100% - 28px));
  max-height: 88vh;
  overflow: auto;
  padding: 22px;
}
#dialog::backdrop {
  background: #10271c70;
}
.dialoghead {
  margin-bottom: 18px;
}
.dialoghead h2 {
  font-size: 23px;
  letter-spacing: -0.035em;
  margin: 0;
}
.iconbutton {
  border: 1px solid var(--border);
  background: white;
  border-radius: 5px;
  padding: 5px;
  display: grid;
  place-items: center;
}
dialog p,
details {
  font-size: 13px;
  line-height: 1.5;
}
details {
  margin-top: 10px;
  padding: 9px;
  background: #f5f7f1;
  border-radius: 6px;
}
summary {
  cursor: pointer;
  font-weight: 600;
}
.choices,
.preview-list {
  max-height: 175px;
  overflow: auto;
  overflow-wrap: anywhere;
}
.choices label {
  display: flex;
  align-items: center;
}
.error {
  color: #873622;
}
.preview-list {
  padding-left: 18px;
}
.topbar .signout {
  font-size: inherit;
  margin-left: 6px;
}
.facts.prefs {
  border-top: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.signedout {
  max-width: 440px;
  margin: 12vh auto 0;
  padding: 0 16px;
}
.signedout .wordmark {
  padding: 0 0 28px;
}
.signedout h1 {
  font-size: 30px;
  letter-spacing: -0.8px;
  margin: 0 0 10px;
}
.signedout p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
  margin: 0 0 22px;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: 12px var(--mono);
}
code {
  font: 12px var(--mono);
}
/* The collector steps in the source dialog (ADR-0009 T6). */
.steps {
  margin: 14px 0 0;
  padding-left: 20px;
}
.steps li {
  margin-bottom: 18px;
}
.steps h3 {
  font-size: 14px;
  margin: 0 0 2px;
}
.steps p {
  margin: 4px 0;
}
.steps pre {
  background: #f5f7f1;
  border-radius: 6px;
  padding: 9px 10px;
  margin: 8px 0;
}
.steps details pre {
  background: #fff;
}
.collectstatus .facts {
  padding: 0 0 12px;
  border-top: 0;
}
.collectstatus .actions {
  margin: 0 0 4px;
}
#notice {
  position: fixed;
  bottom: 14px;
  right: 14px;
  background: #213d30;
  color: #fff;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  max-width: min(360px, 92vw);
  z-index: 8;
}
#notice.show {
  opacity: 1;
}
@media (max-width: 1000px) {
  #shell {
    grid-template-columns: 193px minmax(0, 1fr);
  }
  .workspace main {
    padding-left: 24px;
    padding-right: 24px;
  }
  .topbar {
    padding: 0 24px;
  }
  .spotlight {
    padding: 22px;
  }
  .risk-row,
  .source-row,
  .eventrow {
    gap: 10px;
  }
  .maplayout {
    grid-template-columns: 155px minmax(0, 1fr);
  }
}
@media (max-width: 720px) {
  #shell {
    display: block;
  }
  .rail {
    height: auto;
    position: static;
    border-right: 0;
    border-bottom: 1px solid var(--border);
    display: grid;
    grid-template-columns: 1fr auto;
  }
  .wordmark {
    padding: 15px 16px;
    font-size: 22px;
  }
  .wordmark .mark {
    width: 24px;
    height: 24px;
  }
  .railbody {
    display: contents;
  }
  .railhead,
  .projectlist,
  .local {
    display: none;
  }
  .projectselect {
    display: flex;
    margin: 13px 15px 0 0;
    max-width: 155px;
    width: 145px;
    height: 32px;
  }
  .rail nav {
    grid-column: 1/3;
    margin: 0;
    display: flex;
    padding: 0 8px 7px;
    gap: 3px;
    flex-wrap: wrap;
  }
  .navitem,
  .addproj {
    padding: 7px 9px;
    font-size: 12px;
    gap: 5px;
  }
  .navitem .icon,
  .addproj .icon {
    width: 14px;
  }
  .addproj {
    margin: 0 0 4px 8px;
    grid-row: 3;
  }
  .railbottom {
    padding: 0 9px 4px;
    margin: 0;
    grid-row: 3;
    justify-self: end;
  }
  .topbar {
    height: 41px;
    padding: 0 14px;
  }
  .topbar .topstatus {
    font-size: 10px;
    gap: 4px;
  }
  .workspace main {
    padding: 23px 14px 30px;
  }
  .pagehead {
    gap: 8px;
    margin-bottom: 17px;
  }
  .pagehead h1 {
    font-size: 32px;
  }
  .pagehead p {
    font-size: 13px;
  }
  .pagehead .button {
    flex: none;
    font-size: 12px;
    padding: 9px;
  }
  .metrics {
    margin-bottom: 12px;
  }
  .stat {
    padding: 13px 10px;
  }
  .stat-label {
    font-size: 11px;
    gap: 4px;
  }
  .stat-label .icon {
    display: none;
  }
  .stat-value {
    font-size: 26px;
  }
  .stat-note {
    font-size: 10px;
  }
  .spotlight {
    grid-template-columns: 1fr;
    padding: 20px;
    margin-bottom: 13px;
  }
  .evidence-art {
    display: none;
  }
  .spotlight:after {
    width: 25%;
  }
  .feature-body h2 {
    font-size: 25px;
  }
  .sectionhead,
  .risk-row,
  .source-row,
  .component,
  .eventrow {
    padding: 12px 13px;
  }
  .risk-row .tag {
    display: none;
  }
  .score {
    width: 33px;
    flex: none;
  }
  .source-row > .meta {
    display: none;
  }
  .sectionhead h2 {
    font-size: 17px;
  }
  .maplayout {
    display: block;
  }
  .tree {
    margin-bottom: 12px;
  }
  .facts {
    padding: 12px;
    gap: 9px;
  }
  .eventrow time {
    font-size: 12px;
  }
  .formpair {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .component {
    align-items: flex-start;
  }
  .component > small {
    max-width: 45%;
    text-align: right;
  }
  .formfoot {
    flex-wrap: wrap;
  }
  .facts.prefs {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 370px) {
  .topstatus .icon {
    display: none;
  }
  .topbar span {
    gap: 4px;
  }
  .pagehead {
    align-items: flex-start;
    flex-wrap: wrap;
  }
}

/* Risk grouped by the upgrade that clears each set of findings. */
.upgrade {
  border-top: 1px solid #e3e7e1;
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
}
.upgrade > summary,
.gapgroup > summary {
  font-weight: 400;
}
.upgrade > summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  font-size: 14px;
  cursor: pointer;
  list-style: none;
}
.upgrade > summary::-webkit-details-marker {
  display: none;
}
.upgrade > summary:hover {
  background: #f4f7ee;
}
.upgrade > summary b {
  overflow-wrap: anywhere;
}
.upgrade > summary > .icon {
  width: 15px;
  color: #6a7b70;
  transition: rotate 0.15s;
}
.upgrade[open] > summary > .icon {
  rotate: 180deg;
}
.upgrade[open] > summary {
  background: #f4f7ee;
}
.upgrade > .risk-row {
  padding-left: 74px;
  background: #fbfcf8;
}
.upgrade > .risk-row > .score {
  display: none;
}
.nextstep p {
  font-size: 17px;
  font-weight: 600;
  margin: 8px 0 0;
  overflow-wrap: anywhere;
}
.advisorytext .prose {
  overflow-wrap: anywhere;
  margin: 10px 0 16px;
  max-width: 72ch;
  line-height: 1.55;
}
.advisorytext .prose p,
.advisorytext .prose ul,
.advisorytext .prose ol {
  margin: 0 0 12px;
}
.advisorytext .prose ul,
.advisorytext .prose ol {
  padding-left: 22px;
}
.advisorytext .prose li {
  margin: 0 0 4px;
}
.advisorytext .prose h3,
.advisorytext .prose h4 {
  font-size: 15px;
  font-weight: 700;
  margin: 18px 0 6px;
  letter-spacing: 0;
}
.advisorytext .prose > :first-child {
  margin-top: 0;
}
.advisorytext .prose code {
  font: 0.9em var(--mono);
  background: #eef1ea;
  border-radius: 4px;
  padding: 1px 5px;
}
.advisorytext .prose pre {
  font: 12.5px/1.5 var(--mono);
  background: #f1f4ed;
  border: 1px solid #e0e6dc;
  border-radius: 7px;
  padding: 10px 12px;
  margin: 0 0 12px;
  overflow-x: auto;
  white-space: pre;
}
.advisorytext .more > summary {
  cursor: pointer;
  color: #16452f;
  font-weight: 650;
  font-size: 14px;
  margin: 2px 0 12px;
}
.advisorytext .more[open] > summary {
  margin-bottom: 14px;
}
.advisorytext .chipline {
  margin: 0 0 14px;
}
.reflist li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.reflist {
  list-style: none;
  padding: 0;
  margin: 14px 0;
  display: grid;
  gap: 6px;
  font-size: 14px;
}
.reflist a {
  overflow-wrap: anywhere;
}
.reflist small {
  color: #627166;
}
@media (max-width: 760px) {
  .upgrade > summary > .tag {
    display: none;
  }
  .upgrade > .risk-row {
    padding-left: 20px;
  }
}

/* Live states, filters and the inventory map (U6). */
.panel :focus-visible,
.upgrade > summary:focus-visible {
  outline-offset: -3px;
}
.spotlight :focus-visible,
.detail-lead :focus-visible {
  outline-color: var(--lime);
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.notices {
  border: 1px solid #ecd6a8;
  background: #fbf1dc;
  color: #5e3a0e;
  border-radius: 8px;
  margin: 0 0 16px;
  padding: 4px 0;
}
.notices p {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  padding: 8px 14px;
  font-size: 14px;
  line-height: 1.45;
}
.notices p + p {
  border-top: 1px solid #f0dfba;
}
.notices .icon {
  margin-top: 1px;
  color: var(--amber);
}
.notices span {
  flex: 1;
}
.notices .textlink {
  color: #5e3a0e;
  text-decoration: underline;
  white-space: nowrap;
}
.pkload {
  display: flex;
  align-items: center;
  padding: 6px 0 22px;
}
.signedout .pkload {
  padding: 8px 0 18px;
}
.loadbar {
  height: 3px;
  border-radius: 2px;
  background: #e1e8dc;
  overflow: hidden;
  margin: 0 0 24px;
}
.loadbar i {
  display: block;
  height: 100%;
  width: 35%;
  background: #3d6b4d;
  animation: load 1.2s ease-in-out infinite;
}
@keyframes load {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(300%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .loadbar i {
    animation: none;
    width: 100%;
    opacity: 0.4;
  }
}
.todo > .sectionhead {
  flex-wrap: wrap;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.segmented {
  display: inline-flex;
  border: 1px solid #c5d0c6;
  border-radius: 7px;
  overflow: hidden;
}
.segmented button {
  border: 0;
  background: #fff;
  padding: 7px 11px;
  font-size: 13px;
  font-weight: 600;
  color: #475b50;
}
.segmented button + button {
  border-left: 1px solid #c5d0c6;
}
.segmented button[aria-pressed='true'] {
  background: #dce7d7;
  color: #16452f;
}
.segmented button span {
  font-variant-numeric: tabular-nums;
  color: #52655c;
  margin-left: 2px;
}
.segmented button:focus-visible {
  outline-offset: -3px;
}
.selectbox {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.selectbox select {
  appearance: none;
  border: 1px solid #c5d0c6;
  border-radius: 7px;
  background: #fff;
  padding: 7px 30px 7px 11px;
  font-size: 13px;
  font-weight: 600;
  max-width: 200px;
  text-overflow: ellipsis;
}
.selectbox .icon {
  position: absolute;
  right: 9px;
  width: 14px;
  pointer-events: none;
}
.band {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 20px 8px;
  border-top: 1px solid #e3e7e1;
  background: #f6f8f2;
}
.band h3 {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #3e5446;
}
.band span {
  font-size: 12px;
  color: var(--muted);
}
.count {
  min-width: 26px;
  padding: 2px 7px;
  border-radius: 10px;
  background: #eef2ea;
  color: #3e5446;
  font-size: 12px;
  font-weight: 650;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.upgrade.exploited > summary {
  box-shadow: inset 3px 0 0 #b3261e;
}
.morebutton {
  display: block;
  width: 100%;
  border: 0;
  border-top: 1px solid #e3e7e1;
  background: #fbfcf8;
  padding: 13px 20px;
  font-size: 13px;
  font-weight: 650;
  color: #255f47;
  text-align: left;
}
.morebutton:hover {
  background: #f4f7ee;
}
.boxicon.warm {
  background: #fbf1dc;
}
.firstsource {
  max-width: 640px;
}
.firstsource h2 {
  margin-bottom: 6px;
}
.checklist {
  margin: 14px 0 18px;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
}
.countline {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  padding: 0 20px 16px;
  font-size: 13px;
  color: var(--muted);
}
.countline b {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.countline .warm b {
  color: var(--amber);
}
.facts b.warm {
  color: var(--amber);
}
.gapgroup {
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border-top: 1px solid #e3e7e1;
}
.gapgroup > summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  font-size: 14px;
  list-style: none;
}
.gapgroup > summary::-webkit-details-marker {
  display: none;
}
.gapgroup > summary > .icon {
  width: 15px;
  color: #6a7b70;
}
.gapgroup[open] > summary > .icon {
  rotate: 180deg;
}
.gapgroup ul {
  list-style: none;
  margin: 0;
  padding: 0 20px 12px;
  display: grid;
  gap: 2px;
  max-height: 320px;
  overflow-y: auto;
}
.gapgroup li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  padding: 5px 0;
  border-bottom: 1px dashed #e3e7e1;
  overflow-wrap: anywhere;
}
.treeitem .grow small {
  margin: 2px 0 0;
}
.treeitem b {
  font-weight: 600;
}
.treeitem .icon {
  align-self: flex-start;
  margin-top: 1px;
}
.eventrow .grow small.note {
  margin: 3px 0 0;
}
.source-row.closed b {
  color: var(--muted);
  font-weight: 550;
}
.signedout .loadbar {
  margin-top: 8px;
}
@media (max-width: 720px) {
  .band,
  .gapgroup > summary,
  .morebutton {
    padding-left: 13px;
    padding-right: 13px;
  }
  .countline {
    padding: 0 13px 12px;
  }
  .gapgroup ul {
    padding: 0 13px 10px;
  }
  .notices p {
    font-size: 13px;
    padding: 8px 12px;
  }
  .todo .toolbar {
    width: 100%;
  }
  .selectbox {
    flex: 1;
  }
  .selectbox select {
    max-width: none;
    width: 100%;
  }
  .upgrade > summary {
    padding: 12px 13px;
    gap: 10px;
  }
}
@media (max-width: 520px) {
  .topbar {
    justify-content: flex-end;
  }
  .topbar > span:first-child {
    display: none;
  }
  .topbar .topstatus {
    white-space: nowrap;
  }
  .pagehead {
    flex-wrap: wrap;
    align-items: flex-start;
  }
  .rail nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0;
    padding: 0 4px 7px;
    scrollbar-width: none;
  }
  .rail nav .navitem .icon {
    display: none;
  }
  .navitem {
    padding: 7px 7px;
    white-space: nowrap;
  }
  .navitem small {
    margin-left: 2px;
    padding: 0 5px;
  }
  .metrics .stat-note {
    line-height: 1.35;
  }
}
#shell > .signedout {
  grid-column: 1 / -1;
  width: 100%;
}
.button,
.navitem span {
  white-space: nowrap;
}
@media (max-width: 1000px) and (min-width: 721px) {
  .railbody {
    padding: 22px 10px;
  }
  .navitem {
    gap: 9px;
    padding: 10px;
  }
  .navitem small {
    padding: 0 5px;
  }
}
.nextstep p {
  color: var(--ink);
}
@media (max-width: 520px) {
  .eventrow {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) auto;
    column-gap: 10px;
    align-items: start;
  }
  .eventrow > .boxicon {
    grid-row: 1 / span 2;
  }
  .eventrow > time {
    grid-column: 2;
    grid-row: 2;
    max-width: none;
    font-size: 12px;
    margin-top: 4px;
  }
  .eventrow > .icon {
    grid-column: 3;
    grid-row: 1 / span 2;
    align-self: center;
  }
}
/* The scrolling nav row clips anything drawn outside its items. */
.rail nav .navitem:focus-visible {
  outline-offset: -3px;
}

.toolbar .copyjson {
  height: 36px;
  padding: 0 12px;
  font-size: 13px;
  white-space: nowrap;
}
.advisorytext .more {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
}

/* Activity as a feed of posts. */
.feedwrap {
  max-width: 660px;
}
.feed {
  list-style: none;
  margin: 0;
  padding: 0;
}
.feedday {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 10px;
  font-size: 12px;
  font-weight: 680;
  color: #627166;
}
.feedday:first-child {
  margin-top: 6px;
}
.feedday::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #dfe5dc;
}
.post {
  display: flex;
  gap: 12px;
  padding: 14px 0 4px;
  position: relative;
}
.post::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 58px;
  bottom: -10px;
  width: 2px;
  background: #e3e8df;
}
.post:last-child::before {
  display: none;
}
.avatar {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #dce7d7;
  color: #16452f;
  position: relative;
}
.avatar .icon {
  width: 18px;
}
.avatar.warm {
  background: #faebc8;
  color: #82500c;
}
.avatar.hot {
  background: #1f3d31;
  color: #f4e7b8;
}
.postbody {
  flex: 1;
  min-width: 0;
  padding-bottom: 12px;
}
.posthead {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  min-height: 22px;
}
.posthead time {
  color: #627166;
}
.posthead time::before {
  content: '·';
  margin-right: 8px;
}
.postbody > p {
  margin: 2px 0 10px;
  font-size: 15px;
  line-height: 1.45;
}
.post.urgent .postbody > p {
  font-weight: 600;
}
.quote {
  display: block;
  border: 1px solid #dbe2d8;
  background: #fff;
  border-radius: 14px;
  padding: 12px 14px;
  margin: 0 0 8px;
  font-size: 14px;
}
a.quote:hover {
  background: #f4f7ee;
  border-color: #c5d0c6;
}
.quote b {
  display: block;
  font-size: 15px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.quote .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.tag.hot {
  background: #faebc8;
  color: #82500c;
  border-color: #efd9a4;
}
.thread > summary {
  cursor: pointer;
  color: #16452f;
  font-weight: 650;
  font-size: 14px;
  padding: 4px 2px 8px;
  list-style: none;
}
.thread > summary::-webkit-details-marker {
  display: none;
}
.thread[open] > summary {
  color: #627166;
}
.feedwrap .morebutton {
  margin: 8px 0 0 52px;
  border-radius: 999px;
}
@media (max-width: 480px) {
  .post {
    gap: 10px;
  }
  .avatar {
    width: 34px;
    height: 34px;
  }
  .post::before {
    left: 16px;
    top: 52px;
  }
  .feedwrap .morebutton {
    margin-left: 44px;
  }
}
.feedwrap .morebutton {
  width: auto;
  border: 1px solid #c5d0c6;
  background: #fff;
  padding: 9px 16px;
}

/* A group leads with the flaw; the upgrade is the last, quieter line. */
.upgrade > summary .fixline {
  color: #16452f;
  font-weight: 600;
  margin-top: 5px;
}
.upgrade > summary b {
  font-size: 15px;
  line-height: 1.35;
}
.upgrade > summary {
  align-items: flex-start;
}
.upgrade > summary > .score,
.upgrade > summary > .count,
.upgrade > summary > .icon {
  margin-top: 2px;
}

/* Scores on one scale, with the threshold and the vector in plain words. */
.scorewrap {
  padding: 18px 20px 6px;
}
.scorehead {
  display: flex;
  align-items: center;
  gap: 14px;
}
.scorehead b {
  display: block;
  font-size: 15px;
}
.scorehead small {
  color: #56675b;
  font-size: 14px;
}
.bigscore {
  flex: none;
  min-width: 64px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #eef2ea;
  color: #2c4234;
  font-size: 26px;
  font-weight: 750;
  text-align: center;
  letter-spacing: -0.01em;
}
.bigscore.hot {
  background: #faebc8;
  color: #82500c;
}
.scorescale {
  display: block;
  width: 100%;
  max-width: 760px;
  height: auto;
  margin: 10px 0 2px;
}
.scorescale .zone.low {
  fill: #cfe3cf;
}
.scorescale .zone.medium {
  fill: #f1e2a6;
}
.scorescale .zone.high {
  fill: #f0bf7a;
}
.scorescale .zone.critical {
  fill: #dd7f6b;
}
.scorescale .zonelabel,
.scorescale .tick,
.scorescale .thresholdlabel {
  font-size: 15px;
  fill: #56675b;
}
.scorescale .tick {
  fill: #7c8a80;
  font-size: 13px;
}
.scorescale .thresholdlabel {
  fill: #16452f;
  font-weight: 650;
}
.scorescale .threshold {
  stroke: #16452f;
  stroke-width: 3;
  stroke-dasharray: 5 4;
}
.scorescale .mark {
  fill: #fff;
  stroke: #56675b;
  stroke-width: 3;
}
.scorescale .mark.counted {
  fill: #16452f;
  stroke: #fff;
  stroke-width: 4;
}
.scorelegend {
  list-style: none;
  margin: 6px 0 14px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  font-size: 14px;
}
.scorelegend li {
  display: flex;
  align-items: center;
  gap: 7px;
}
.scorelegend .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #56675b;
  background: #fff;
}
.scorelegend .dot.counted {
  background: #16452f;
  border-color: #16452f;
}
.scorelegend span:last-child {
  color: #56675b;
}
.cvssfacts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  margin: 0 0 14px;
}
.cvssfacts .fact {
  border: 1px solid #e0e6dc;
  border-radius: 10px;
  padding: 9px 12px;
  background: #fbfcf8;
}
.cvssfacts .fact small {
  display: block;
  color: #627166;
  font-size: 12px;
}
.cvssfacts .fact b {
  font-size: 14px;
}
.cvssfacts .fact.hot {
  background: #fdf3dc;
  border-color: #efd9a4;
}
.cvssfacts .fact.calm b {
  color: #56675b;
  font-weight: 550;
}
.rawscores {
  background: none;
  border: none;
  padding: 0;
  margin: 0 -20px;
}
.rawscores > summary {
  cursor: pointer;
  color: #16452f;
  font-weight: 650;
  font-size: 14px;
  padding: 4px 20px 12px;
}

/* What was scanned: a slim context strip above the list. */
.scanned {
  padding: 0;
}
.scanhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
}
.scanhead h2 {
  font-size: 13px;
  font-weight: 680;
  color: #56675b;
  letter-spacing: 0;
  margin: 0;
}
.scanhead .textlink {
  font-size: 13px;
}
.scanrow {
  display: grid;
  grid-template-columns: minmax(90px, 1.1fr) minmax(110px, 1fr) minmax(180px, 1.5fr) minmax(180px, 1.5fr) 15px;
  align-items: center;
  gap: 14px;
  padding: 9px 20px;
  border-top: 1px solid #e3e7e1;
  font-size: 14px;
  color: #475b50;
}
.scanrow:hover {
  background: #f4f7ee;
}
.scanrow b {
  color: #1c2b22;
  overflow-wrap: anywhere;
}
.scanrow .warm {
  color: #8a4b08;
  font-weight: 600;
}
.scanrow > .icon {
  width: 15px;
  color: #6a7b70;
}
@media (max-width: 760px) {
  .scanrow {
    grid-template-columns: 1fr 15px;
    gap: 2px 10px;
  }
  .scanrow > :not(.icon) {
    grid-column: 1;
  }
  .scanrow > .icon {
    grid-column: 2;
    grid-row: 1 / span 4;
  }
}

/* A source at a glance on the Inventory map. */
.health {
  padding: 18px 20px 14px;
}
.healthline {
  margin: 0 0 12px;
  font-size: 17px;
  line-height: 1.4;
}
.healthline b {
  font-size: 22px;
  font-weight: 750;
}
.healthbar {
  display: block;
  width: 100%;
  height: 14px;
}
.healthbar .clear {
  fill: #b9d6b9;
}
.healthbar .affected {
  fill: #e6a94e;
}
.healthbar .gap {
  fill: #c9cdc6;
}
.healthkey {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  font-size: 14px;
  color: #475b50;
}
.healthkey li {
  display: flex;
  align-items: center;
  gap: 7px;
}
.healthkey b {
  color: #1c2b22;
}
.healthkey .dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: #b9d6b9;
}
.healthkey .dot.affected {
  background: #e6a94e;
}
.healthkey .dot.gap {
  background: #c9cdc6;
}
.healthkey .dot.local {
  background: #fff;
  border: 2px solid #9aa79d;
  /* The rail's .local rule shares the class name. */
  padding: 0;
  margin: 0;
}
.healthwhen {
  margin: 12px 0 0;
  font-size: 13px;
  color: #627166;
}
.healthwhen .warm {
  color: #8a4b08;
  font-weight: 600;
}

/* Group rows and their findings as structured facts, not sentences. */
.tagrow {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.tag.id {
  background: #fff;
  border-color: #c5d0c6;
  color: #1c2b22;
  font-weight: 650;
}
.tag.pkg {
  background: #eef2ea;
  font-weight: 600;
  color: #2c4234;
}
.tag.kind {
  background: #f3eefc;
  border-color: #ddd2f3;
  color: #4b3a78;
}
.tag.src {
  background: transparent;
  border-style: dashed;
}
.tag.fix {
  background: #e3f0e1;
  border-color: #c3dcc0;
  color: #16452f;
  font-weight: 600;
}
.tag.calm {
  background: transparent;
  color: #627166;
}
.fixrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 9px;
  font-size: 14px;
  font-weight: 600;
  color: #16452f;
}
.fixrow small {
  font-weight: 400;
  color: #56675b;
  font-size: 13px;
}
.fixrow small::before {
  content: '· ';
}
.fixlabel {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #16452f;
  color: #fff;
  border-radius: 4px;
  padding: 2px 6px;
}
a.upgrade.single {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 20px;
  font-size: 14px;
}
a.upgrade.single:hover {
  background: #f4f7ee;
}
a.upgrade.single b {
  font-size: 15px;
  line-height: 1.35;
  display: block;
  overflow-wrap: anywhere;
}
a.upgrade.single > .icon {
  width: 15px;
  color: #6a7b70;
  margin-top: 4px;
}
a.upgrade.single > .score {
  margin-top: 2px;
}
.fcards {
  display: grid;
  gap: 8px;
  padding: 4px 20px 16px 74px;
  background: #f4f7ee;
}
.fcard {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #fff;
  border: 1px solid #dbe2d8;
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 14px;
}
.fcard:hover {
  border-color: #b5c3b7;
}
.fcard b {
  display: block;
  font-size: 14px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.fcard > .score {
  width: 36px;
  min-height: 26px;
  font-size: 13px;
}
.fcard > .icon {
  width: 15px;
  color: #6a7b70;
  margin-top: 5px;
}
@media (max-width: 760px) {
  .fcards {
    padding-left: 20px;
  }
}

/* A risk group as one version jump and what it resolves. */
.upgrade > summary,
a.upgrade.single {
  align-items: center;
}
.jump {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.jump b {
  font-size: 16px;
  margin-right: 4px;
  overflow-wrap: anywhere;
}
.ver {
  font-size: 13px;
  font-weight: 650;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}
.ver.from {
  background: #eef0ec;
  color: #5c6a60;
}
.ver.to {
  background: #16452f;
  color: #fff;
}
.ver.none {
  background: transparent;
  border: 1px dashed #b9c2b9;
  color: #627166;
  font-weight: 550;
}
.jump .arrow {
  color: #7c8a80;
  font-weight: 700;
}
.upgrade .worst {
  display: block;
  margin-top: 6px;
  color: #56675b;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fid {
  color: #7c8a80;
  font-size: 12px;
  white-space: nowrap;
}
.resolves {
  flex: none;
  display: grid;
  justify-items: end;
  gap: 2px;
  text-align: right;
}
.resolves b {
  font-size: 14px;
  white-space: nowrap;
}
.resolves small {
  color: #82500c;
  font-size: 12px;
  font-weight: 600;
}
.dots {
  display: flex;
  gap: 3px;
}
.dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d5dbd2;
}
.dots i.u {
  background: #e6a94e;
}
.frows {
  background: #fbfcf8;
  padding: 2px 0 8px;
}
.frow {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 20px 8px 74px;
  font-size: 14px;
}
.frow:hover {
  background: #f1f5ea;
}
.frow b {
  flex: 1;
  min-width: 0;
  font-weight: 550;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.frow > .score {
  width: 36px;
  min-height: 24px;
  font-size: 12px;
}
.frow > .icon {
  width: 14px;
  color: #8a978d;
}
@media (max-width: 760px) {
  .frow {
    padding-left: 20px;
    flex-wrap: wrap;
  }
  .frow b,
  .upgrade .worst {
    white-space: normal;
  }
  .frow .fid {
    display: none;
  }
  .resolves .dots {
    display: none;
  }
}

/* Advisory, component, source: the chain that makes a finding yours. */
.matchpath .path {
  display: flex;
  align-items: stretch;
  gap: 0;
  padding: 18px 20px 6px;
}
.matchpath .node {
  flex: 1 1 0;
  min-width: 0;
  border: 1px solid #dbe2d8;
  border-radius: 12px;
  background: #fff;
  padding: 12px 14px;
  display: grid;
  align-content: center;
  gap: 2px;
}
.matchpath .node small {
  font-size: 11px;
  font-weight: 680;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #627166;
}
.matchpath .node b {
  font-size: 16px;
  overflow-wrap: anywhere;
}
.matchpath .node span {
  font-size: 13px;
  color: #56675b;
}
.matchpath .node span.warm {
  color: #8a4b08;
  font-weight: 600;
}
.matchpath .node.comp {
  background: #fdf6e3;
  border-color: #efd9a4;
}
.matchpath a.node.src {
  background: #eaf2e6;
  border-color: #bcd2b8;
}
.matchpath a.node.src:hover {
  border-color: #16452f;
}
.matchpath .node.closed {
  background: transparent;
  border-style: dashed;
}
.matchpath .node.closed b {
  color: #627166;
  font-weight: 600;
}
.matchpath .nodes {
  flex: 1.2 1 0;
  min-width: 0;
  display: grid;
  gap: 8px;
  align-content: center;
}
.matchpath .link {
  flex: none;
  align-self: center;
  display: grid;
  justify-items: center;
  padding: 0 10px;
  font-size: 12px;
  color: #627166;
  white-space: nowrap;
}
.matchpath .link::after {
  content: '';
  width: 46px;
  height: 10px;
  margin-top: 3px;
  background:
    linear-gradient(#9aa79d, #9aa79d) left center / calc(100% - 6px) 2px no-repeat,
    conic-gradient(from 240deg at 100% 50%, #9aa79d 60deg, transparent 0) right center / 8px 10px no-repeat;
}
.pathnote {
  margin: 8px 20px 16px;
  font-size: 13px;
  color: #627166;
}
@media (max-width: 760px) {
  .matchpath .path {
    flex-direction: column;
    gap: 0;
  }
  .matchpath .link {
    padding: 6px 0;
  }
  .matchpath .link::after {
    width: 2px;
    height: 14px;
    background: #9aa79d;
  }
}
.matchpath a.node.src.closed {
  background: transparent;
  border-color: #c5cdc4;
}

/* Installed and fixed versions as two equal halves of one capsule. */
.vjump {
  display: inline-flex;
  align-items: stretch;
  border-radius: 9px;
  border: 1px solid #d3dbd0;
  overflow: hidden;
  vertical-align: middle;
  background: #fff;
}
.vhalf {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 4px 10px;
  white-space: nowrap;
}
.vhalf small {
  font-size: 11px;
  color: #627166;
  font-weight: 550;
}
.vhalf b,
.jump .vhalf b {
  font-size: 13.5px;
  font-weight: 700;
  margin: 0;
}
.vhalf.have {
  background: #fdf3dc;
}
.vhalf.have b {
  color: #7a4a08;
}
.vhalf.fixed {
  background: #e7f1e4;
  border-left: 1px solid #d3dbd0;
}
.vhalf.fixed b {
  color: #16452f;
}
.vhalf.unknown {
  border-left: 1px dashed #c5cdc4;
}
.vhalf.unknown:first-child {
  border-left: none;
}
.vhalf.unknown b {
  color: #627166;
  font-weight: 600;
}
.nextstep .vjump {
  margin-top: 12px;
}
.nextstep .vhalf {
  padding: 7px 14px;
}
.nextstep .vhalf b {
  font-size: 16px;
}

/* Versions as a timeline: you have, fixed in, latest. */
.vline {
  display: inline-flex;
  align-items: flex-start;
  vertical-align: middle;
}
/* Three rows per stop: label, dot, version. The dot row is 12px high and
   the track runs through its middle, so dots sit on the line. */
.vstop {
  display: grid;
  justify-items: center;
  grid-template-rows: 14px 12px auto;
  row-gap: 3px;
  position: relative;
}
.vstop small,
.vstop b,
.jump .vstop b {
  padding: 0 6px;
}
.vstop small {
  font-size: 11px;
  line-height: 14px;
  color: #627166;
  font-weight: 550;
  white-space: nowrap;
}
.vdot {
  position: relative;
  width: 100%;
  height: 12px;
  display: grid;
  place-items: center;
}
/* The track inside a stop: from its dot out to each neighbouring segment. */
.vdot::before,
.vdot::after {
  content: '';
  position: absolute;
  top: 5px;
  height: 2px;
  width: 50%;
  background: #c3ccc2;
}
.vdot::before {
  left: 0;
}
.vdot::after {
  right: 0;
}
.vstop:first-child .vdot::before,
.vstop:last-child .vdot::after {
  display: none;
}
.vstop i {
  box-sizing: border-box;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 2.5px solid #8f9c92;
  position: relative;
  z-index: 1;
}
/* The track between two stops, at the same height as the dots' middle. */
.vseg {
  flex: none;
  height: 2px;
  margin-top: 22px;
  background: #c3ccc2;
}
.vseg.g1 { width: 10px; }
.vseg.g2 { width: 24px; }
.vseg.g3 { width: 40px; }
.vseg.g4 { width: 58px; }
.vseg.g5 { width: 78px; }
.vseg.g6 { width: 100px; }
.vseg.after {
  background: repeating-linear-gradient(90deg, #c3ccc2 0 4px, transparent 4px 7px);
}
.vstop.latest .vdot::before {
  background: repeating-linear-gradient(90deg, #c3ccc2 0 4px, transparent 4px 7px);
}
.vseg.open {
  background: repeating-linear-gradient(90deg, #c3ccc2 0 4px, transparent 4px 7px);
}
.vstop b,
.jump .vstop b {
  font-size: 13.5px;
  line-height: 18px;
  font-weight: 700;
  margin: 0;
  white-space: nowrap;
}
.vstop.have i {
  border-color: #d9952c;
  background: #d9952c;
}
.vstop.have b {
  color: #7a4a08;
}
.vstop.fixed i {
  border-color: #16452f;
  background: #16452f;
}
.vstop.fixed b {
  color: #16452f;
}
.vstop.latest b {
  color: #3e5446;
}
.vstop.unknown i {
  border-style: dashed;
}
.vstop.unknown b {
  color: #627166;
  font-weight: 600;
}
/* The package page's stops (0021): a version the service judged opens
   the open risks at it. Selected reads as a quiet green panel, never as
   risk colour; the count is advisories that affect that version. */
.vstop.vpick {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  margin: 0;
  padding: 0 0 5px;
  border-radius: 8px;
  cursor: pointer;
}
.vstop.vpick:hover {
  background: #f1f5ea;
}
.vstop.vpick:focus-visible {
  outline: 2px solid #174735;
  outline-offset: 1px;
}
.vstop.vpick[aria-pressed='true'] {
  background: #e3f0e1;
  box-shadow: inset 0 0 0 1.5px #16452f;
}
.vstop.vpick[aria-pressed='true'] small {
  color: #16452f;
}
.vn {
  display: inline-block;
  min-width: 16px;
  margin-left: 5px;
  padding: 0 5px;
  box-sizing: border-box;
  border-radius: 9px;
  background: #eef1ec;
  color: #3e5446;
  font-size: 11px;
  line-height: 16px;
  font-weight: 700;
  text-align: center;
  vertical-align: 1px;
  font-variant-numeric: tabular-nums;
}
.vn.calm {
  background: #dcecd6;
  color: #16452f;
}
.stopnote {
  margin: 0;
  padding: 10px 20px 8px;
  color: var(--muted);
}
.vgap {
  display: inline-block;
  margin-left: 14px;
  font-size: 12.5px;
  color: #627166;
  vertical-align: middle;
}
.jump {
  align-items: center;
  gap: 6px 16px;
}
.nextstep .vline {
  margin-top: 14px;
}
.nextstep .vstop b {
  font-size: 17px;
  line-height: 22px;
}
.nextstep .vseg.g1 { width: 18px; }
.nextstep .vseg.g2 { width: 40px; }
.nextstep .vseg.g3 { width: 66px; }
.nextstep .vseg.g4 { width: 96px; }
.nextstep .vseg.g5 { width: 130px; }
.nextstep .vseg.g6 { width: 168px; }
.nextstep .vgap {
  display: block;
  margin: 10px 0 0;
  font-size: 14px;
}

/* The situation picker in the Add inventory dialog. */
.recipepick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border: 0;
  border-radius: 0;
  overflow: visible;
  margin: 6px 0 2px;
}
.recipepick button,
.recipepick button + button {
  border: 1px solid #c5d0c6;
  border-radius: 7px;
  padding: 6px 10px;
}
/* Sources as a tree under Inventory map in the rail. The in-panel list is
   kept only for the narrow layout, where the rail is a bar. */
.navtree {
  margin: 2px 0 6px 21px;
  padding-left: 9px;
  border-left: 1px solid #c3cfc2;
  display: grid;
  gap: 1px;
}
.navsrc {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 9px;
  border-radius: 7px;
  font-size: 13.5px;
  color: #46584b;
  min-width: 0;
}
.navsrc span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.navsrc small {
  margin-left: auto;
  font-size: 11.5px;
  color: #6b7a6f;
  font-variant-numeric: tabular-nums;
}
.navsrc:hover {
  background: #e9eee6;
}
.navsrc.selected {
  background: #e2ebdd;
  color: #1d3a29;
  font-weight: 650;
}
.navsrc.warn small {
  color: #a35a00;
  font-weight: 700;
}
@media (min-width: 721px) {
  .maplayout {
    display: block;
  }
  .maplayout > .tree {
    display: none;
  }
}
@media (max-width: 720px) {
  .navtree {
    display: none;
  }
}

/* Inventory map: what the service confirms it holds for a source, and its
   component list (ADR-0011). Dense rows; risk is a dot, not a badge. */
.confirm {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px 16px;
  padding: 14px 20px 16px;
  border-top: 1px solid var(--border);
}
.confirm > div {
  min-width: 0;
}
.confirm small {
  display: block;
  font-size: 12px;
  line-height: 1.35;
}
.confirm b {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 2px 0 1px;
  font-size: 13px;
  font-weight: 620;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.confirm .warm b {
  color: #8a4b08;
}
.confirm .num b {
  font-size: 15px;
}
.confirm code {
  font-size: 12.5px;
}
.copyfp {
  padding: 3px;
  color: #4b5f54;
}
.copyfp .icon {
  width: 14px;
  height: 14px;
}
.sbomtools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 0 20px 12px;
}
.sbomtools input {
  flex: 1 1 220px;
  min-width: 0;
  max-width: 340px;
  padding: 7px 10px;
  border: 1px solid #c5d0c6;
  border-radius: 7px;
  background: #fff;
  font-size: 13px;
}
.sbomtools .chipline {
  align-items: center;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  font-size: 12.5px;
  line-height: 1.2;
}
.chip small {
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
}
.chip[aria-pressed='true'] {
  background: #dfebda;
  border-color: #b8cbb5;
  color: #285139;
}
.sbomnote {
  font-size: 12px;
}
.riskdot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e6a94e;
  flex: none;
}
.riskmark.urgent .riskdot {
  background: #c2410c;
}
.riskmark {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 640;
  color: #6b4207;
  font-variant-numeric: tabular-nums;
}
.riskmark.urgent {
  color: #9a3412;
}
.riskmark:hover {
  text-decoration: underline;
}
.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.sbomscroll {
  overflow-x: auto;
}
.sbomtable {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.sbomtable th {
  text-align: left;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  padding: 6px 10px;
  border-top: 1px solid #e3e7e1;
  background: #f8faf6;
}
.sbomtable td {
  padding: 6px 10px;
  border-top: 1px solid #eef1ec;
  vertical-align: top;
}
.sbomtable th:first-child,
.sbomtable td:first-child {
  padding-left: 20px;
}
.sbomtable th:last-child,
.sbomtable td:last-child {
  padding-right: 20px;
  width: 1%;
  white-space: nowrap;
  text-align: right;
}
.sbomtable .cname {
  overflow-wrap: anywhere;
}
.sbomtable .cver {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  color: #33463c;
}
.sbomtable .ceco {
  width: 1%;
  white-space: nowrap;
  color: var(--muted);
}
.sbomtable tbody tr:hover {
  background: #f6f8f3;
}
.sbomtable tr.risky .cname {
  font-weight: 600;
}
.sbommore {
  padding: 12px 20px;
  border-top: 1px solid #eef1ec;
}
.fold {
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border-top: 1px solid var(--border);
}
.fold > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  list-style: none;
}
.fold > summary::-webkit-details-marker {
  display: none;
}
.fold > summary h2 {
  font-weight: 630;
  font-size: 17px;
  letter-spacing: -0.03em;
  margin: 0;
}
.fold > summary .meta {
  margin-left: auto;
}
.fold > summary > .icon {
  width: 15px;
  color: #6a7b70;
  transition: rotate 0.15s;
}
.fold[open] > summary > .icon {
  rotate: 180deg;
}
.fold > summary:hover {
  background: #f4f7ee;
}
@media (max-width: 900px) {
  .confirm {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 720px) {
  .confirm {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 12px;
    gap: 10px 12px;
  }
  .sbomtools {
    padding: 0 12px 10px;
  }
  .sbomtools input {
    max-width: none;
    flex-basis: 100%;
  }
  .sbomtable th:first-child,
  .sbomtable td:first-child {
    padding-left: 12px;
  }
  .sbomtable th:last-child,
  .sbomtable td:last-child {
    padding-right: 12px;
  }
  .fold > summary {
    padding: 12px;
  }
  .sbommore {
    padding: 10px 12px;
  }
}
@media (max-width: 520px) {
  .confirm {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sbomtable .ceco,
  .sbomtable th:nth-child(3) {
    display: none;
  }
}

/* Component names are links: to the finding when there is a risk, else to
   the public registry. */
.sbomtable .cname a {
  color: inherit;
}
.sbomtable .cname a:hover {
  text-decoration: underline;
}

/* The package page (ADR-0012): a compact header, where the project has
   the package, its risks and its advisory history. */
.matchpath a.node.comp:hover {
  border-color: #b98a2a;
}
.pkghead {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 6px 0 18px;
}
.pkghead h1 {
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 2px 0 0;
  font-weight: 620;
  overflow-wrap: anywhere;
}
.pkgfull {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}
.pkgwhere {
  padding: 4px 20px 10px;
}
.pkgver {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 12px;
  padding: 6px 0;
  border-top: 1px solid #edf0ea;
  font-size: 14px;
}
.pkgver:first-child {
  border-top: 0;
}
.pkgver > b {
  min-width: 90px;
  font-variant-numeric: tabular-nums;
}
.pkgver .chipline {
  margin: 0;
}
a.tag {
  text-decoration: none;
}
a.tag:hover {
  border-color: #16452f;
}
.pkgline {
  padding: 2px 0 10px;
}
.pkgstate {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 10px 20px;
  border-top: 1px solid #edf0ea;
  font-size: 14px;
}
.pkgstate > b {
  min-width: 90px;
}
.pkgstate.clean span {
  color: #16452f;
}
.pkgstate.warn span {
  color: #8a4b08;
}
.advlist {
  list-style: none;
  margin: 0;
  padding: 0;
}
.advrow {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 9px 20px;
  border-top: 1px solid #edf0ea;
  outline: none;
}
.advrow:focus-visible {
  background: #f1f5ea;
}
.advrow > .score {
  width: 36px;
  min-height: 24px;
  font-size: 12px;
  flex: none;
}
.advrow .grow {
  min-width: 0;
  flex: 1;
}
.advrow b {
  display: block;
  font-weight: 550;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.advrow .tagrow {
  margin-top: 5px;
  align-items: center;
}
/* ADR-0016: a declared Go floor, a lower bound in quiet colours, never a
   risk colour and never presented as the version. */
.atleast {
  color: var(--muted);
}
.declmark {
  display: block;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}
.tag.declared {
  background: #eef2f4;
  border-color: #d3dce1;
  color: #3e5360;
}
.pkgstate.declared span {
  color: var(--muted);
}
.tag.warnish {
  background: #fdf3e0;
  border-color: #f0d9a8;
  color: #7a4709;
}
.pkgnote {
  padding: 0 20px 12px;
  font-size: 12px;
}
.pkgfoot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: baseline;
  padding: 4px 2px 0;
  font-size: 13px;
}
@media (max-width: 720px) {
  .pkgver > b,
  .pkgstate > b {
    min-width: 0;
  }
  .pkgstate {
    flex-direction: column;
    gap: 2px;
  }
  .advrow {
    padding: 9px 14px;
  }
}
.pkgfrows {
  background: transparent;
  padding: 0 0 4px;
}
.pkgfrows .frow {
  padding-left: 20px;
}
.pkgsub {
  padding: 8px 20px 2px;
  font-size: 12px;
  font-weight: 650;
  color: var(--muted);
}

/* The risk count sits right after the component name. */
.sbomtable .cname .riskmark {
  margin-left: 10px;
  vertical-align: baseline;
}

/* Alert threshold dialog (stub: shows the value and the consequence). */
.thrnow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.thrnow b {
  font-size: 30px;
  line-height: 1;
  padding: 10px 14px;
  border-radius: 12px;
  background: #f6ecd2;
  color: #6b4708;
}
.thrnow span {
  font-size: 13.5px;
  color: #46584b;
}
.thrfield {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  max-width: 220px;
}
.thrwarn {
  margin: 14px 0 6px;
  padding: 10px 12px;
  border-radius: 9px;
  background: #fbeee9;
  color: #7d2d1b;
  font-size: 13.5px;
}

/* Risk rows: badge, then name over one summary line on a shared left edge,
   then the version timeline with its caption underneath. Two text sizes. */
.upgrade > summary,
a.upgrade.single {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto auto;
  align-items: center;
  column-gap: 16px;
  row-gap: 10px;
}
.upgrade > summary > .score,
a.upgrade.single > .score {
  grid-column: 1;
  grid-row: 1;
  margin-top: 0;
}
.rowmain {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  display: grid;
  gap: 4px;
}
.rowtitle {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.upgrade .rowtitle .pkg {
  font-size: 15px;
  line-height: 1.35;
  display: inline;
}
.rowsum {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
  font-size: 13.5px;
  color: #56675b;
}
.rowsum > span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.upgrade .rowsum .more {
  flex: none;
  font-size: 13.5px;
  font-weight: 750;
  color: #1c2b22;
  display: inline;
}
.rowsum .fid {
  flex: none;
  color: #7a877d;
  font-size: 12.5px;
}
.rowjump {
  grid-column: 3;
  grid-row: 1;
  display: grid;
  justify-items: start;
  gap: 6px;
}
.rowjump .vgap {
  margin: 0;
  font-size: 12.5px;
}
.upgrade > summary > .resolves,
a.upgrade.single > .resolves {
  grid-column: 4;
  grid-row: 1;
}
.upgrade > summary > .icon,
a.upgrade.single > .icon {
  grid-column: 5;
  grid-row: 1;
  margin-top: 0;
}
/* Risk rows, second pass. Text block first (name, then one summary line,
   full width), then the visual block: timeline on the left, "Resolves" on
   the right. Only a very wide window puts the two blocks side by side. */
.upgrade > summary,
a.upgrade.single {
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  column-gap: 16px;
  row-gap: 6px;
}
.rowmain {
  display: contents;
}
.rowtitle {
  grid-column: 2 / 4;
  grid-row: 1;
  min-width: 0;
}
.rowsum {
  grid-column: 2 / 4;
  grid-row: 2;
}
.rowjump {
  grid-column: 2;
  grid-row: 3;
  margin-top: 6px;
}
.rowjump .vgap {
  font-size: 12px;
  color: #6b796f;
}
.upgrade > summary > .resolves,
a.upgrade.single > .resolves {
  grid-column: 3;
  grid-row: 3;
  display: grid;
  justify-items: end;
  text-align: right;
  align-self: center;
}
.upgrade > summary > .score,
a.upgrade.single > .score {
  grid-column: 1;
  grid-row: 1 / 3;
  align-self: center;
}
.upgrade > summary > .icon,
a.upgrade.single > .icon {
  grid-column: 4;
  grid-row: 1 / 3;
}
@media (min-width: 1500px) {
  .upgrade > summary,
  a.upgrade.single {
    grid-template-columns: auto minmax(0, 1fr) auto auto auto;
    row-gap: 0;
  }
  .rowmain {
    display: grid;
    gap: 4px;
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
  }
  .rowtitle,
  .rowsum {
    grid-column: auto;
    grid-row: auto;
  }
  .rowjump {
    grid-column: 3;
    grid-row: 1;
    margin-top: 0;
  }
  .upgrade > summary > .resolves,
  a.upgrade.single > .resolves {
    grid-column: 4;
    grid-row: 1;
  }
  .upgrade > summary > .score,
  a.upgrade.single > .score,
  .upgrade > summary > .icon,
  a.upgrade.single > .icon {
    grid-row: 1;
  }
  .upgrade > summary > .icon,
  a.upgrade.single > .icon {
    grid-column: 5;
  }
}
@media (max-width: 720px) {
  .upgrade > summary > .resolves,
  a.upgrade.single > .resolves {
    grid-column: 2 / 4;
    grid-row: 4;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-items: start;
    text-align: left;
  }
}

.nexthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.nexthead .button {
  flex: none;
}

/* The row's extras ride on the summary line after "and N more". */
.rowsum .urg,
.rowsum .part {
  flex: none;
  font-size: 12.5px;
  font-weight: 650;
  padding: 1px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.rowsum .urg {
  background: #f6ecd2;
  color: #7a4a08;
}
.rowsum .part {
  background: #eef1ec;
  color: #4d5c51;
}
.sbomtable .thsort {
  white-space: nowrap;
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.sbomtable .thsort small {
  font-weight: 500;
  margin-left: 4px;
  color: #7a887e;
}
.sbomtable .thsort:hover {
  color: var(--ink);
}

/* All sources: one component list across the project, with a Location
   column of source chips. */
.sbomtable.located th:last-child,
.sbomtable.located td:last-child {
  width: 34%;
  white-space: normal;
  text-align: left;
}
.sbomtable .cloc {
  line-height: 1.2;
}
.tag.loc {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0 4px 3px 0;
  padding: 2px 6px;
  font-size: 11.5px;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #34493d;
}
a.tag.loc:hover {
  border-color: #9fb3a2;
  color: #1d3a29;
}
.locfilters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.locfilters select {
  padding: 6px 8px;
  border: 1px solid #c5d0c6;
  border-radius: 7px;
  background: #fff;
  font-size: 12.5px;
  max-width: 190px;
}
.navsrc.all span {
  font-weight: 600;
}
@media (max-width: 720px) {
  .sbomtable.located th:last-child,
  .sbomtable.located td:last-child {
    width: 40%;
  }
}

/* Names and placement (ADR-0013). Tags are quiet; the environment leads,
   internet-facing is the one warm mark. */
.srctitle {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}
.srctitle h2 {
  overflow-wrap: anywhere;
}
.iconbutton.pencil {
  padding: 3px;
  color: #6b7a6f;
}
.iconbutton.pencil .icon {
  width: 14px;
  height: 14px;
}
.iconbutton.pencil:hover {
  color: #1d3a29;
}
.topbar .iconbutton.pencil {
  margin-left: 2px;
  vertical-align: middle;
}
.srcplace {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}
.textlink.quiet {
  font-size: 12px;
  color: #6b7a6f;
}
.ptag {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid #dce1d9;
  background: #f4f6f1;
  color: #4a5b50;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}
.ptag.env.production {
  background: #e4eef8;
  border-color: #c7d9ec;
  color: #1f4466;
}
.ptag.env.staging,
.ptag.env.development {
  background: #f1eefa;
  border-color: #ddd5f0;
  color: #4b3a78;
}
.ptag.exp.internet {
  background: #fdf0dc;
  border-color: #f0d3a6;
  color: #7a4308;
}
.ptag.edge {
  background: #1f4a37;
  border-color: #1f4a37;
  color: #fff;
}
.ptag.behind,
.ptag.covers {
  font-weight: 500;
}
.navsrc .ptag,
.tag.loc .ptag,
.srcmini .ptag {
  padding: 0 4px;
  font-size: 10px;
  line-height: 1.45;
}
.navsrc > span {
  flex: 1 1 auto;
  min-width: 0;
}
.pmark {
  flex: none;
  display: inline-block;
  width: 11px;
  height: 11px;
  margin-left: -4px;
}
.pmark.edge svg {
  width: 11px;
  height: 11px;
  fill: #1f4a37;
  display: block;
}
.pmark.pub {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d98b2b;
}
.srcminis {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: flex-end;
}
.srcmini {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 6px;
  border: 1px dashed #cdd5cb;
  border-radius: 5px;
  font-size: 11.5px;
  color: #48594d;
  white-space: nowrap;
}
.rowtitle .srcminis {
  margin-left: auto;
}
.ptags {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin: 3px 0 2px;
}
.placeform {
  display: grid;
  gap: 12px;
}
.placeform .pname {
  display: grid;
  gap: 4px;
  font-size: 12.5px;
  font-weight: 600;
}
.placeform input[name='name'] {
  padding: 8px 10px;
  border: 1px solid #c5d0c6;
  border-radius: 7px;
  font-size: 14px;
}
.pseg {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.pseg legend {
  padding: 0;
  margin-bottom: 4px;
  font-size: 12.5px;
  font-weight: 600;
}
.pseg .segmented {
  flex-wrap: wrap;
}
.pseg .segmented button {
  padding: 6px 10px;
  font-size: 12.5px;
}
.pbehind {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 13px;
}
.pbehind label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.placeerr {
  margin: 0;
  min-height: 0;
  color: #9a3412;
  font-size: 12.5px;
}
.placeerr:empty {
  display: none;
}

/* Inventory age (ADR-0013 part 3): a chip by the source name, a quiet
   line under it, a dot in the rail. Only the service's states are warm. */
.fresh {
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  background: #e6f1e2;
  color: #24553a;
}
.fresh.ageing {
  background: #f3f1e6;
  color: #6a5a20;
}
.fresh.warn {
  background: #fbe7d3;
  color: #8a3b07;
}
.fresh.muted,
.fresh.none {
  background: #eef1ec;
  color: #5d6c62;
}
.freshline {
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
}
.fdot {
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7fb48e;
}
.fdot.f-ageing {
  background: #c9b25a;
}
.fdot.f-warn {
  background: #d0661b;
}
.fdot.f-muted,
.fdot.f-none {
  background: #b8c2b9;
}
.tag.loc.warn {
  border-color: #e3b48a;
}
.srctitle {
  flex-wrap: wrap;
}

/* Topology (ADR-0013 part 4): an edge is a box holding what sits behind
   it; nesting is the picture. Narrow layouts keep it as an indented list. */
.topo {
  border-bottom: 1px solid var(--border);
  padding-bottom: 14px;
}
.topo .tbody {
  display: grid;
  gap: 10px;
  padding: 0 20px;
}
.tgroup h3 {
  margin: 0 0 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
}
.tgroup ul,
.tinner {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-start;
}
.tnode .thead,
.tedge > .thead {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  padding: 6px 9px;
  border-radius: 7px;
  font-size: 13px;
  color: inherit;
}
.tnode .thead {
  border: 1px solid var(--border);
  background: #fff;
}
.tnode.exposed .thead {
  border-color: #eab676;
  background: #fffaf2;
}
.thead:hover b {
  text-decoration: underline;
}
.thead .icon {
  width: 14px;
  height: 14px;
  color: #1f4a37;
}
.thead .fresh {
  margin-left: 0;
  padding: 1px 6px;
  font-size: 10.5px;
}
.thead small {
  flex-basis: 100%;
  font-size: 11px;
  color: var(--muted);
}
.trisk {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11.5px;
  font-weight: 650;
  color: #6b4207;
}
.tedge {
  border: 1.5px solid #1f4a37;
  border-radius: 9px;
  background: #f3f7f1;
  padding: 0 8px 8px;
  min-width: 180px;
}
.tedge > .thead {
  padding: 6px 2px;
  font-weight: 600;
}
.tedge .tedge {
  background: #fff;
}
.tempty {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}
.tgroup.iso .thead,
.tgroup.none .thead {
  background: transparent;
  border-style: dashed;
}
.tguard {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin-top: 5px;
  font-size: 12px;
  color: var(--muted);
}
.tguard .icon {
  width: 13px;
  height: 13px;
  color: #1f4a37;
}
.tguard .tag.loc {
  margin: 0;
}
@media (max-width: 720px) {
  .topo .tbody {
    padding: 0 12px;
  }
  .tgroup ul,
  .tinner {
    display: block;
  }
  .tedge {
    border: 0;
    border-left: 2px solid #1f4a37;
    border-radius: 0;
    background: transparent;
    padding: 0 0 2px 8px;
    min-width: 0;
    margin: 4px 0;
  }
  .tedge .tedge {
    background: transparent;
  }
  .tnode {
    margin: 4px 0;
  }
  .tnode .thead {
    display: inline-flex;
  }
}

/* Add inventory (ADR-0013 amendment 1): the source-scoped dialog, its
   picker and the Add actions on sources with no inventory yet. */
.button.small {
  padding: 6px 10px;
  gap: 6px;
  font-size: 12.5px;
}
.button.small .icon {
  width: 14px;
}
.rowadd {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  justify-self: start;
  margin: 0 0 4px 22px;
  padding: 2px 8px 2px 5px;
  border: 1px solid #c5d0c6;
  border-radius: 6px;
  background: #fff;
  color: #1f4a37;
  font-size: 12px;
  font-weight: 650;
}
.rowadd:hover {
  background: #eaf1e7;
}
.rowadd .icon {
  width: 13px;
}
.tree .rowadd {
  margin: 4px 0 6px 31px;
}
.scanrow.noinv {
  grid-template-columns: minmax(90px, 1.1fr) minmax(180px, 3fr) auto;
}
.scanrow.noinv:hover {
  background: none;
}
.scanrow.noinv a:hover b {
  text-decoration: underline;
}
@media (max-width: 760px) {
  .scanrow.noinv {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .scanrow.noinv > .button {
    justify-self: start;
  }
}
.source-row.noinv:hover {
  background: none;
}
.source-row.noinv small {
  display: block;
}
.source-row .warm {
  color: #8a4b08;
  font-weight: 600;
}
.sendsto {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  margin: -8px 0 12px;
  font-size: 13.5px;
}
.sendsto .ptags {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
}
.codeblock {
  position: relative;
  margin: 8px 0;
}
.codeblock pre {
  margin: 0;
  padding: 9px 40px 9px 10px;
  background: #f5f7f1;
  border-radius: 6px;
}
details .codeblock pre {
  background: #fff;
}
.codeblock pre.long {
  max-height: 220px;
  overflow: auto;
}
.codeblock pre.oneline {
  word-break: break-all;
}
/* What a command prints, under it: muted, small, never a risk colour. */
.cmdsample {
  margin: -2px 0 10px;
  padding: 2px 0 2px 10px;
  border-left: 2px solid var(--border);
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.45;
  overflow-x: auto;
  white-space: pre;
}
.whereform {
  display: grid;
  gap: 6px;
  margin: 4px 0 8px;
}
.whereform label {
  display: grid;
  gap: 3px;
  font-size: 13.5px;
}
.whereform input {
  font: inherit;
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  max-width: 100%;
}
.whereform .meta {
  margin: 0;
}
.codeblock .copybtn {
  position: absolute;
  top: 5px;
  right: 5px;
  padding: 4px;
}
.codeblock .copybtn .icon {
  width: 15px;
}
.srcpick {
  display: grid;
  gap: 6px;
  margin: 8px 0 4px;
}
.srcpickrow {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: 1px solid #c5d0c6;
  border-radius: 8px;
  background: #fff;
  font-size: 13.5px;
}
.srcpickrow:hover {
  background: #f4f7ee;
}
.srcpickrow .grow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.srcpickrow small {
  font-size: 12px;
  color: #5d6e63;
  text-align: right;
}
.srcpickrow small.warm {
  color: #8a4b08;
  font-weight: 600;
}
.srcpickrow > .icon {
  width: 15px;
  flex: none;
  color: #6a7b70;
}
.aboutform h3 {
  margin: 0;
  font-size: 15px;
}
.aboutform .recipepick {
  margin: 0;
}
.aboutform .recipepick button {
  font-size: 12.5px;
}
.aboutform .pbehind {
  padding-top: 2px;
}

/* Ecosystem marks: small badges in each ecosystem's colour. */
.eco {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  height: 18px;
  min-width: 26px;
  padding: 0 5px;
  margin-right: 8px;
  border-radius: 5px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
  vertical-align: middle;
  color: #fff;
}
/* Red and orange are kept for risk, so the marks stay cool and quiet. */
.eco-go {
  background: #e3f1f6;
  color: #0b5f7a;
  border: 1px solid #b9dbe6;
  font-style: italic;
}
.eco-npm {
  background: #eceff1;
  color: #39464f;
  border: 1px solid #cfd6da;
  text-transform: lowercase;
}
.eco-rs {
  background: #eef0f8;
  color: #3b4a7a;
  border: 1px solid #d3d8ec;
}
.eco-py {
  background: #eaf3f0;
  color: #2c5f52;
  border: 1px solid #c8e0d8;
}
.eco-rb {
  background: #f1eef6;
  color: #4f4470;
  border: 1px solid #ddd6ea;
}
.eco-nu {
  background: #ecf1f7;
  color: #34506e;
  border: 1px solid #d2dce9;
}
.eco-php {
  background: #eff0f3;
  color: #474b5c;
  border: 1px solid #d9dbe3;
}
.eco-jv {
  background: #e9f2f4;
  color: #2f5a63;
  border: 1px solid #cbdfe3;
}
.eco-ub {
  background: #f0eeeb;
  color: #5a4e44;
  border: 1px solid #ddd7d0;
}
.rowtitle .eco {
  margin-right: 0;
}
.slip strong .eco {
  position: relative;
  top: -2px;
}
h1 .eco {
  height: 24px;
  min-width: 34px;
  font-size: 13px;
  border-radius: 6px;
  margin-right: 12px;
  position: relative;
  top: -3px;
}

/* Raw vectors: score, version and vector on one line; where it came from
   on the next. */
.rawrow {
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 5px;
}
.rawtop {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
}
.rawtop b {
  font-size: 16px;
}
.rawver {
  font-size: 13px;
  font-weight: 600;
  color: #46584b;
}
.rawvec {
  font-size: 12.5px;
  color: #5a6a5f;
  overflow-wrap: anywhere;
  background: none;
  padding: 0;
}
.rawsub {
  font-size: 13px;
  color: #627166;
}
.tag.ok {
  background: #e3efdf;
  color: #1f4a31;
  border-color: #bfd3ba;
}

/* On Risk rows the timeline's caption sits to its right, centred on it. */
.rowjump {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 22px;
  justify-items: initial;
}
.rowjump .vgap {
  margin: 0;
  max-width: 220px;
  line-height: 1.35;
}

/* The caption's two statements: joined by a dot inline, one per line on
   Risk rows. */
.vgap > span + span::before {
  content: ' \00b7 ';
}
.rowjump .vgap {
  display: grid;
  gap: 2px;
  max-width: none;
}
.rowjump .vgap > span + span::before {
  content: none;
}

/* Copy for LLM: preview what will be copied, pick the format, then copy
   or download. */
#dialog.wide {
  width: min(860px, calc(100vw - 32px));
  max-width: none;
}
.llmnote {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin: 0 0 12px;
}
.llmscope {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border: 1px solid #c5d0c6;
  border-radius: 999px;
  background: #e2ebdd;
  color: #1d3a29;
  font-size: 12.5px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.llmscope.warm {
  background: #faebc8;
  border-color: #efd9a4;
  color: #82500c;
}
.llmbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}
.llmbar .grow {
  flex: 1;
}
.seg {
  display: inline-flex;
  border: 1px solid #c9d1c7;
  border-radius: 9px;
  overflow: hidden;
}
.segbtn {
  border: 0;
  background: #fff;
  padding: 7px 14px;
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: #46584b;
  cursor: pointer;
}
.segbtn + .segbtn {
  border-left: 1px solid #c9d1c7;
}
.segbtn.on {
  background: #e2ebdd;
  color: #1d3a29;
}
.segbtn span {
  font-variant-numeric: tabular-nums;
  color: #52655c;
  margin-left: 3px;
}
.segbtn.on span {
  color: inherit;
}
.llmpreview {
  margin: 0;
  max-height: min(56vh, 520px);
  overflow: auto;
  padding: 14px 16px;
  border: 1px solid #dfe4dc;
  border-radius: 10px;
  background: #f7f8f4;
  font-size: 12.5px;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  user-select: text;
}


.statlink {
  display: block;
  width: fit-content;
  margin-top: 6px;
  font-size: 13px;
}
.statlink::after {
  content: ' \2192';
}

/* Checkbox questions drawn as the same pills as the single-choice ones. */
.pbehind.pills {
  gap: 6px;
}
.pbehind.pills label {
  position: relative;
  gap: 0;
}
.pbehind.pills input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
.pbehind.pills label span {
  display: inline-block;
  border: 1px solid #c5d0c6;
  border-radius: 7px;
  padding: 6px 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: #475b50;
  background: #fff;
}
.pbehind.pills input:checked + span {
  background: #dce7d7;
  color: #16452f;
}
.pbehind.pills input:focus-visible + span {
  outline: 2px solid #3d6b4d;
  outline-offset: 2px;
}

.llmopt {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 13.5px;
  color: #33453a;
  cursor: pointer;
}

/* Add inventory: the source's name on the About step, and a plain way back. */
.aboutform .pname {
  display: grid;
  gap: 5px;
  font-size: 13px;
  font-weight: 650;
  margin-bottom: 4px;
}
.pnamerow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
}
.aboutform .pname input {
  flex: 1 1 220px;
  max-width: 320px;
  font: inherit;
  font-weight: 500;
  padding: 7px 10px;
  border: 1px solid #c5d0c6;
  border-radius: 8px;
}
.sendsto .addback {
  display: block;
  margin-top: 6px;
}
.pnamerow [hidden] {
  display: none;
}
/* ADR-0015: the token, shown once after Download setup. */
.tokenonce {
  margin: 10px 0;
  padding: 10px 12px;
  border-radius: 6px;
  background: #fbf1dc;
  color: #6b4210;
}
.tokenonce p {
  margin: 0 0 8px;
}
/* ADR-0015: the New project wizard and Add source tiles. */
.wizard {
  display: grid;
  gap: 12px;
}
.wizard p {
  margin: 0;
}
.wizform {
  display: grid;
  gap: 12px;
}
.wizform label {
  display: grid;
  gap: 5px;
  font-size: 13.5px;
  font-weight: 600;
}
.wizform input[type='text'],
.wizform input:not([type]) {
  padding: 8px 10px;
  border: 1px solid #c5d0c6;
  border-radius: 7px;
  background: #fff;
  font-size: 14px;
  min-width: 0;
}
.wizsteps {
  display: flex;
  gap: 6px;
  font-size: 12px;
  color: #5d6e63;
}
.wizsteps span {
  padding: 2px 8px;
  border-radius: 10px;
  background: #eef2ea;
}
.wizsteps span.on {
  background: #dce7d7;
  color: #16452f;
  font-weight: 600;
}
.wiztiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.wiztile {
  display: grid;
  gap: 2px;
  align-content: start;
  text-align: left;
  padding: 10px 12px;
  border: 1px solid #c5d0c6;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  min-height: 62px;
}
.wiztile b {
  font-size: 14px;
}
.wiztile small {
  font-size: 12px;
  color: #5d6e63;
  line-height: 1.35;
}
.wiztile .wizcov {
  color: #8a4b08;
}
.wiztile:hover {
  background: #f4f7ee;
}
.wiztile[aria-pressed='true'] {
  border-color: #3b7a55;
  background: #e8f1e2;
  box-shadow: inset 0 0 0 1px #3b7a55;
}
.wizlist,
.wizreview,
.wizdone {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.wizrow {
  display: grid;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid #d9dfd7;
  border-radius: 8px;
  background: #fbfcf9;
}
.wizrow.failed,
.wizreview li.failed {
  border-color: #d9b37a;
  background: #fbf1dc;
}
.wizline {
  display: flex;
  gap: 4px;
  align-items: center;
}
.wizline input {
  flex: 1;
}
.wizmeta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
}
.wizform .wizask {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 400;
  font-size: 13px;
}
.wizcover {
  font-size: 12px;
}
.wizerror {
  color: #8a4b08;
  font-size: 13px;
  font-weight: 600;
}
.wizreview li,
.wizdone li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid #d9dfd7;
  border-radius: 8px;
  font-size: 13.5px;
}
.wizreview .grow,
.wizdone .grow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.wizreview small {
  font-size: 12px;
  color: #5d6e63;
  text-align: right;
}
.wiznext {
  margin-top: 8px;
}
@media (max-width: 720px) {
  .wiztiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 370px) {
  .wiztiles {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Package page: the source is the answer to "where"; the timeline carries the version. */
.pkgver .pkgin { color: var(--muted, #6b7770); font-size: 13px; }
.pkgver .pkgsrc { font-size: 17px; font-weight: 700; color: inherit; text-decoration: none; border-bottom: 2px solid currentColor; line-height: 1.2; }
.pkgver .pkgsrc:hover { opacity: 0.75; }
.pkgver { gap: 8px; align-items: baseline; }

/* Advisory rows: the date sits at the right edge. */
.advrow .advdate { margin-left: auto; padding-left: 12px; white-space: nowrap; align-self: center; font-size: 12px; }
/* Activity: current gaps as a "Now" group in the feed's own style. */
.post.now .quote .note { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; line-height: 1.4; }

/* A source with no inventory: one centred empty state, not empty sections. */
.noinv { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 44px 24px 52px; border-top: 1px solid #edf0ea; }
.noinv h2 { margin: 6px 0 0; font-size: 19px; }
.noinv p { margin: 0 0 10px; max-width: 46ch; color: var(--muted); font-size: 14px; line-height: 1.5; }
/* Rail: "Add" under a source is a quiet row; its plus sits under the dot. */
.navtree .rowadd {
  margin: 0;
  padding: 3px 9px 5px 5.5px;
  gap: 4.5px;
  border: 0;
  border-radius: 7px;
  background: none;
  font-size: 13px;
  font-weight: 600;
  color: #46584b;
  justify-self: stretch;
}
.navtree .rowadd:hover {
  background: #eaf1e7;
}

/* Wizard steps: a numbered line of progress, not pills that look like tabs. */
.wizsteps { display: flex; align-items: center; gap: 8px; }
.wizsteps span, .wizsteps span.on { padding: 0; border: 0; border-radius: 0; background: none; font-size: 13px; font-weight: 500; color: #7b887f; }
.wizsteps span.on { font-weight: 700; color: var(--ink); }
.wizsteps span.done { color: var(--muted); }
.wizsteps i { font-style: normal; color: #a9b4ab; }

/* Refresh dialog: setting collection up again is a separate, quieter block. */
.refreshother { margin-top: 18px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--paper); }
.refreshother p { margin: 0 0 10px; font-size: 13.5px; line-height: 1.5; }
.refreshother .actions { margin: 0; align-items: center; gap: 14px; }

/* Titles built from names can be long: let them wrap anywhere. */
.pagehead h1 { overflow-wrap: anywhere; }

/* Finding page: the timeline and its caption sit as they do on Risk rows. */
.nextstep .rowjump { margin-top: 12px; }

/* Package page: the open risks are the tab panel of the version stop
   selected above. One panel; the selected stop is a tab joined to the box
   that lists its risks. Quiet green, never a risk colour. */
.pkgtabs .pkgwhere { padding: 2px 20px 0; }
.pkgtabs .pkgline { display: flex; align-items: center; gap: 4px 14px; padding: 0; margin: 12px 0 14px; }
.pkgtabs .pkgline .vline { flex: none; align-self: flex-end; }
.pkgtabs .pkgline .vgap { margin-left: 0; min-width: 0; }
.pkgpane { margin: 0 8px 8px; border-top: 1px solid #edf0ea; }
.pkgpane > .sectionhead { padding: 14px 12px 12px; }
.pkgpane > .sectionhead h2 { font-size: 17px; }
.pkgpane .advrow, .pkgpane .pkgstate, .pkgpane .stopnote, .pkgpane .pkgsub, .pkgpane .pkgnote { padding-left: 12px; padding-right: 12px; }
.pkgtabs.tabbed .pkgpane { border: 1px solid #a9c5a8; border-radius: 10px; background: #f6faf3; }
/* The stop's highlight is drawn behind it, larger than the stop, so the
   label and version get room without moving the dots off the track. */
.vstop.vpick { padding: 0; isolation: isolate; }
.vstop.vpick small, .vstop.vpick b, .jump .vstop.vpick b { padding: 0 12px; }
.vstop.vpick::before { content: ''; position: absolute; inset: -9px 0 -8px; border-radius: 9px; z-index: -1; }
.vstop.vpick:hover, .vstop.vpick[aria-pressed='true'] { background: none; box-shadow: none; }
.vstop.vpick:hover::before { background: #f1f5ea; }
.vstop.vpick[aria-pressed='true']::before { background: #f6faf3; border: 1px solid #a9c5a8; }
.vstop.vpick:focus-visible { outline: 0; }
.vstop.vpick:focus-visible::before { outline: 2px solid #174735; outline-offset: 1px; }
/* One held version: the selected stop reaches down into the box, open at
   the bottom, and covers the box's top edge beneath it. */
.pkgtabs.single .vstop.vpick[aria-pressed='true']::before { bottom: -15px; border-bottom: 0; border-radius: 9px 9px 0 0; }
/* The distance caption wraps inside its own column so the stops stay on
   the box's top edge; on a narrow screen it moves above the stops. */
.pkgtabs .pkgline .vgap { flex: 0 1 auto; white-space: normal; line-height: 1.35; align-self: center; }
@media (max-width: 600px) {
  .pkgtabs .pkgline { flex-direction: column-reverse; align-items: flex-start; gap: 6px; }
  .pkgtabs .pkgline .vline { align-self: flex-start; }
  .pkgtabs .pkgline .vgap { align-self: flex-start; }
}

/* Package page: the heading asks "Where in <project>" and each source name
   answers it. Wide: the name sits left of its stops, centred on the tab's
   full height. Narrow: the name sits just above the stops. */
.pkgtabs > .sectionhead { padding-bottom: 6px; }
.pkgtabs .pkgrow { border-top: 1px solid #edf0ea; }
.pkgtabs .pkgrow:first-child { border-top: 0; }
.pkgtabs .pkgver, .pkgtabs .pkgver:first-child { border-top: 0; padding: 8px 0 0; }
.pkgtabs .pkgline { margin-top: 14px; }
@media (min-width: 601px) {
  .pkgtabs .pkgwhere { display: grid; grid-template-columns: fit-content(40%) minmax(0, 1fr); column-gap: 20px; }
  .pkgtabs .pkgrow { display: grid; grid-template-columns: subgrid; grid-column: 1 / -1; align-items: center; }
  .pkgtabs .pkgver { padding: 0; position: relative; top: -2px; }
  .pkgtabs .pkgver:only-child { padding: 12px 0; top: 0; grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .pkgtabs .pkgline { gap: 16px; margin-top: 8px; }
}
/* The first landing of an owner with no project (ADR-0015 amendment 1). */
.railempty {
  margin: 4px 0 0;
  padding: 9px 12px;
  border: 1px dashed #c9d3c6;
  border-radius: 7px;
  color: #627166;
  font-size: 13px;
}
.landing {
  max-width: 760px;
  margin: 4vh 0 0;
}
.landhead h1 {
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.06;
  letter-spacing: -0.045em;
  font-weight: 610;
  margin: 0;
}
.landhead p {
  color: var(--muted);
  font-size: 15px;
  max-width: 560px;
  margin: 12px 0 22px;
}
.landsteps {
  list-style: none;
  margin: 34px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  overflow: hidden;
}
.landsteps li {
  display: flex;
  gap: 12px;
  padding: 18px 18px 20px;
}
.landsteps li + li {
  border-left: 1px solid var(--border);
}
.landsteps b {
  display: block;
  font-size: 14px;
  margin: 2px 0 4px;
}
.landsteps small {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.landnum {
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #dce7d7;
  color: #16452f;
  font-size: 13px;
  font-weight: 700;
}
.landsteps li:first-child .landnum {
  background: var(--forest);
  color: #fff;
}
.landnote {
  color: var(--muted);
  font-size: 13px;
  margin: 14px 0 0;
}
/* S6: no alert recipient. A setup fact, not a risk: neither red nor amber. */
.recipientnote {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 16px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f4f6ef;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}
.recipientnote .icon {
  margin-top: 1px;
  color: var(--forest);
}
.wizard .recipientnote {
  margin: 12px 0 0;
  font-size: 13px;
}
@media (max-width: 720px) {
  .railempty {
    display: none;
  }
  .landing {
    margin-top: 0;
  }
  .landhead h1 {
    font-size: 30px;
  }
  .landhead p {
    font-size: 14px;
  }
  .landsteps {
    grid-template-columns: 1fr;
    margin-top: 24px;
  }
  .landsteps li + li {
    border-left: 0;
    border-top: 1px solid var(--border);
  }
  .landsteps li {
    padding: 14px;
  }
}

/* ADR-0019: software waiting for advisory data. Amber, as a wait: red
   and orange stay for risk. One sentence beside a "Scan in progress" chip,
   wrapping under it at narrow widths. */
.waitnote {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  border: 1px solid #ecd6a8;
  background: #fbf1dc;
  color: #5e3a0e;
  border-radius: 8px;
  margin: 0 0 16px;
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.45;
}
.waitnote p {
  margin: 0;
  flex: 1 1 280px;
}
.waitchip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  font-size: 12px;
  font-weight: 600;
  color: #6b3f0b;
  background: #f6e2b8;
  border: 1px solid #e6c88a;
  border-radius: 999px;
  padding: 2px 9px;
  white-space: nowrap;
}
.waitchip::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
}
.waitline {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.45;
  color: #5e3a0e;
}
.waitline .waitchip {
  margin-right: 8px;
}
.waitdot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  margin-right: 8px;
  vertical-align: 1px;
}
.annotation + .waitnote,
.mapdetail > .waitnote {
  margin-top: 12px;
}

/* Pending initial/rescan analysis banner and S2 morph four-box spinner (ADR-0029). */
.spinner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  line-height: 0;
  vertical-align: middle;
}
.spinner.sm {
  vertical-align: -2px;
}
.spinner.xs {
  vertical-align: -1px;
}
.scanpending {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  border: 1px solid #cddbce;
  background: #f2f6f0;
  color: var(--ink);
  border-radius: 9px;
  padding: 13px 16px;
  margin: 0 0 16px;
}
.health .scanpending {
  margin: 0;
}
.mapdetail > .scanpending {
  margin: 14px 20px 0;
}
.scanpending > .spinner {
  margin-top: 0;
}
.scanpending.paused {
  border-color: #ecd6a8;
  background: #fbf1dc;
  color: #5e3a0e;
  align-items: center;
}
.scanpending-body {
  flex: 1 1 240px;
  min-width: 0;
}
.scanpending-title {
  margin: 0 0 3px;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.4;
}
.scanpending .healthline {
  margin: 0 0 4px;
}
.scanpending-sub {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--muted);
}
.scanpending.paused .scanpending-sub {
  color: #6b4412;
}
.confirm .scanning b {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--forest);
}

/* ADR-0020: terminal browser pairing card */
.paircard {
  max-width: 540px;
}
.paircode {
  display: inline-block;
  margin: 10px 0 18px;
  padding: 12px 22px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #f5f7f3;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--ink);
}
.pairform {
  display: grid;
  gap: 14px;
}
.pairform label {
  display: grid;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.pairform select,
.pairform input {
  font: inherit;
  font-weight: 400;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
}
.pairstatus {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.5;
}
.pairstatus.ok {
  background: #edf6f0;
  border: 1px solid #b9dec6;
  color: #1c5337;
}
.pairstatus.err {
  background: #fdeeed;
  border: 1px solid #f2c2be;
  color: #8f1d18;
}

/* Package page: several sources of one version are a left-aligned list, one
   per line beside the stops on a wide screen; a wrapping row above them on a
   narrow one. */
.pkgtabs .pkgver { gap: 6px 14px; }
@media (min-width: 601px) {
  .pkgtabs .pkgver { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
  .pkgtabs .pkgver .pkgsrc { overflow-wrap: anywhere; }
  /* The stops sit at the bottom of the row so the selected tab still meets
     the box below when the list of names is taller than the stops. */
  .pkgtabs .pkgrow { align-items: end; }
  .pkgtabs .pkgver { align-self: center; margin: 10px 0; top: 0; }
}

/* Inventoried sources: each source a toggle for the whole Risk overview
   (founder request, 1 December 2026). Green is "on"; the map stays the
   chevron's link, so a row is never both a toggle and a link. */
.scanhead:has(.scanstate, [data-action='risk-src-all']) {
  justify-content: flex-start;
  gap: 14px;
}
.scanhead:has(.scanstate, [data-action='risk-src-all']) h2 {
  margin-right: auto;
}
.scanhead .scanstate {
  font-size: 12.5px;
  font-weight: 600;
  color: #255f47;
}
.scanrow.pick {
  grid-template-columns: minmax(130px, 1.3fr) minmax(100px, 0.9fr) minmax(170px, 1.4fr) minmax(190px, 1.6fr) 28px;
  padding-left: 12px;
}
.scanrow.pick:hover {
  background: none;
}
.scanrow.noinv.pick {
  grid-template-columns: minmax(130px, 1.3fr) minmax(180px, 3fr) auto 28px;
}
.scanrow.pick.off > :not(.srcpick):not(.scanlink) {
  opacity: 0.55;
}
.srcpick {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}
.srctoggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  border: 0;
  background: transparent;
  border-radius: 6px;
  padding: 5px 8px;
  text-align: left;
  color: inherit;
}
.srctoggle:hover {
  background: #eef3ea;
}
.srctoggle .tick {
  flex: none;
  position: relative;
  width: 17px;
  height: 17px;
  border-radius: 5px;
  border: 1.5px solid #9aab9f;
  background: #fff;
}
.srctoggle[aria-pressed='true'] .tick {
  background: #2c7a4f;
  border-color: #2c7a4f;
}
.srctoggle[aria-pressed='true'] .tick::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 1.5px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.srctoggle[aria-pressed='false'] b {
  color: #6a7b70;
  font-weight: 600;
}
.srctoggle[aria-disabled='true'] {
  cursor: default;
}
.srctoggle[aria-disabled='true']:hover {
  background: transparent;
}
/* "only": one click to see a single source, shown on hover or focus. */
.srconly {
  flex: none;
  border: 1px solid #c5d0c6;
  background: #fff;
  border-radius: 5px;
  padding: 1px 7px;
  font-size: 12px;
  font-weight: 600;
  color: #255f47;
  opacity: 0;
}
.scanrow.pick:hover .srconly,
.srconly:focus-visible {
  opacity: 1;
}
@media (hover: none) {
  .srconly {
    opacity: 1;
  }
}
.scanlink {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  color: #6a7b70;
}
.scanlink:hover {
  background: #eef3ea;
  color: #1c2b22;
}
.scanlink .icon {
  width: 15px;
}
/* A filtered view is never the whole picture. */
.selnote {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin: 0 0 12px;
  padding: 9px 14px;
  border: 1px solid #b9d3c1;
  background: #eef6ef;
  border-radius: 8px;
  font-size: 13px;
  color: #2f4a3b;
}
.selchip {
  flex: none;
  font-weight: 650;
  color: #fff;
  background: #2c7a4f;
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 12px;
}
.selwhat {
  flex: 1 1 260px;
}
.metrics.filtered {
  border-color: #b9d3c1;
}
.stat-value .unit {
  font-size: 14px;
  letter-spacing: 0;
  font-weight: 600;
  color: #52655c;
  margin-left: 6px;
}
/* A package installed at more than one version: each row names its own. */
.pkgver {
  font-size: 13px;
  font-weight: 600;
  color: #2f4a3b;
  background: #eef2ec;
  border-radius: 4px;
  padding: 1px 6px;
  margin-left: 6px;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 760px) {
  .scanrow.pick,
  .scanrow.noinv.pick {
    grid-template-columns: 1fr 28px;
    gap: 2px 8px;
  }
  .scanrow.pick > :not(.scanlink) {
    grid-column: 1;
  }
  .scanrow.pick > span:not(.srcpick) {
    padding-left: 34px;
  }
  .scanrow.pick > .scanlink {
    grid-column: 2;
    grid-row: 1;
  }
  .scanrow.noinv.pick > .button {
    justify-self: start;
    margin-left: 34px;
  }
  .scanhead .scanstate {
    display: none;
  }
}

/* ADR-0015 amendment 2: remove and restore a source. Neutral throughout:
   red and orange stay for risk. */
#notice.actionable {
  pointer-events: auto;
}
#notice .noticeact {
  margin-left: 8px;
  border: 0;
  background: transparent;
  color: #d8eccb;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  padding: 0;
  cursor: pointer;
}
.srcplace .srcremove {
  margin-left: auto;
}
.removeform .removewhat {
  margin: 0 0 14px;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.5;
}
.removeform label {
  display: grid;
  gap: 6px;
  font-size: 13.5px;
}
.removeform input {
  font: inherit;
  padding: 7px 9px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  max-width: 100%;
}
.removedrow {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-top: 1px solid #e3e7e1;
}
.removedrow small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}
.removedlink {
  display: block;
  padding: 8px 12px;
  font-size: 12px;
  color: #6b7a6f;
}
.removedsources {
  margin-top: 18px;
}
@media (max-width: 720px) {
  .removedrow {
    flex-wrap: wrap;
    padding: 12px 16px;
  }
  .srcplace .srcremove {
    margin-left: 0;
  }
}

/* "See why": what a source did not send, and the command that names it. */
.notsent {
  padding: 4px 20px 18px;
  line-height: 1.5;
}
.notsent ul {
  margin: 0 0 10px;
  padding-left: 18px;
}
.notsent li + li {
  margin-top: 6px;
}
.notsent p {
  margin: 0 0 10px;
  color: #4d5a50;
}
.cmdline {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f4f6ef;
  border-radius: 8px;
  padding: 8px 10px 8px 14px;
}
.cmdline code {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 13px;
}
#why-not-sent,
#why-not-assessed {
  scroll-margin-top: 16px;
}

/* ADR-0025: Read-only live demo banner */
.demobanner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 9px 24px;
  background: #174735;
  color: #f4f7f2;
  font-size: 13px;
  line-height: 1.4;
}
.demobanner strong {
  color: #d7f381;
  font-weight: 650;
}
.demobanner-cta {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: 6px;
  background: #d7f381;
  color: #102a20;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}
.demobanner-cta:hover {
  background: #e3f9a0;
}

/* ADR-0023: Production federated-only sign-in & help screens (zero inline styles, CSP self). */
#shell > .pkauth-shell,
.pkauth-shell {
  grid-column: 1 / -1;
  justify-self: center;
  align-self: start;
  max-width: 500px;
  width: min(500px, calc(100% - 2rem));
  margin: 2.5rem auto 4rem;
}
#shell > .pkauth-shell.is-wide,
.pkauth-shell.is-wide {
  max-width: 660px;
  width: min(660px, calc(100% - 2rem));
}
.pkauth-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.45rem;
}
.pkauth-wordmark {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-weight: 760;
  font-size: clamp(2rem, 4.5vw, 2.5rem);
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
}
.pkauth-mark {
  display: block;
  width: 72px;
  height: 75px;
  flex: none;
}
.pkauth-card {
  background: #ffffff;
  border: 1px solid #d9dfd7;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 8px 26px rgba(28, 48, 43, 0.04);
}
.pkauth-card h1 {
  margin: 0 0 0.35rem;
  font-size: 1.38rem;
  letter-spacing: -0.025em;
  line-height: 1.25;
  color: var(--ink);
}
.pkauth-card h2 {
  margin: 1rem 0 0.5rem;
  font-size: 1.05rem;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.pkauth-sub {
  margin: 0 0 1.15rem;
  color: #52655c;
  font-size: 0.9rem;
  line-height: 1.5;
}
.pkauth-deeplink {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  background: #eef1e9;
  border: 1px solid #d9dfd7;
  margin-bottom: 1rem;
  font-size: 0.82rem;
  color: var(--ink);
}
.pkauth-deeplink strong {
  display: block;
  font-size: 0.83rem;
}
.pkauth-deeplink .pkauth-ic {
  margin-top: 2px;
  color: #174735;
}
.pkauth-ic {
  width: 16px;
  height: 16px;
  flex: none;
  display: inline-block;
  vertical-align: middle;
}
.pkauth-callout {
  border-radius: 9px;
  padding: 0.72rem 0.88rem;
  font-size: 0.84rem;
  line-height: 1.48;
  border: 1px solid #d9dfd7;
  background: #eef1e9;
  color: var(--ink);
  margin-bottom: 0.95rem;
}
.pkauth-callout strong {
  display: block;
  margin-bottom: 0.15rem;
}
.pkauth-callout.is-ok {
  background: #edf7f1;
  border-color: #b8dac6;
  color: #174735;
}
.pkauth-callout.is-err {
  background: #fdf0f0;
  border-color: #efc6c6;
  color: #9e2626;
}
.pkauth-stack {
  display: grid;
  gap: 0.68rem;
  margin: 1rem 0 0.9rem;
}
.pkauth-idp {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  border: 1px solid #d9dfd7;
  background: #ffffff;
  color: var(--ink);
  text-decoration: none;
  text-align: left;
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease, transform 100ms ease, box-shadow 140ms ease;
}
.pkauth-idp:hover {
  border-color: #174735;
  background: #fafcf8;
  box-shadow: 0 4px 14px rgba(23, 71, 53, 0.07);
  transform: translateY(-1px);
  text-decoration: none;
}
.pkauth-idp.is-github {
  background: #161b22;
  border-color: #161b22;
  color: #ffffff;
}
.pkauth-idp.is-github:hover {
  background: #222933;
  border-color: #222933;
  box-shadow: 0 6px 16px rgba(22, 27, 34, 0.18);
}
.pkauth-idp.is-github .pkauth-idp-sub {
  color: #aeb8c4;
}
.pkauth-idp.is-zero {
  border-style: dashed;
  border-color: #9bb0a5;
  background: #f9faf7;
}
.pkauth-idp.is-zero:hover {
  border-style: solid;
  border-color: #174735;
  background: #f2f6f0;
}
.pkauth-logo {
  width: 22px;
  height: 22px;
  flex: none;
  display: inline-block;
}
.pkauth-idp-body {
  flex: 1;
  min-width: 0;
}
.pkauth-idp-title {
  display: block;
  font-weight: 650;
  font-size: 0.95rem;
  line-height: 1.2;
}
.pkauth-idp-sub {
  display: block;
  font-size: 0.78rem;
  color: #52655c;
  margin-top: 0.18rem;
}
.pkauth-idp-arrow {
  font-size: 0.95rem;
  opacity: 0.55;
}
.pkauth-foot {
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid #d9dfd7;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.65rem;
  font-size: 0.84rem;
}
.pkauth-link {
  background: none;
  border: 0;
  padding: 0;
  color: #174735;
  font-weight: 600;
  font-size: 0.84rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.pkauth-link:hover {
  color: #0f221b;
}
.pkauth-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  padding: 0.44rem 0.9rem;
  border-radius: 999px;
  border: 1px solid #d9dfd7;
  background: #eef1e9;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 620;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}
.pkauth-back:hover {
  background: #ffffff;
  border-color: #174735;
  color: #174735;
}
.pkauth-choices {
  display: grid;
  gap: 0.6rem;
  margin: 0.65rem 0 0.25rem;
}
.pkauth-choice {
  width: 100%;
  display: block;
  text-align: left;
  padding: 0.78rem 0.92rem;
  border-radius: 9px;
  border: 1px solid #d9dfd7;
  background: #fcfdf9;
  color: var(--ink);
  font-size: 0.85rem;
  line-height: 1.45;
}
.pkauth-choice strong {
  display: block;
  margin-bottom: 0.16rem;
  font-size: 0.88rem;
}
.pkauth-choice span {
  display: block;
  color: #52655c;
  font-size: 0.82rem;
}
button.pkauth-choice {
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease;
}
button.pkauth-choice:hover {
  border-color: #174735;
  background: #edf7f1;
}
.pkauth-items {
  display: grid;
  gap: 0.55rem;
  margin: 0 0 1rem;
}
.pkauth-item {
  padding: 0.72rem 0.9rem;
  border-radius: 9px;
  border: 1px solid #d9dfd7;
  background: #fcfdf9;
}
.pkauth-item strong {
  display: block;
  font-size: 0.88rem;
  margin-bottom: 0.16rem;
}
.pkauth-item small {
  display: block;
  color: #52655c;
  font-size: 0.82rem;
  line-height: 1.45;
}
.pkauth-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.62rem 1.05rem;
  border-radius: 8px;
  border: 1px solid #174735;
  background: #174735;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
}
.pkauth-cta:hover {
  background: #12392b;
}

/* Zero-identity sign-in, CLI TOTP pairing, and retention status banner (ADR-0027). */
#shell > .auth-shell,
.auth-shell {
  grid-column: 1 / -1;
  justify-self: center;
  align-self: start;
  max-width: 500px;
  width: min(500px, calc(100% - 2rem));
  margin: 2.25rem auto 4rem;
}
.auth-brand.is-centered {
  display: flex;
  justify-content: center;
  margin-bottom: 1.45rem;
}
.wordmark.is-auth {
  font-size: 1.42rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
}
.wordmark.is-auth .pkauth-mark {
  width: 64px;
  height: 67px;
}
.auth-shell .card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 8px 26px rgba(28, 48, 43, 0.04);
}
.auth-shell .card h1 {
  margin: 0 0 0.35rem;
  font-size: 1.32rem;
  letter-spacing: -0.025em;
  line-height: 1.25;
}
.auth-sub {
  margin: 0 0 1.15rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.idp-stack {
  display: grid;
  gap: 0.68rem;
  margin: 1rem 0 0.3rem;
}
.idp-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.78rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  text-align: left;
  transition: border-color 140ms ease, background 140ms ease, transform 100ms ease, box-shadow 140ms ease;
}
.idp-btn:hover {
  border-color: var(--forest);
  background: #fafcf8;
  box-shadow: 0 4px 14px rgba(23, 71, 53, 0.07);
  transform: translateY(-1px);
}
.idp-btn.is-zero {
  border-style: dashed;
  border-color: #9bb0a5;
  background: #f9faf7;
}
.idp-btn.is-zero:hover {
  border-style: solid;
  border-color: var(--forest);
  background: #f2f6f0;
}
.idp-logo {
  width: 22px;
  height: 22px;
  flex: none;
  color: var(--forest);
}
.idp-logo-lg {
  width: 28px;
  height: 28px;
  flex: none;
  color: var(--forest);
}
.idp-btn-body {
  flex: 1;
  min-width: 0;
}
.idp-btn-title {
  display: block;
  font-weight: 650;
  font-size: 0.95rem;
  line-height: 1.2;
}
.idp-btn-sub {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.16rem;
  line-height: 1.38;
}
.idp-arrow {
  font-size: 0.95rem;
  opacity: 0.55;
}
.idp-divider {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--muted);
  font-size: 0.76rem;
  margin: 0.2rem 0;
}
.idp-divider::before,
.idp-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.step-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  background: #f0f3ec;
  border: 1px solid var(--border);
  font-size: 0.72rem;
  font-weight: 660;
  color: var(--forest);
  margin-bottom: 0.7rem;
}
.idp-screen-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 0.95rem;
  margin-bottom: 0.95rem;
  border-bottom: 1px solid var(--border);
}
.idp-screen-head h1 {
  margin: 0;
  font-size: 1.2rem;
}
.idp-screen-sub {
  margin: 0.18rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}
.auth-field {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.9rem;
}
.auth-field label {
  font-size: 0.84rem;
  font-weight: 620;
}
.auth-field input {
  width: 100%;
  padding: 0.62rem 0.78rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  font-size: 0.92rem;
}
.auth-field input:focus {
  border-color: var(--forest);
}
.auth-row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.auth-full {
  width: 100%;
  justify-content: center;
}
.totp-input {
  font-family: var(--mono);
  font-size: 1.45rem !important;
  letter-spacing: 0.32em;
  text-align: center;
  font-weight: 680;
  font-variant-numeric: tabular-nums;
}
.zero-countdown {
  color: var(--muted);
  font-size: 0.76rem;
}
.zero-key-row {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}
.zero-key-row input {
  flex: 1;
  min-width: 0;
}
.qr-enroll-grid {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 0.9rem;
  align-items: center;
  padding: 0.85rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fcfdf9;
  margin-bottom: 0.95rem;
}
.qr-box {
  width: 128px;
  height: 128px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px;
  display: grid;
  place-items: center;
}
.qr-title {
  display: block;
  font-size: 0.86rem;
  margin-bottom: 0.35rem;
}
.zero-secret-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.4rem;
}
.zero-secret-code {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
  background: #f0f3ec;
  padding: 0.4rem 0.55rem;
  border-radius: 6px;
  border: 1px solid var(--border);
}
.qr-note {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.4;
}
.callout {
  border-radius: 9px;
  padding: 0.72rem 0.88rem;
  font-size: 0.83rem;
  line-height: 1.45;
  border: 1px solid var(--border);
  background: #f4f6ef;
  margin-bottom: 0.9rem;
}
.callout strong {
  display: block;
  margin-bottom: 0.15rem;
}
.callout.is-warn {
  background: #fdf6e9;
  border-color: #ead3a4;
  color: var(--amber);
}
.callout.is-err {
  background: #fdeeed;
  border-color: #ebc2bc;
  color: #96281b;
}
.callout.zero-cli-hint {
  margin-top: 1rem;
  margin-bottom: 0;
}
.callout.zero-cli-hint .zero-secret-row {
  margin-top: 0.5rem;
}
.auth-foot-links {
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.65rem;
  font-size: 0.84rem;
}
.zero-recovery-note {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.45;
  max-width: 42ch;
}
.back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  padding: 0.44rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #f4f6ef;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 620;
}
.back-btn:hover {
  background: var(--surface);
  border-color: var(--forest);
  color: var(--forest);
}
.back-btn .icon {
  width: 15px;
  height: 15px;
}
.zero-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.58rem 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-size: 0.82rem;
  line-height: 1.4;
  margin-bottom: 1rem;
}
.zero-rotate-btn {
  flex-shrink: 0;
  padding: 0.32rem 0.7rem;
  font-size: 0.78rem;
}
.zero-banner.is-launch,
.zero-banner.is-ok {
  background: #eff7ec;
  border-color: #c5dfc0;
  color: var(--forest);
}
.zero-banner.is-warn {
  background: #fdf6e9;
  border-color: #ead3a4;
  color: var(--amber);
}
@media (max-width: 520px) {
  .qr-enroll-grid {
    grid-template-columns: 1fr;
  }
  .qr-box {
    margin: 0 auto;
  }
}

/* Telemetry boot screen (V3 · Orbit S1 default, auth-sibling card, CSP self) */
@keyframes pkboot-pulse {
  0%,
  100% {
    opacity: 0.4;
    transform: scale(0.92);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes pkboot-fade {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
#shell > .pkboot,
.pkboot {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--paper);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 18px 8vh;
  animation: pkboot-fade 180ms ease-out;
}
.pkboot-shell {
  width: 100%;
  max-width: 400px;
}
.pkboot-brand {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}
.pkboot-wordmark {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  font-size: 1.65rem;
  font-weight: 760;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
}
.pkboot-wordmark .pkauth-mark {
  width: 54px;
  height: 56px;
}
.pkboot-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 10px 28px rgba(28, 48, 43, 0.05);
}
.pkboot-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid #eef1e9;
}
.pkboot-head-spin {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--paper);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.pkboot-head-text {
  min-width: 0;
}
.pkboot-head-text h1 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 680;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--ink);
}
.pkboot-head-text p {
  margin: 3px 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.4;
}
.pkboot-steps {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pkboot-step {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--muted);
}
.pkboot-step-left {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.pkboot-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #cbd3ca;
  background: var(--paper);
  font-size: 10px;
  font-weight: 700;
}
.pkboot-step.is-active {
  color: var(--ink);
  font-weight: 560;
}
.pkboot-step.is-active .pkboot-dot {
  border-color: var(--forest);
  background: #e7f3ec;
}
.pkboot-step.is-active .pkboot-dot::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--forest);
  animation: pkboot-pulse 1.2s ease-in-out infinite;
}
.pkboot-step.is-done {
  color: var(--ink);
}
.pkboot-step.is-done .pkboot-dot {
  border-color: var(--forest);
  background: var(--forest);
  color: var(--lime);
}
.pkboot-step.is-err {
  color: #9e2626;
  font-weight: 560;
}
.pkboot-step.is-err .pkboot-dot {
  border-color: #9e2626;
  background: #fdeeed;
  color: #9e2626;
}
.pkboot-step-meta {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted);
  white-space: nowrap;
}
.pkboot-step.is-active .pkboot-step-meta {
  color: var(--forest);
}
.pkboot-step.is-err .pkboot-step-meta {
  color: #9e2626;
}
.pkboot-actions:empty {
  display: none;
}
.pkboot-actions {
  margin-top: 16px;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.pkboot-foot {
  margin-top: 14px;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted);
}
@media (prefers-reduced-motion: reduce) {
  .pkboot,
  .pkboot-step.is-active .pkboot-dot::after {
    animation: none;
  }
}
