body.public {
  background:
    radial-gradient(900px 420px at 78% -10%, rgba(255, 38, 56, 0.08), transparent 60%),
    #050607;
  font-family: Inter, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}
body.public::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(circle at 70% 18%, #000 0%, transparent 62%);
}
body.public .wrap { position: relative; z-index: 1; width: min(1120px, calc(100% - 40px)); }
body.public .public-nav { display: none; }

.pw-nav, .pw-foot, .pw-hero, .pw-stats, .pw-block, .pw-page-head, .pw-directory, .pw-levels, .pw-steps, .pw-tabs {
  position: relative;
  z-index: 1;
}
.pw-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 14px 28px;
  background: rgba(5, 6, 7, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
}
.pw-logo { display: flex; align-items: center; }
.pw-logo img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.pw-links { display: flex; justify-content: center; gap: 22px; }
.pw-links a { color: #b7c0c8; font-size: 0.92rem; }
.pw-links a[aria-current="page"] { color: #f4f6f8; box-shadow: inset 0 -2px 0 #ff2638; }
.pw-tools { display: flex; align-items: center; gap: 12px; }
.pw-icon, .pw-burger {
  display: grid; place-items: center; width: 36px; height: 36px; padding: 0;
  background: transparent; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 8px; color: #f4f6f8;
}
.pw-icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.pw-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: #ff2638; color: white; border-radius: 8px; padding: 8px 14px; font-weight: 650;
}
.pw-cta:hover { text-decoration: none; background: #e61e30; }
.pw-burger { display: none; width: auto; padding: 0 10px; font-size: 0.82rem; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); border: 0;
}

.pw-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr); gap: 28px; align-items: center; padding: 28px 0 18px; }
.pw-kicker { color: #8d98a3; font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; }
.pw-hero h1, .pw-page-head h1 { display: grid; gap: 0; font-size: clamp(2.4rem, 5vw, 4.4rem); line-height: 0.96; font-weight: 760; letter-spacing: -0.045em; }
.pw-red { color: #ff2638; }
.pw-lede, .pw-page-head p { max-width: 38rem; color: #b7c0c8; font-size: 1.05rem; line-height: 1.6; }
.pw-search { position: relative; display: flex; margin-top: 22px; max-width: 520px; background: #0d1014; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 10px; }
.pw-search input { flex: 1; background: transparent; border: 0; padding: 14px 16px; outline: none; }
.pw-search button { background: #ff2638; color: white; border: 0; border-radius: 8px; margin: 6px; padding: 0 14px; }
.pw-suggest {
  position: absolute; z-index: 5; top: calc(100% + 6px); left: 0; right: 0;
  display: grid; background: #11151a; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 10px; overflow: hidden;
}
.pw-suggest a { padding: 10px 14px; color: #f4f6f8; }
.pw-suggest a:hover, .pw-suggest a.active { background: #191e25; text-decoration: none; }
.pw-suggest small { display: block; color: #8d98a3; }
.pw-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 16px; color: #8d98a3; font-size: 0.82rem; }
.pw-chips a { color: #d5dbe1; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 999px; padding: 4px 10px; }
.pw-chips a:hover { text-decoration: none; border-color: rgba(255, 38, 56, 0.7); }

.pw-stage { position: relative; min-height: 380px; }
#globe { width: 100%; height: 380px; display: block; }
.pw-floats { position: absolute; inset: 0; pointer-events: none; }
.pw-float {
  pointer-events: auto; position: absolute; display: grid; gap: 2px; width: min(210px, 46%);
  background: rgba(13, 16, 20, 0.88); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 10px; padding: 10px 12px;
  color: #f4f6f8; animation: pw-float 7s cubic-bezier(0.22, 1, 0.36, 1) infinite alternate;
}
.pw-float strong { font-size: 0.92rem; }
.pw-float span, .pw-float small { color: #8d98a3; font-size: 0.78rem; }
.pw-float::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #ff2638; position: absolute; right: 10px; top: 12px; }
.pw-floats .pw-float:nth-child(1) { top: 10%; left: 4%; }
.pw-floats .pw-float:nth-child(2) { top: 18%; right: 0; animation-delay: -2s; }
.pw-floats .pw-float:nth-child(3) { bottom: 22%; left: 0; animation-delay: -4s; }
.pw-floats .pw-float:nth-child(4) { bottom: 8%; right: 6%; animation-delay: -1s; }
@keyframes pw-float { from { transform: translateY(0); } to { transform: translateY(-8px); } }

.pw-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 8px 0 28px; border-top: 1px solid rgba(255, 255, 255, 0.06); border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.pw-marquee { display: grid; gap: 8px; margin: 0 0 28px; }
.pw-marquee-viewport {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.pw-rail {
  display: flex; gap: 8px; width: max-content; margin: 0;
  animation: pw-rail 32s linear infinite;
}
.pw-rail-reverse { animation-duration: 38s; animation-direction: reverse; }
.pw-marquee-viewport:hover .pw-rail { animation-play-state: paused; }
.pw-rail a {
  display: grid; justify-items: center; gap: 8px; width: 118px; flex: none; min-height: 92px; padding: 12px 6px;
  border: 1px solid rgba(255, 255, 255, 0.06); border-radius: 10px; color: #d5dbe1; font-size: 0.75rem; text-align: center;
}
@keyframes pw-rail { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.pw-rail a:hover { text-decoration: none; border-color: rgba(255, 38, 56, 0.55); }
.pw-rail img, .pw-rail .pw-letter { width: 32px; height: 32px; }
.pw-home-steps { margin-bottom: 8px; }
.pw-home-steps h2 { font-size: 1.05rem; }
.pw-stats article { padding: 22px 8px; }
.pw-stats strong { display: block; font-size: 2rem; letter-spacing: -0.04em; }
.pw-stats span, .pw-meta { color: #8d98a3; font-size: 0.86rem; }
.pw-stats-3 { grid-template-columns: repeat(3, 1fr); border: 0; }
.pw-block { display: grid; gap: 16px; padding-bottom: 24px; }
.pw-block-head, .pw-page-head { display: flex; justify-content: space-between; gap: 16px; align-items: end; }
.pw-page-head { display: grid; justify-content: start; gap: 12px; padding: 18px 0 22px; }
.pw-page-head h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
.pw-block h2, .pw-steps h2 { font-size: 1.45rem; letter-spacing: -0.03em; }
.pw-block-head p { color: #8d98a3; margin-top: 6px; }
.pw-empty { color: #8d98a3; padding: 12px 0 28px; }

.pw-table { width: 100%; border-collapse: collapse; }
.pw-table th { color: #8d98a3; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; }
.pw-table th, .pw-table td { padding: 14px 10px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.pw-table tbody tr { position: relative; }
.pw-table tbody tr:hover { background: #10141a; }
.pw-table tbody tr:hover td:first-child { box-shadow: inset 2px 0 0 #ff2638; }
.pw-table .pw-go { color: #8d98a3; }
.pw-table tr:hover .pw-go { color: #ff2638; transform: translateX(4px); }
.pw-blurb { max-width: 360px; color: #d5dbe1; }
body.public .badge.low { color: #8fbf9b; border-color: #234232; background: #0d1612; }
body.public .badge.medium { color: #e2c27a; border-color: #4d3d1d; background: #16130d; }
body.public .badge.high, body.public .badge.critical { color: #ff8b95; border-color: #5e2430; background: #180d10; }

.pw-directory { list-style: none; margin: 0; padding: 0; display: grid; }
.pw-directory a {
  display: grid; grid-template-columns: auto 1.4fr 0.6fr 0.8fr auto; gap: 14px; align-items: center;
  padding: 14px 8px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); color: inherit;
}
.pw-directory a:hover { text-decoration: none; background: #10141a; }
.pw-directory strong, .pw-directory small { display: block; }
.pw-directory small { color: #8d98a3; }
.pw-letter, .pw-logo-img {
  width: 36px; height: 36px; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 8px;
}
.pw-letter { display: grid; place-items: center; }
.pw-logo-img { object-fit: contain; background: #161b22; padding: 4px; box-sizing: border-box; }
.pw-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.pw-tabs button { background: transparent; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 8px; }
.pw-tabs button.active { background: #ff2638; border-color: #ff2638; color: white; }
.pw-levels { list-style: none; margin: 0; padding: 0 0 32px; display: grid; gap: 16px; }
.pw-levels li { display: grid; gap: 8px; }
.pw-levels div:first-child { display: flex; justify-content: space-between; align-items: center; }
.pw-meter { height: 8px; background: #15191e; border-radius: 99px; overflow: hidden; }
.pw-meter span { display: block; height: 100%; background: #ff2638; }
.pw-steps { list-style: none; margin: 0; padding: 0 0 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pw-steps span { color: #ff2638; font-weight: 700; letter-spacing: 0.08em; }
.pw-steps p { color: #b7c0c8; line-height: 1.55; margin-top: 8px; }
.pw-foot {
  display: grid; grid-template-columns: 1.4fr auto; gap: 18px 32px; width: min(1120px, calc(100% - 40px));
  margin: 0 auto; padding: 28px 0 40px; border-top: 1px solid rgba(255, 255, 255, 0.06); color: #8d98a3;
}
.pw-foot strong { color: #f4f6f8; }
.pw-foot nav { display: grid; gap: 8px; }
.pw-foot .disclaimer { grid-column: 1 / -1; }

.diff-fold { margin-top: 4px; }
.diff-fold summary { cursor: pointer; color: #8d98a3; font-size: 0.86rem; }
.diff { list-style: none; margin: 10px 0 0; padding: 0; background: #0b0e12; border: 1px solid rgba(255, 255, 255, 0.06); border-radius: 8px; overflow: auto; }
.diff li { display: grid; grid-template-columns: 42px 1fr; gap: 10px; padding: 6px 10px; font-family: Consolas, "Courier New", monospace; font-size: 0.82rem; line-height: 1.45; }
.diff span { color: #66717c; text-align: right; }
.diff code { white-space: pre-wrap; }
.diff-del { background: rgba(255, 38, 56, 0.12); }
.diff-add { background: rgba(70, 130, 90, 0.16); }
.diff-same { color: #b7c0c8; }

@media (max-width: 980px) {
  .pw-nav { grid-template-columns: auto auto; }
  .pw-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 12px 16px 16px;
    background: #0d1014; border-bottom: 1px solid rgba(255, 255, 255, 0.06); grid-auto-flow: row;
  }
  .pw-links.open { display: grid; gap: 12px; }
  .pw-burger { display: inline-flex; }
  .pw-cta { white-space: nowrap; padding: 8px 10px; font-size: 0.8rem; }
  .pw-cta span { display: none; }
  .pw-hero, .pw-stats, .pw-steps, .pw-home-steps { grid-template-columns: 1fr; }
  .pw-rail a { width: 104px; }
  .pw-stage { min-height: 320px; }
  #globe { height: 320px; }
  .pw-stats { grid-template-columns: 1fr 1fr; }
  .pw-table thead { display: none; }
  .pw-table, .pw-table tbody, .pw-table tr, .pw-table td { display: block; width: 100%; }
  .pw-table tr { padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
  .pw-table td { border: 0; padding: 4px 10px; }
  .pw-table td[data-label]::before { content: attr(data-label); display: block; color: #8d98a3; font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; }
  .pw-directory a { grid-template-columns: auto 1fr auto; }
  .pw-directory a span:nth-child(3), .pw-directory a span:nth-child(4) { display: none; }
  .pw-foot { grid-template-columns: 1fr; }
}
html.pw-leave .wrap,
html.pw-leave .pw-foot {
  filter: blur(3px);
  opacity: 0.72;
  transform: translateY(-4px);
  transition: filter 120ms cubic-bezier(0.4, 0, 0.2, 1), opacity 120ms cubic-bezier(0.4, 0, 0.2, 1), transform 120ms cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}
html.pw-arrive .wrap,
html.pw-arrive .pw-foot {
  filter: blur(4px);
  opacity: 0.35;
  transform: translateY(8px);
}
html.pw-arrive.pw-settled .wrap,
html.pw-arrive.pw-settled .pw-foot {
  filter: blur(0);
  opacity: 1;
  transform: none;
  transition: filter 240ms cubic-bezier(0.22, 1, 0.36, 1), opacity 240ms cubic-bezier(0.22, 1, 0.36, 1), transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
}
html.pw-arrive .pw-directory li {
  opacity: 0;
}
html.pw-arrive.pw-settled .pw-directory li {
  animation: pw-row 280ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes pw-row {
  from { opacity: 0; transform: translateY(12px); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: none; }
}
@media (prefers-reduced-motion: reduce) {
  .pw-float, .pw-rail { animation: none; }
  .pw-marquee-viewport { overflow: visible; mask-image: none; }
  .pw-rail { flex-wrap: wrap; width: auto; }
  .pw-rail a[aria-hidden="true"] { display: none; }
  .pw-table tr:hover .pw-go { transform: none; }
  html.pw-leave .wrap,
  html.pw-leave .pw-foot,
  html.pw-arrive .wrap,
  html.pw-arrive .pw-foot,
  html.pw-arrive .pw-directory li {
    filter: none;
    opacity: 1;
    transform: none;
    transition: none;
    animation: none;
  }
}
