/* Provenance — software supply-chain security desk. Scoped: root rules on .uwapp-root.uwapp-provenance (the body
   carries the class too), everything else under .pv-app. Indigo seal + teal; severity colours meet 3:1 (marks) and
   4.5:1 (text on their tints) in both themes. */
.uwapp-root.uwapp-provenance {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.pv-app {
  --pv-accent: #4338ca;
  --pv-accent-2: #0f766e;
  --pv-accent-ink: #3730a3;
  --pv-accent-soft: #e0e7ff;
  --pv-on-accent: #ffffff;
  --pv-bg: #f3f4f8;
  --pv-panel: #ffffff;
  --pv-panel-2: #f8fafc;
  --pv-ink: #111827;
  --pv-muted: #4b5563;
  --pv-line: #e3e6ee;
  --pv-line-2: #c9cfdb;
  --pv-control: #6b7280;
  --pv-focus: #b45309;
  --pv-shadow: 0 10px 30px rgba(17, 24, 39, 0.16);
  --pv-crit: #b91c1c;
  --pv-crit-bg: #fee2e2;
  --pv-high: #9a3412;
  --pv-high-bg: #ffedd5;
  --pv-med: #854d0e;
  --pv-med-bg: #fef3c7;
  --pv-low: #1e40af;
  --pv-low-bg: #dbeafe;
  --pv-unr: #5b21b6;
  --pv-unr-bg: #ede9fe;
  --pv-info: #374151;
  --pv-info-bg: #e5e7eb;
  --pv-good: #166534;
  --pv-good-bg: #dcfce7;
  --pv-warn: #854d0e;
  --pv-warn-bg: #fef3c7;
  --pv-bad: #b91c1c;
  --pv-bad-bg: #fee2e2;
  --pv-side-w: 280px;
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: var(--pv-bg);
  color: var(--pv-ink);
  font: 14px/1.45 system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans', 'Noto Sans Arabic', sans-serif;
  overflow: hidden;
}
.pv-app[data-theme='dark'] {
  --pv-accent: #a5b4fc;
  --pv-accent-2: #5eead4;
  --pv-accent-ink: #c7d2fe;
  --pv-accent-soft: #272a5c;
  --pv-on-accent: #111436;
  --pv-bg: #0b1020;
  --pv-panel: #121a2e;
  --pv-panel-2: #0f1628;
  --pv-ink: #e5e9f2;
  --pv-muted: #a7b0c2;
  --pv-line: #222c44;
  --pv-line-2: #34405e;
  --pv-control: #7c88a3;
  --pv-focus: #fbbf24;
  --pv-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
  --pv-crit: #fecaca;
  --pv-crit-bg: #5c1515;
  --pv-high: #fed7aa;
  --pv-high-bg: #5a2a0c;
  --pv-med: #fde68a;
  --pv-med-bg: #4a3606;
  --pv-low: #bfdbfe;
  --pv-low-bg: #1a3266;
  --pv-unr: #ddd6fe;
  --pv-unr-bg: #3b2370;
  --pv-info: #d1d5db;
  --pv-info-bg: #2b3345;
  --pv-good: #bbf7d0;
  --pv-good-bg: #0f3b22;
  --pv-warn: #fde68a;
  --pv-warn-bg: #43310a;
  --pv-bad: #fecaca;
  --pv-bad-bg: #521616;
  color-scheme: dark;
}
.pv-app *,
.pv-app *::before,
.pv-app *::after {
  box-sizing: border-box;
}
.pv-app :focus-visible {
  outline: 2px solid var(--pv-focus);
  outline-offset: 2px;
}
.pv-app [hidden] {
  display: none !important;
}
/* Platform globals (button padding, full-width phone buttons, code/thead backgrounds) must not leak in. */
.pv-app :where(button),
.pv-dialog :where(button) {
  width: auto;
  margin: 0;
  font: inherit;
  letter-spacing: normal;
  text-transform: none;
  min-height: 0;
}
.pv-app :where(h1, h2, h3, h4, h5, p, ul, ol, dl, dd, figure) {
  margin: 0;
}
.pv-app :where(code, pre, kbd) {
  background: var(--pv-panel-2);
  color: var(--pv-ink);
}
.pv-app :where(thead th),
.pv-dialog :where(thead th) {
  background: var(--pv-panel-2);
  color: var(--pv-ink);
}
.pv-app :where(a) {
  color: var(--pv-accent-ink);
}
.pv-sr {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.pv-grow {
  flex: 1 1 auto;
}
.pv-muted {
  color: var(--pv-muted);
}
.pv-small {
  font-size: 12.5px;
}
.pv-ico {
  flex: none;
}
.pv-num {
  text-align: end;
  font-variant-numeric: tabular-nums;
}
.pv-mono,
.pv-mono-sm {
  font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
}
.pv-mono-sm {
  font-size: 12.5px;
}
.pv-pad {
  padding: 16px;
}
.pv-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.pv-row-end {
  justify-content: flex-end;
}
.pv-ok {
  color: var(--pv-good);
  font-weight: 600;
}
.pv-bad {
  color: var(--pv-bad);
  font-weight: 600;
}
.pv-warn {
  color: var(--pv-warn);
  font-weight: 600;
}

/* ---------- buttons & inputs ---------- */
.pv-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid var(--pv-line-2);
  border-radius: 8px;
  background: var(--pv-panel);
  color: var(--pv-ink);
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.pv-btn:hover:not(:disabled) {
  border-color: var(--pv-accent);
  background: var(--pv-accent-soft);
}
.pv-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.pv-btn-primary {
  background: var(--pv-accent);
  border-color: var(--pv-accent);
  color: var(--pv-on-accent);
}
.pv-btn-primary:hover:not(:disabled) {
  background: var(--pv-accent-ink);
  border-color: var(--pv-accent-ink);
  color: var(--pv-on-accent);
}
.pv-btn-danger {
  background: var(--pv-bad-bg);
  border-color: var(--pv-bad);
  color: var(--pv-bad);
}
.pv-btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--pv-accent-ink);
}
.pv-btn-small {
  min-height: 28px;
  padding: 3px 9px;
  font-size: 13px;
}
.pv-btn.pv-btn-small.pv-btn-ghost,
.pv-btn-small.pv-btn-ghost {
  border-color: var(--pv-line-2);
}
.pv-ibtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 32px;
  min-height: 32px;
  padding: 4px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--pv-ink);
  cursor: pointer;
}
.pv-ibtn:hover:not(:disabled) {
  background: var(--pv-accent-soft);
}
.pv-ibtn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.pv-ibtn-accent {
  background: var(--pv-accent);
  color: var(--pv-on-accent);
}
.pv-ibtn-accent:hover:not(:disabled) {
  background: var(--pv-accent-ink);
  color: var(--pv-on-accent);
}
.pv-linkbtn {
  border: 0;
  padding: 0;
  background: none;
  color: var(--pv-accent-ink);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  text-align: start;
  font-weight: 600;
}
.pv-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  min-height: 24px;
}
.pv-input {
  width: 100%;
  min-height: 34px;
  padding: 6px 9px;
  border: 1px solid var(--pv-control);
  border-radius: 8px;
  background: var(--pv-panel);
  color: var(--pv-ink);
  font: inherit;
}
textarea.pv-input {
  resize: vertical;
  min-height: 70px;
}
.pv-input-sm {
  min-height: 30px;
  padding: 3px 6px;
  width: auto;
  max-width: 100%;
}
.pv-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.pv-label {
  font-weight: 600;
  font-size: 13px;
}
.pv-help {
  color: var(--pv-muted);
  font-size: 12.5px;
}
.pv-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.pv-check input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--pv-accent);
  flex: none;
}
.pv-formgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr));
  gap: 12px;
}
.pv-formgrid-wide {
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
}
.pv-field-full {
  grid-column: 1 / -1;
}

/* ---------- top bar & menus ---------- */
.pv-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  padding: 6px 10px;
  background: var(--pv-panel);
  border-bottom: 1px solid var(--pv-line);
  flex: none;
}
.pv-top-name {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--pv-accent-ink);
  min-width: 0;
  flex: 0 1 260px;
}
.pv-name {
  min-width: 0;
  width: 100%;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--pv-ink);
  font: 600 15px/1.2 inherit;
  font-family: inherit;
  padding: 5px 6px;
}
.pv-name:hover,
.pv-name:focus {
  border-color: var(--pv-control);
  background: var(--pv-panel);
}
.pv-menubar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
}
.pv-menuwrap {
  position: relative;
}
.pv-menubar-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  padding: 5px 10px;
  border: 0;
  border-radius: 7px;
  background: none;
  color: var(--pv-ink);
  cursor: pointer;
  font-weight: 500;
}
.pv-menubar-btn:hover,
.pv-menubar-btn[aria-expanded='true'] {
  background: var(--pv-accent-soft);
}
.pv-top-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-inline-start: auto;
}
.pv-menu {
  min-width: 250px;
  max-width: min(380px, 92vw);
  overflow-y: auto;
  background: var(--pv-panel);
  color: var(--pv-ink);
  border: 1px solid var(--pv-line-2);
  border-radius: 10px;
  box-shadow: var(--pv-shadow);
  padding: 5px;
  z-index: 70;
}
.pv-dropdown {
  position: absolute;
  top: calc(100% + 3px);
  inset-inline-start: 0;
}
.pv-dropdown-end {
  inset-inline-start: auto;
  inset-inline-end: 0;
}
.pv-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 32px;
  padding: 5px 8px;
  border: 0;
  border-radius: 7px;
  background: none;
  color: inherit;
  text-align: start;
  cursor: pointer;
}
.pv-menu-item:hover:not(:disabled),
.pv-menu-item:focus {
  background: var(--pv-accent-soft);
  outline: none;
}
.pv-menu-item:focus-visible {
  outline: 2px solid var(--pv-focus);
  outline-offset: -2px;
}
.pv-menu-item:disabled {
  opacity: 0.5;
  cursor: default;
}
.pv-menu-ico {
  display: inline-flex;
  width: 18px;
  justify-content: center;
  color: var(--pv-muted);
}
.pv-menu-label {
  flex: 1;
}
.pv-menu-key {
  color: var(--pv-muted);
  font-size: 12px;
  white-space: nowrap;
}
.pv-menu-sep {
  height: 1px;
  margin: 4px 6px;
  background: var(--pv-line);
}
.pv-menu-heading {
  padding: 6px 8px 2px;
  font-size: 12px;
  font-weight: 700;
  color: var(--pv-muted);
}

/* ---------- hint ---------- */
.pv-hint {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px 12px;
  background: var(--pv-accent-soft);
  color: var(--pv-ink);
  border-bottom: 1px solid var(--pv-line);
  flex: none;
}
.pv-hint > span {
  flex: 1 1 260px;
}

/* ---------- body ---------- */
.pv-body {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: var(--pv-side-w) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
}
.pv-side {
  min-height: 0;
  overflow-y: auto;
  background: var(--pv-panel);
  border-inline-end: 1px solid var(--pv-line);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pv-side-head {
  display: flex;
  align-items: center;
  gap: 6px;
}
.pv-side-head :is(h1, h2) {
  font-size: 15px;
}
.pv-side-empty {
  color: var(--pv-muted);
  font-size: 13px;
}
.pv-side > .pv-btn {
  justify-content: center;
}
.pv-assets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pv-asset-group :is(h2, h3) {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 2px 4px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--pv-muted);
}
.pv-asset {
  display: flex;
  align-items: center;
  gap: 4px;
  border-radius: 8px;
}
.pv-asset-cb {
  width: 18px;
  height: 18px;
  margin: 0 3px;
  flex: none;
  accent-color: var(--pv-accent);
}
.pv-asset-btn {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 5px 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: none;
  color: var(--pv-ink);
  text-align: start;
  cursor: pointer;
}
.pv-asset-btn:hover {
  background: var(--pv-panel-2);
  border-color: var(--pv-line);
}
.pv-asset-btn[aria-current='true'] {
  background: var(--pv-accent-soft);
  border-color: var(--pv-accent);
}
.pv-asset-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pv-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: none;
  border: 2px solid var(--pv-control);
}
.pv-dot-pass {
  background: #15803d;
  border-color: #15803d;
}
.pv-dot-warn {
  background: #ca8a04;
  border-color: #a16207;
}
.pv-dot-fail {
  background: #dc2626;
  border-color: #b91c1c;
}
.pv-side-batch {
  position: sticky;
  bottom: -10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 8px;
  margin: 0 -10px -10px;
  background: var(--pv-panel-2);
  border-top: 1px solid var(--pv-line);
}
.pv-side-batch > span {
  flex: 1 1 100%;
  font-weight: 600;
}

.pv-main {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.pv-tabbar {
  flex: none;
  background: var(--pv-panel);
  border-bottom: 1px solid var(--pv-line);
  overflow-x: auto;
}
.pv-tabs {
  display: flex;
  gap: 2px;
  padding: 0 8px;
  min-width: max-content;
}
.pv-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  padding: 8px 12px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: none;
  color: var(--pv-muted);
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.pv-tab:hover {
  color: var(--pv-ink);
}
.pv-tab[aria-selected='true'] {
  color: var(--pv-accent-ink);
  border-bottom-color: var(--pv-accent);
}
.pv-tab-assets {
  display: none;
}
.pv-badge {
  min-width: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--pv-accent);
  color: var(--pv-on-accent);
  font-size: 12px;
  line-height: 20px;
  text-align: center;
}
.pv-panel {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 16px 18px 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pv-panel:focus {
  outline: none;
}
.pv-panel > *,
.pv-card > *,
.pv-dialog-body > * {
  flex-shrink: 0;
}
.pv-h1 {
  font-size: 22px;
  line-height: 1.25;
  font-weight: 750;
}
.pv-lede {
  color: var(--pv-muted);
  max-width: 75ch;
  font-size: 15px;
}
.pv-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pv-accent-ink);
}
.pv-viewhead {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.pv-card {
  background: var(--pv-panel);
  border: 1px solid var(--pv-line);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.pv-card-title {
  font-size: 16px;
  font-weight: 700;
}
.pv-grid2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr));
  gap: 14px;
}

/* ---------- gate, KPIs, chips ---------- */
.pv-gate {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid;
}
.pv-gate-pass {
  background: var(--pv-good-bg);
  color: var(--pv-good);
  border-color: currentColor;
}
.pv-gate-warn {
  background: var(--pv-warn-bg);
  color: var(--pv-warn);
  border-color: currentColor;
}
.pv-gate-fail {
  background: var(--pv-bad-bg);
  color: var(--pv-bad);
  border-color: currentColor;
}
.pv-gate-none {
  background: var(--pv-panel);
  color: var(--pv-ink);
  border-color: var(--pv-line-2);
}
.pv-gate .pv-btn-ghost {
  color: inherit;
  border-color: currentColor;
}
.pv-gate-sub {
  font-size: 13px;
}
.pv-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}
.pv-kpi {
  background: var(--pv-panel);
  border: 1px solid var(--pv-line);
  border-inline-start: 4px solid var(--pv-accent-2);
  border-radius: 10px;
  padding: 10px 12px;
}
.pv-kpi-v {
  font-size: 24px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}
.pv-kpi-l {
  font-size: 13px;
  font-weight: 600;
}
.pv-kpi-s {
  font-size: 12px;
  color: var(--pv-muted);
}
.pv-kpi-bad {
  border-inline-start-color: #dc2626;
}
.pv-kpi-warn {
  border-inline-start-color: #ca8a04;
}
.pv-kpi-good {
  border-inline-start-color: #16a34a;
}
.pv-sev,
.pv-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 20px;
  white-space: nowrap;
  margin-inline-end: 4px;
}
.pv-sev-critical {
  background: var(--pv-crit-bg);
  color: var(--pv-crit);
}
.pv-sev-high {
  background: var(--pv-high-bg);
  color: var(--pv-high);
}
.pv-sev-medium {
  background: var(--pv-med-bg);
  color: var(--pv-med);
}
.pv-sev-low {
  background: var(--pv-low-bg);
  color: var(--pv-low);
}
.pv-sev-unrated {
  background: var(--pv-unr-bg);
  color: var(--pv-unr);
}
.pv-sev-info {
  background: var(--pv-info-bg);
  color: var(--pv-info);
}
.pv-chip {
  background: var(--pv-panel-2);
  color: var(--pv-ink);
  border: 1px solid var(--pv-line-2);
  font-weight: 600;
}
.pv-chip-kev {
  background: var(--pv-bad);
  color: var(--pv-panel);
  border-color: var(--pv-bad);
}
.pv-chip-warn {
  background: var(--pv-warn-bg);
  color: var(--pv-warn);
  border-color: currentColor;
}
.pv-swatch {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  margin-inline-end: 6px;
  vertical-align: -1px;
}
.pv-swatch-critical { background: #b91c1c; }
.pv-swatch-high { background: #c2410c; }
.pv-swatch-medium { background: #a16207; }
.pv-swatch-low { background: #1d4ed8; }
.pv-swatch-unrated { background: #6d28d9; }
.pv-app[data-theme='dark'] .pv-swatch-critical { background: #f87171; }
.pv-app[data-theme='dark'] .pv-swatch-high { background: #fb923c; }
.pv-app[data-theme='dark'] .pv-swatch-medium { background: #facc15; }
.pv-app[data-theme='dark'] .pv-swatch-low { background: #60a5fa; }
.pv-app[data-theme='dark'] .pv-swatch-unrated { background: #c4b5fd; }

/* ---------- charts ---------- */
.pv-chartrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}
.pv-chartrow > .pv-tablewrap {
  flex: 1 1 180px;
}
.pv-chartbox {
  max-width: 100%;
  overflow-x: auto;
}
.pv-chartbox svg,
.pv-card > svg.pv-chart {
  display: block;
  max-width: 100%;
  height: auto;
}
.pv-chartbox-wide svg,
.pv-card > svg.pv-chart {
  width: 100%;
  max-width: 640px;
}

/* ---------- tables ---------- */
.pv-tablewrap {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--pv-line);
  border-radius: 10px;
  background: var(--pv-panel);
}
.pv-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.pv-table caption {
  text-align: start;
  font-weight: 700;
  padding: 8px 10px 4px;
}
.pv-table th,
.pv-table td {
  padding: 7px 10px;
  border-bottom: 1px solid var(--pv-line);
  text-align: start;
  vertical-align: top;
}
.pv-table thead th {
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 1;
}
.pv-table tbody tr:last-child > * {
  border-bottom: 0;
}
.pv-table tbody th {
  font-weight: 600;
}
.pv-table-compact th,
.pv-table-compact td {
  padding: 5px 8px;
}
.pv-table td.pv-num,
.pv-table th.pv-num {
  text-align: end;
}
.pv-sortbtn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 0;
  padding: 2px 0;
  background: none;
  color: inherit;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.pv-sorticon {
  font-size: 10px;
  min-width: 10px;
}
.pv-findings .pv-ftitle {
  min-width: 260px;
}
.pv-findings .pv-frow td:last-child {
  white-space: nowrap;
}
.pv-table thead th {
  vertical-align: middle;
}
.pv-expand {
  display: inline-flex;
  align-items: flex-start;
  gap: 6px;
  border: 0;
  padding: 0;
  background: none;
  color: var(--pv-ink);
  font: inherit;
  font-weight: 600;
  text-align: start;
  cursor: pointer;
}
.pv-expand:hover {
  color: var(--pv-accent-ink);
  text-decoration: underline;
}
.pv-caret {
  color: var(--pv-muted);
  min-width: 12px;
}
.pv-frow-open > * {
  background: var(--pv-panel-2);
  border-bottom-color: transparent;
}
.pv-fdetail > td {
  background: var(--pv-panel-2);
}
.pv-overdue {
  color: var(--pv-bad);
  font-weight: 700;
}
.pv-better {
  font-weight: 700;
  color: var(--pv-good);
  background: var(--pv-good-bg);
}
.pv-fbox {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 980px;
}
.pv-facts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 6px 16px;
}
.pv-facts dt {
  font-size: 12px;
  color: var(--pv-muted);
  font-weight: 600;
}
.pv-facts dd {
  overflow-wrap: anywhere;
}
.pv-fedit {
  display: grid;
  grid-template-columns: minmax(140px, 200px) minmax(140px, 180px) minmax(200px, 1fr);
  gap: 10px;
}
.pv-filterbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
  padding: 10px;
  background: var(--pv-panel);
  border: 1px solid var(--pv-line);
  border-radius: 12px;
}
.pv-field-inline {
  flex: 0 1 180px;
}
.pv-field-grow {
  flex: 1 1 220px;
}
.pv-filterchecks {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pv-count {
  font-weight: 600;
}
.pv-bulk {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.pv-bulk .pv-input {
  width: auto;
}

/* ---------- lists ---------- */
.pv-toplist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pv-toplist li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 4px;
}
.pv-list {
  padding-inline-start: 1.2em;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.pv-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pv-steps li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
}
.pv-licenselist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pv-licenselist li {
  border-inline-start: 3px solid var(--pv-line-2);
  padding-inline-start: 10px;
}

/* ---------- callouts & details ---------- */
.pv-callout {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid;
}
.pv-callout-info {
  background: var(--pv-low-bg);
  color: var(--pv-low);
}
.pv-callout-good {
  background: var(--pv-good-bg);
  color: var(--pv-good);
}
.pv-callout-warning {
  background: var(--pv-warn-bg);
  color: var(--pv-warn);
}
.pv-callout.pv-row {
  justify-content: space-between;
}
.pv-details > summary {
  cursor: pointer;
  font-weight: 600;
  padding: 4px 0;
  min-height: 24px;
}
.pv-details[open] > summary {
  margin-bottom: 6px;
}

/* ---------- asset view ---------- */
.pv-assethead {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.pv-asset-ico {
  display: inline-flex;
  padding: 9px;
  border-radius: 12px;
  background: var(--pv-accent-soft);
  color: var(--pv-accent-ink);
}
.pv-checks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(420px, 100%), 1fr));
  gap: 12px;
}
.pv-cc {
  border: 1px solid var(--pv-line);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--pv-panel-2);
  min-width: 0;
}
.pv-cc-err {
  border-color: var(--pv-warn);
}
.pv-cc-skip {
  opacity: 0.92;
}
.pv-cc:has(.pv-tooloutput) {
  grid-column: 1 / -1;
}
.pv-cc-head {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px;
}
.pv-cc-head h3 {
  font-size: 15px;
}
.pv-state {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--pv-muted);
}
.pv-state-ok {
  color: var(--pv-good);
}
.pv-state-err {
  color: var(--pv-warn);
}
.pv-state-run {
  color: var(--pv-accent-ink);
}
.pv-summary {
  font-weight: 500;
}
.pv-warnlist {
  margin: 0;
  padding-inline-start: 1.2em;
  color: var(--pv-warn);
  font-size: 13px;
}
.pv-tooloutput {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid var(--pv-line);
  padding-top: 10px;
}
.pv-block h4 {
  font-size: 14px;
  margin-bottom: 4px;
}
.pv-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 8px;
}
.pv-metric {
  background: var(--pv-panel);
  border: 1px solid var(--pv-line);
  border-radius: 8px;
  padding: 6px 9px;
}
.pv-metric dt {
  font-size: 12px;
  color: var(--pv-muted);
}
.pv-metric dd {
  font-weight: 700;
  font-size: 16px;
  overflow-wrap: anywhere;
}
.pv-metric-em {
  border-color: var(--pv-accent);
}
.pv-bars ul {
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pv-bars li {
  display: grid;
  grid-template-columns: minmax(80px, 160px) 1fr auto;
  gap: 8px;
  align-items: center;
  font-size: 13px;
}
.pv-bar-track {
  height: 10px;
  background: var(--pv-line);
  border-radius: 5px;
  overflow: hidden;
}
.pv-bar-fill {
  display: block;
  height: 100%;
  background: var(--pv-accent);
}
.pv-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-inline-start: 2px solid var(--pv-line-2);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pv-timeline li {
  padding-inline-start: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 2px 8px;
  font-size: 13px;
}
.pv-tl-time {
  font-variant-numeric: tabular-nums;
  color: var(--pv-muted);
  min-width: 86px;
}
.pv-tl-label {
  font-weight: 600;
}
.pv-tl-detail {
  flex: 1 1 100%;
  color: var(--pv-muted);
}
.pv-tl-bad .pv-tl-label {
  color: var(--pv-bad);
}
.pv-tl-good .pv-tl-label {
  color: var(--pv-good);
}
.pv-toolsvg img {
  max-width: 100%;
  height: auto;
  background: #fff;
  border-radius: 8px;
}
.pv-pre {
  max-height: 320px;
  overflow: auto;
  padding: 8px;
  border-radius: 8px;
  font-size: 12px;
}

/* ---------- empty state, templates, recent ---------- */
.pv-empty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--pv-accent-soft), var(--pv-panel));
  border: 1px solid var(--pv-line);
}
.pv-templates {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
  gap: 12px;
}
.pv-template {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--pv-line);
  border-radius: 12px;
  background: var(--pv-panel-2);
}
.pv-template h3 {
  font-size: 15px;
}
.pv-template p {
  font-size: 13px;
}
.pv-template > .pv-btn {
  align-self: flex-start;
  margin-top: auto;
}
.pv-template-kinds {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.pv-recent {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pv-recent li {
  display: flex;
  align-items: center;
  gap: 6px;
}
.pv-recent-open {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 6px 10px;
  border: 1px solid var(--pv-line);
  border-radius: 8px;
  background: var(--pv-panel);
  color: var(--pv-ink);
  text-align: start;
  cursor: pointer;
}
.pv-recent-open:hover {
  border-color: var(--pv-accent);
}
.pv-recent-name {
  font-weight: 600;
}

/* ---------- compare / segmented ---------- */
.pv-seg {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--pv-line-2);
  border-radius: 10px;
  background: var(--pv-panel);
  align-self: flex-start;
}
.pv-segopt {
  position: relative;
}
.pv-segopt input {
  position: absolute;
  opacity: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
.pv-segopt label {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}
.pv-segopt input:checked + label {
  background: var(--pv-accent);
  color: var(--pv-on-accent);
}
.pv-segopt input:focus-visible + label {
  outline: 2px solid var(--pv-focus);
  outline-offset: 2px;
}
.pv-cmp-pick .pv-field-inline {
  flex: 1 1 240px;
}

/* ---------- status bar ---------- */
.pv-status {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 30px;
  padding: 4px 12px;
  background: var(--pv-panel);
  border-top: 1px solid var(--pv-line);
  font-size: 12.5px;
  color: var(--pv-muted);
  flex: none;
}
.pv-progress {
  width: 140px;
  height: 8px;
  background: var(--pv-line);
  border-radius: 4px;
  overflow: hidden;
  flex: none;
}
.pv-progress-fill {
  display: block;
  height: 100%;
  inline-size: 0;
  background: var(--pv-accent);
  transition: inline-size 0.2s;
}
.pv-spin {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--pv-line-2);
  border-top-color: var(--pv-accent);
  flex: none;
}
@media (prefers-reduced-motion: no-preference) {
  .pv-spin {
    animation: pv-spin 0.9s linear infinite;
  }
}
@keyframes pv-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- toasts ---------- */
.pv-toasts {
  position: absolute;
  inset-block-end: 40px;
  inset-inline-end: 14px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: min(440px, calc(100% - 28px));
  pointer-events: none;
}
.pv-toast {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--pv-panel);
  color: var(--pv-ink);
  border: 1px solid var(--pv-line-2);
  box-shadow: var(--pv-shadow);
  pointer-events: auto;
}
.pv-toast-good {
  border-inline-start: 4px solid #16a34a;
}
.pv-toast-error {
  border-inline-start: 4px solid #dc2626;
}
.pv-toast-info {
  border-inline-start: 4px solid var(--pv-accent);
}
.pv-toast-out {
  opacity: 0;
  transition: opacity 0.3s;
}

/* ---------- dialogs ---------- */
.pv-dialog {
  width: min(560px, calc(100vw - 24px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 1px solid var(--pv-line-2);
  border-radius: 14px;
  background: var(--pv-panel);
  color: var(--pv-ink);
  box-shadow: var(--pv-shadow);
  overflow: hidden;
}
.pv-dialog[open] {
  display: flex;
  flex-direction: column;
}
.pv-dialog-wide {
  width: min(860px, calc(100vw - 24px));
}
.pv-dialog::backdrop {
  background: rgba(10, 14, 30, 0.55);
}
.pv-dialog-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px 8px 18px;
  border-bottom: 1px solid var(--pv-line);
}
.pv-dialog-head h2 {
  flex: 1;
  font-size: 18px;
}
.pv-dialog-lede {
  padding: 8px 18px 0;
  color: var(--pv-muted);
}
.pv-dialog-body {
  padding: 14px 18px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
}
.pv-dialog-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  padding: 10px 18px 14px;
  border-top: 1px solid var(--pv-line);
}
.pv-dialog-toasts {
  position: absolute;
  inset-block-end: 70px;
  inset-inline-end: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 80%;
}
.pv-kindgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
  gap: 8px;
}
.pv-kindopt {
  position: relative;
}
.pv-kindopt input {
  position: absolute;
  inset-block-start: 12px;
  inset-inline-start: 10px;
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--pv-accent);
}
.pv-kindopt label {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 8px;
  padding: 9px 10px 9px 34px;
  border: 1px solid var(--pv-line-2);
  border-radius: 10px;
  cursor: pointer;
  height: 100%;
}
[dir='rtl'] .pv-kindopt label {
  padding: 9px 34px 9px 10px;
}
.pv-kindopt label .pv-ico {
  grid-row: 1 / 3;
  color: var(--pv-accent-ink);
}
.pv-kindopt-t {
  font-weight: 700;
}
.pv-kindopt-d {
  font-size: 12px;
  color: var(--pv-muted);
}
.pv-kindopt input:checked + label {
  border-color: var(--pv-accent);
  background: var(--pv-accent-soft);
  box-shadow: inset 0 0 0 1px var(--pv-accent);
}
.pv-kindopt input:focus-visible + label {
  outline: 2px solid var(--pv-focus);
  outline-offset: 2px;
}
.pv-add-primary {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pv-imp-list li {
  display: flex;
  align-items: center;
  gap: 6px;
}
.pv-help-scroll {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pv-help-sec h3 {
  font-size: 15px;
  margin-bottom: 3px;
}
.pv-dialog kbd {
  display: inline-block;
  padding: 1px 6px;
  border: 1px solid var(--pv-line-2);
  border-radius: 5px;
  font-size: 12.5px;
}

/* ---------- report ---------- */
.pv-report {
  background: var(--pv-panel);
  border: 1px solid var(--pv-line);
  border-radius: 14px;
  padding: 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 1100px;
}
.pv-report h1 {
  font-size: 26px;
}
.pv-report h2 {
  font-size: 18px;
  margin-bottom: 8px;
}
.pv-rep-head {
  border-bottom: 3px solid var(--pv-accent);
  padding-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pv-rep-sum {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  margin-top: 10px;
}
.pv-rep-sum .pv-facts {
  flex: 1 1 300px;
}
.pv-report-actions {
  position: sticky;
  top: -16px;
  z-index: 2;
  padding: 8px 0;
  background: var(--pv-bg);
}

/* ---------- narrow screens ---------- */
@media (max-width: 860px) {
  .pv-app {
    --pv-side-w: 220px;
  }
  .pv-fedit {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 680px) {
  .pv-body {
    grid-template-columns: minmax(0, 1fr);
  }
  .pv-side {
    display: none;
    border-inline-end: 0;
  }
  .pv-app.pv-view-assets .pv-side {
    display: flex;
  }
  .pv-app.pv-view-assets .pv-main {
    flex: none;
  }
  .pv-app.pv-view-assets .pv-panel {
    display: none;
  }
  .pv-app.pv-view-assets .pv-body {
    grid-template-rows: auto minmax(0, 1fr);
  }
  .pv-app.pv-view-assets .pv-main {
    order: -1;
  }
  .pv-tab-assets {
    display: inline-flex;
  }
  .pv-tab {
    padding: 8px 10px;
  }
  .pv-top-name {
    flex: 1 1 120px;
  }
  .pv-menubar {
    order: 3;
    flex: 1 1 100%;
  }
  .pv-top-actions {
    margin-inline-start: 0;
  }
  .pv-top-actions .pv-btn {
    padding-inline: 10px;
  }
  .pv-top-actions .pv-btn span {
    white-space: nowrap;
  }
  .pv-panel {
    padding: 12px 12px 40px;
  }
  .pv-report {
    padding: 14px;
  }
  .pv-progress {
    width: 70px;
  }
  .pv-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- print: only the report ---------- */
@media print {
  .uwapp-bar,
  .pv-top,
  .pv-hint,
  .pv-side,
  .pv-tabbar,
  .pv-status,
  .pv-toasts,
  .pv-noprint {
    display: none !important;
  }
  .pv-app,
  .pv-app[data-theme='dark'] {
    --pv-bg: #fff;
    --pv-panel: #fff;
    --pv-panel-2: #f8fafc;
    --pv-ink: #111;
    --pv-muted: #444;
    --pv-line: #ccc;
    overflow: visible;
    background: #fff;
    color: #111;
  }
  .pv-body {
    display: block;
  }
  .pv-panel {
    overflow: visible;
    padding: 0;
  }
  .pv-report {
    border: 0;
    padding: 0;
    max-width: none;
  }
  .pv-tablewrap {
    overflow: visible;
    border: 0;
  }
  .pv-table thead th {
    position: static;
  }
  .pv-report section {
    break-inside: avoid-page;
  }
}
.pv-mono-sm .pv-chip {
  margin-inline-start: 6px;
  font-family: system-ui, sans-serif;
}
.pv-kindopt input:focus-visible {
  outline: none;
}
