/*
 * NexIP public entities v1 — responsive diagnostic cards.
 * Deliberately scoped to .nxpe, works with Aero light / dark design tokens.
 */
[data-product-theme="nexip-aero"] .nxpe {
  --nxpe-bg: #f5f8fc;
  --nxpe-card: #ffffff;
  --nxpe-line: #dae5ef;
  --nxpe-ink: #11223a;
  --nxpe-muted: #667991;
  --nxpe-blue: #0871eb;
  --nxpe-blue-soft: #eaf3ff;
  --nxpe-green: #11795f;
  --nxpe-green-soft: #eafaf4;
  --nxpe-amber: #93651e;
  --nxpe-amber-soft: #fff6e5;
  --nxpe-shadow: 0 14px 38px rgba(24, 62, 102, .055);
  min-height: 65vh;
  background: var(--nxpe-bg);
  color: var(--nxpe-ink);
}
[data-product-theme="nexip-aero"] .nxpe .aero-container { max-width: 1200px; }
[data-product-theme="nexip-aero"] .nxpe-hero {
  position: relative;
  padding: clamp(2rem, 4vw, 3.8rem) 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 86% 12%, rgba(32, 124, 233, .16), transparent 42%),
    radial-gradient(ellipse at 9% 100%, rgba(103, 173, 236, .10), transparent 44%),
    linear-gradient(145deg, #ffffff, #f0f6fd 83%);
  border-bottom: 1px solid var(--nxpe-line);
}
[data-product-theme="nexip-aero"] .nxpe-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(190px, 250px); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
[data-product-theme="nexip-aero"] .nxpe-hero-copy { min-width: 0; }
[data-product-theme="nexip-aero"] .nxpe .aero-breadcrumbs { margin-bottom: 1.25rem; }
[data-product-theme="nexip-aero"] .nxpe-eyebrow,
[data-product-theme="nexip-aero"] .nxpe-kicker { margin: 0 0 .65rem; color: var(--nxpe-blue); font-size: .72rem; font-weight: 800; letter-spacing: .105em; text-transform: uppercase; }
[data-product-theme="nexip-aero"] .nxpe .nxpe-title { max-width: none; margin: 0 0 .8rem; font-size: clamp(2.25rem, 4.5vw, 4rem); line-height: 1.1; letter-spacing: -.045em; overflow-wrap: anywhere; }
[data-product-theme="nexip-aero"] .nxpe .nxpe-description { max-width: 48rem; margin: 0; color: var(--nxpe-muted); font-size: clamp(.91rem, 1.2vw, 1.06rem); line-height: 1.7; }
[data-product-theme="nexip-aero"] .nxpe-hero-meta { display: flex; align-items: center; flex-wrap: wrap; gap: .7rem 1rem; margin-top: 1.6rem; }
[data-product-theme="nexip-aero"] .nxpe-status { display: inline-flex; align-items: center; gap: .46rem; min-height: 31px; padding: .35rem .72rem; color: var(--nxpe-green); background: var(--nxpe-green-soft); border: 1px solid rgba(14, 148, 107, .15); border-radius: 100px; font-size: .75rem; font-weight: 800; }
[data-product-theme="nexip-aero"] .nxpe-status--pending, [data-product-theme="nexip-aero"] .nxpe-status--stale { color: var(--nxpe-amber); background: var(--nxpe-amber-soft); border-color: rgba(178, 123, 30, .15); }
[data-product-theme="nexip-aero"] .nxpe-dot { width: 7px; height: 7px; background: currentColor; border-radius: 100%; }
[data-product-theme="nexip-aero"] .nxpe-timestamp { color: var(--nxpe-muted); font-size: .78rem; }
[data-product-theme="nexip-aero"] .nxpe-score { display: grid; justify-items: center; gap: 1.1rem; min-width: 0; padding: 1.4rem 1.1rem; background: var(--nxpe-card); border: 1px solid var(--nxpe-line); border-radius: 24px; box-shadow: var(--nxpe-shadow); text-align: center; }
[data-product-theme="nexip-aero"] .nxpe-score-ring { display: grid; place-content: center; width: 118px; height: 118px; border-radius: 50%; position: relative; isolation: isolate; background: conic-gradient(var(--nxpe-blue) 100%, var(--nxpe-line) 0); }
[data-product-theme="nexip-aero"] .nxpe-score-ring::before { content: ''; position: absolute; inset: 10px; border-radius: 50%; background: var(--nxpe-card); z-index: -1; }
[data-product-theme="nexip-aero"] .nxpe-score-ring strong { font-size: 2.45rem; letter-spacing: -.06em; line-height: 1.12; }
[data-product-theme="nexip-aero"] .nxpe-score-ring span { color: var(--nxpe-muted); font-size: .72rem; font-weight: 700; }
[data-product-theme="nexip-aero"] .nxpe-score-label { display: block; margin-bottom: .35rem; font-size: .9rem; font-weight: 800; }
[data-product-theme="nexip-aero"] .nxpe-score-progress { width: 100%; max-width: 140px; height: 6px; margin: .25rem auto .45rem; border: none; border-radius: 99px; overflow: hidden; background: var(--nxpe-line); accent-color: var(--nxpe-blue); }
[data-product-theme="nexip-aero"] .nxpe-score-progress::-webkit-progress-bar { background: var(--nxpe-line); border-radius: 99px; }
[data-product-theme="nexip-aero"] .nxpe-score-progress::-webkit-progress-value { background: var(--nxpe-blue); border-radius: 99px; }
[data-product-theme="nexip-aero"] .nxpe-score-progress::-moz-progress-bar { background: var(--nxpe-blue); border-radius: 99px; }
[data-product-theme="nexip-aero"] .nxpe-score p { margin: 0; color: var(--nxpe-muted); font-size: .73rem; line-height: 1.5; }
[data-product-theme="nexip-aero"] .nxpe-body { padding: clamp(1.3rem, 3vw, 2.4rem) 0 5rem; }
[data-product-theme="nexip-aero"] .nxpe-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; margin-bottom: 1.5rem; }
[data-product-theme="nexip-aero"] .nxpe-metric { display: flex; min-height: 112px; flex-direction: column; justify-content: center; align-items: flex-start; padding: 1.2rem 1.4rem; border: 1px solid var(--nxpe-line); border-radius: 18px; background: var(--nxpe-card); box-shadow: var(--nxpe-shadow); min-width: 0; }
[data-product-theme="nexip-aero"] .nxpe-metric > span { color: var(--nxpe-muted); font-size: .78rem; font-weight: 700; }
[data-product-theme="nexip-aero"] .nxpe-metric strong { display: block; margin-top: .3rem; font-size: clamp(1.2rem, 2vw, 1.85rem); line-height: 1.15; letter-spacing: -.025em; overflow-wrap: anywhere; }
[data-product-theme="nexip-aero"] .nxpe-metric small { margin-top: .2rem; color: var(--nxpe-muted); font-size: .72rem; }
[data-product-theme="nexip-aero"] .nxpe-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin: 1.45rem 0 2.2rem; padding: .4rem; background: rgba(166, 189, 216, .16); border: 1px solid var(--nxpe-line); border-radius: 16px; }
[data-product-theme="nexip-aero"] .nxpe-tabs a { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: .58rem .95rem; border-radius: 11px; color: var(--nxpe-muted); font-size: .85rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
[data-product-theme="nexip-aero"] .nxpe-tabs a:is(:hover,:focus-visible) { color: var(--nxpe-blue); background: var(--nxpe-card); }
[data-product-theme="nexip-aero"] .nxpe-tabs a.is-active { background: var(--nxpe-card); color: var(--nxpe-blue); box-shadow: 0 2px 10px rgba(13, 58, 110, .075); }
[data-product-theme="nexip-aero"] .nxpe-section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1.2rem; }
[data-product-theme="nexip-aero"] .nxpe-section-head h2 { margin: 0; font-size: clamp(1.45rem, 2.25vw, 2rem); letter-spacing: -.035em; line-height: 1.2; }
[data-product-theme="nexip-aero"] .nxpe-section-head p:last-child { margin: .55rem 0 0; color: var(--nxpe-muted); line-height: 1.55; font-size: .88rem; }
[data-product-theme="nexip-aero"] .nxpe-counter { flex: 0 0 auto; padding: .46rem .7rem; border: 1px solid var(--nxpe-line); border-radius: 9px; background: var(--nxpe-card); color: var(--nxpe-muted); font-size: .74rem; font-weight: 700; }
[data-product-theme="nexip-aero"] .nxpe-check-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: start; }
[data-product-theme="nexip-aero"] .nxpe-check { min-width: 0; overflow: hidden; display: flex; flex-direction: column; background: var(--nxpe-card); border: 1px solid var(--nxpe-line); border-radius: 20px; box-shadow: var(--nxpe-shadow); }
[data-product-theme="nexip-aero"] .nxpe-check-head { display: flex; align-items: center; gap: .83rem; padding: 1.25rem 1.3rem 1rem; }
[data-product-theme="nexip-aero"] .nxpe-check-icon { display: grid; flex: 0 0 40px; width: 40px; height: 40px; place-items: center; color: var(--nxpe-blue); background: var(--nxpe-blue-soft); border-radius: 12px; font-weight: 900; font-size: .77rem; letter-spacing: -.025em; }
[data-product-theme="nexip-aero"] .nxpe-check-heading { min-width: 0; flex: 1; }
[data-product-theme="nexip-aero"] .nxpe-check h3 { margin: 0 0 .22rem; font-size: 1rem; line-height: 1.35; font-weight: 800; overflow-wrap: anywhere; }
[data-product-theme="nexip-aero"] .nxpe-check-heading p { margin: 0; color: var(--nxpe-muted); font-size: .73rem; }
[data-product-theme="nexip-aero"] .nxpe-check-state { display: grid; flex: 0 0 27px; width: 27px; height: 27px; place-items: center; border-radius: 100%; font-size: .8rem; }
[data-product-theme="nexip-aero"] .nxpe-check-state.is-ok { background: var(--nxpe-green-soft); color: var(--nxpe-green); }
[data-product-theme="nexip-aero"] .nxpe-check-state.is-unknown { background: var(--nxpe-amber-soft); color: var(--nxpe-amber); }
[data-product-theme="nexip-aero"] .nxpe-highlights { display: grid; gap: 0; margin: 0; padding: .1rem 1.3rem 1.2rem; }
[data-product-theme="nexip-aero"] .nxpe-highlights > div { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1fr); gap: 1rem; padding: .75rem 0; border-top: 1px solid var(--nxpe-line); }
[data-product-theme="nexip-aero"] .nxpe-highlights dt { color: var(--nxpe-muted); font-size: .78rem; line-height: 1.45; }
[data-product-theme="nexip-aero"] .nxpe-highlights dd { min-width: 0; margin: 0; font-size: .83rem; font-weight: 750; line-height: 1.5; overflow-wrap: anywhere; }
[data-product-theme="nexip-aero"] .nxpe-no-data { margin: 0; padding: .6rem 1.3rem 1.3rem; color: var(--nxpe-muted); font-size: .85rem; }
[data-product-theme="nexip-aero"] .nxpe-advanced { margin-top: auto; border-top: 1px solid var(--nxpe-line); }
[data-product-theme="nexip-aero"] .nxpe-advanced summary { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .98rem 1.3rem; cursor: pointer; list-style: none; color: var(--nxpe-blue); font-size: .82rem; font-weight: 800; }
[data-product-theme="nexip-aero"] .nxpe-advanced summary::-webkit-details-marker { display: none; }
[data-product-theme="nexip-aero"] .nxpe-advanced summary > span { display: block; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .15s ease; }
[data-product-theme="nexip-aero"] .nxpe-advanced[open] summary > span { transform: rotate(225deg); }
[data-product-theme="nexip-aero"] .nxpe-advanced summary:hover { background: var(--nxpe-blue-soft); }
[data-product-theme="nexip-aero"] .nxpe-advanced-body { max-height: 460px; overflow: auto; padding: 1.2rem 1.3rem; background: color-mix(in srgb, var(--nxpe-card) 80%, var(--nxpe-bg)); border-top: 1px solid var(--nxpe-line); }
[data-product-theme="nexip-aero"] .nxpe-data { display: grid; gap: .65rem; margin: 0; }
[data-product-theme="nexip-aero"] .nxpe-data > div { display: grid; grid-template-columns: minmax(105px, .35fr) minmax(0, 1fr); gap: .9rem; padding: .45rem 0; border-bottom: 1px solid var(--nxpe-line); font-size: .78rem; line-height: 1.6; }
[data-product-theme="nexip-aero"] .nxpe-data dt { min-width: 0; color: var(--nxpe-muted); overflow-wrap: anywhere; }
[data-product-theme="nexip-aero"] .nxpe-data dd { min-width: 0; margin: 0; overflow-wrap: anywhere; }
[data-product-theme="nexip-aero"] .nxpe-data .nxpe-data { gap: .15rem; }
[data-product-theme="nexip-aero"] .nxpe-data-list { margin: 0; padding-left: 1.2rem; }
[data-product-theme="nexip-aero"] .nxpe-data-list li { margin-bottom: .35rem; overflow-wrap: anywhere; }
[data-product-theme="nexip-aero"] .nxpe-muted { color: var(--nxpe-muted); }
[data-product-theme="nexip-aero"] .nxpe-warnings { display: grid; gap: .45rem; padding: 0 1.3rem 1rem; }
[data-product-theme="nexip-aero"] .nxpe-warnings p { margin: 0; padding: .55rem .75rem; color: var(--nxpe-amber); background: var(--nxpe-amber-soft); border-radius: 8px; font-size: .77rem; overflow-wrap: anywhere; }
[data-product-theme="nexip-aero"] .nxpe-empty { max-width: 700px; margin: 0 auto 1.5rem; padding: 2.8rem 2rem; text-align: center; border: 1px dashed var(--nxpe-line); border-radius: 20px; background: var(--nxpe-card); }
[data-product-theme="nexip-aero"] .nxpe-empty-symbol { display: inline-flex; margin-bottom: 1rem; color: var(--nxpe-blue); font-size: 2.25rem; }
[data-product-theme="nexip-aero"] .nxpe-empty h3 { margin: 0 0 .7rem; font-size: 1.3rem; }
[data-product-theme="nexip-aero"] .nxpe-empty p { max-width: 32rem; margin: auto; color: var(--nxpe-muted); line-height: 1.7; }
[data-product-theme="nexip-aero"] .nxpe-footer { display: flex; align-items: center; justify-content: space-between; gap: 2rem; margin-top: 2rem; padding: 1.7rem 1.8rem; background: linear-gradient(115deg, #f0f6ff, #fff); border: 1px solid var(--nxpe-line); border-radius: 20px; }
[data-product-theme="nexip-aero"] .nxpe-footer h2 { margin: 0 0 .5rem; font-size: 1.05rem; }
[data-product-theme="nexip-aero"] .nxpe-footer p { max-width: 45rem; margin: 0; font-size: .8rem; line-height: 1.65; color: var(--nxpe-muted); }
[data-product-theme="nexip-aero"] .nxpe-footer-actions { flex: 0 0 auto; display: flex; align-items: center; gap: .65rem; }
[data-product-theme="nexip-aero"] .nxpe-footer-actions form { margin: 0; }
[data-product-theme="nexip-aero"] .nxpe-refresh { display: inline-flex; align-items: center; justify-content: center; min-height: 41px; padding: .7rem 1.12rem; white-space: nowrap; }
[data-product-theme="nexip-aero"] .nxpe-secondary-link { color: var(--nxpe-blue); font-weight: 700; font-size: .84rem; text-decoration: none; }
[data-product-theme="nexip-aero"] .nxpe-message { padding: 1rem 1.1rem; margin-bottom: 1rem; border-radius: 12px; border: 1px solid var(--nxpe-line); background: var(--nxpe-card); }
[data-product-theme="nexip-aero"] .nxpe-message--ok { color: var(--nxpe-green); background: var(--nxpe-green-soft); }
[data-product-theme="nexip-aero"] .nxpe-message--error { color: #bd334a; background: #fff0f1; }

html[data-product-theme="nexip-aero"][data-theme="dark"] .nxpe {
  --nxpe-bg: #0e1827;
  --nxpe-card: #152337;
  --nxpe-line: #293d56;
  --nxpe-ink: #e8f1fc;
  --nxpe-muted: #9db1ca;
  --nxpe-blue: #89baff;
  --nxpe-blue-soft: #1d3452;
  --nxpe-green: #7be2bc;
  --nxpe-green-soft: #193a35;
  --nxpe-amber: #ffd28a;
  --nxpe-amber-soft: #473823;
  --nxpe-shadow: 0 14px 38px rgba(0, 0, 0, .13);
}
html[data-product-theme="nexip-aero"][data-theme="dark"] .nxpe-hero { background: radial-gradient(ellipse at 80% 10%, rgba(45, 113, 203, .2), transparent 45%), linear-gradient(145deg, #101d30, #142539); }
html[data-product-theme="nexip-aero"][data-theme="dark"] .nxpe-tabs { background: rgba(125, 167, 210, .08); }
html[data-product-theme="nexip-aero"][data-theme="dark"] .nxpe-footer { background: linear-gradient(115deg, #172c46, #142337); }
html[data-product-theme="nexip-aero"][data-theme="dark"] .nxpe :is(h1,h2,h3,strong,dd) { color: var(--nxpe-ink); }
html[data-product-theme="nexip-aero"][data-theme="dark"] .nxpe-tabs a.is-active { color: var(--nxpe-blue); }
html[data-product-theme="nexip-aero"][data-theme="dark"] .nxpe :is(.nxpe-status,.nxpe-check-state,.nxpe-warnings p) { color: var(--nxpe-green); }
html[data-product-theme="nexip-aero"][data-theme="dark"] .nxpe :is(.nxpe-status--pending,.nxpe-status--stale,.nxpe-check-state.is-unknown,.nxpe-warnings p) { color: var(--nxpe-amber); }

@media (max-width: 850px) {
  [data-product-theme="nexip-aero"] .nxpe-hero-grid { grid-template-columns: minmax(0, 1fr) 210px; gap: 1rem; }
  [data-product-theme="nexip-aero"] .nxpe-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  [data-product-theme="nexip-aero"] .nxpe-footer { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 680px) {
  [data-product-theme="nexip-aero"] .nxpe-hero-grid { grid-template-columns: minmax(0, 1fr); }
  [data-product-theme="nexip-aero"] .nxpe-score { grid-template-columns: 82px minmax(0,1fr); justify-items: start; text-align: left; padding: 1rem; max-width: 100%; }
  [data-product-theme="nexip-aero"] .nxpe-score-ring { width: 76px; height: 76px; }
  [data-product-theme="nexip-aero"] .nxpe-score-ring::before { inset: 7px; }
  [data-product-theme="nexip-aero"] .nxpe-score-ring strong { font-size: 1.65rem; }
  [data-product-theme="nexip-aero"] .nxpe-score-label { margin-bottom: .2rem; }
  [data-product-theme="nexip-aero"] .nxpe-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
  [data-product-theme="nexip-aero"] .nxpe-metric { min-height: 95px; padding: 1rem; }
  [data-product-theme="nexip-aero"] .nxpe-check-grid { grid-template-columns: minmax(0, 1fr); }
  [data-product-theme="nexip-aero"] .nxpe-section-head { align-items: start; }
  [data-product-theme="nexip-aero"] .nxpe-counter { display: none; }
  [data-product-theme="nexip-aero"] .nxpe-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; }
}
@media (max-width: 410px) {
  [data-product-theme="nexip-aero"] .nxpe .nxpe-title { font-size: 2rem; }
  [data-product-theme="nexip-aero"] .nxpe-hero-meta { align-items: flex-start; flex-direction: column; }
  [data-product-theme="nexip-aero"] .nxpe-metrics { grid-template-columns: minmax(0, 1fr); }
  [data-product-theme="nexip-aero"] .nxpe-highlights > div { grid-template-columns: minmax(0, 1fr); gap: .22rem; }
  [data-product-theme="nexip-aero"] .nxpe-data > div { grid-template-columns: minmax(0, 1fr); gap: .18rem; }
  [data-product-theme="nexip-aero"] .nxpe-footer { padding: 1.3rem; }
  [data-product-theme="nexip-aero"] .nxpe-footer-actions { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  [data-product-theme="nexip-aero"] .nxpe-advanced summary > span { transition: none; }
}
