* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--pl-font, system-ui, sans-serif);
  background: var(--pl-surface, #f7f7f4);
  color: var(--pl-text, #1c1c1a);
}
.topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 24px; border-bottom: 1px solid var(--pl-line, #ddd);
  background: var(--pl-surface-raised, #fff);
}
.wordmark { font-weight: 700; font-size: 18px; letter-spacing: 0.01em; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.payload-home {
  font-weight: 700; font-size: 15px; letter-spacing: 0.01em; white-space: nowrap;
  color: inherit; text-decoration: none; padding-right: 10px;
  border-right: 1px solid var(--pl-line, #ddd);
}
.payload-home:hover { text-decoration: underline; }
.payload-home:focus-visible { outline: 2px solid var(--pl-accent, #b7e01e); outline-offset: 2px; }
.container { max-width: 1080px; margin: 0 auto; padding: 24px 16px 64px; }
.footer { max-width: 1080px; margin: 0 auto; padding: 16px; color: var(--pl-text-muted, #666); font-size: 13px; }
.card {
  background: var(--pl-surface-raised, #fff);
  border: 1px solid var(--pl-line, #ddd);
  border-radius: var(--pl-radius, 12px);
  padding: 20px; margin-bottom: 16px;
}
.muted { color: var(--pl-text-muted, #666); }
button, .btn {
  font: inherit; cursor: pointer; border-radius: 8px;
  border: 1px solid var(--pl-line, #ccc); background: var(--pl-surface-raised, #fff); color: inherit;
  padding: 8px 14px; text-decoration: none; display: inline-block;
}
button.primary, .btn.primary {
  background: var(--pl-accent, #b7e01e); border-color: transparent;
  color: var(--pl-accent-ink, #14230a); font-weight: 600;
}
button:disabled { opacity: 0.55; cursor: default; }
input[type="text"], input[type="password"] {
  font: inherit; width: 100%; padding: 9px 10px;
  border: 1px solid var(--pl-line, #ccc); border-radius: 8px;
}
.error { color: var(--pl-danger, #b3261e); }
.badge {
  display: inline-block; padding: 2px 8px; border-radius: 999px;
  font-size: 12px; font-weight: 600; border: 1px solid var(--pl-line, #ccc);
}
.badge.high { background: #f9dcd9; }
.badge.medium { background: #fdf3d7; }
.badge.low { background: #dde9f7; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--pl-line, #e3e3e0); vertical-align: top; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.switcher { position: relative; }
.switcher-menu {
  position: absolute; right: 0; top: calc(100% + 6px); min-width: 240px; z-index: 20;
  background: var(--pl-surface-raised, #fff); border: 1px solid var(--pl-line, #ddd); border-radius: 10px;
  padding: 8px; box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.switcher-menu a { display: block; padding: 7px 8px; border-radius: 6px; color: inherit; text-decoration: none; }
.switcher-menu a:hover { background: var(--pl-surface, #f2f2ee); }
.switcher-menu a.current { font-weight: 700; }
.drop {
  border: 2px dashed var(--pl-line, #ccc); border-radius: 12px; padding: 22px;
  text-align: center; color: var(--pl-text-muted, #666);
}
.drop.over { border-color: var(--pl-accent, #b7e01e); color: inherit; }
code { background: var(--pl-surface, #f0f0ec); padding: 1px 5px; border-radius: 4px; }
pre.snippet {
  background: var(--pl-surface, #f0f0ec); border-radius: 8px; padding: 10px 12px;
  font-size: 12.5px; overflow-x: auto; white-space: pre-wrap; word-break: break-word;
  margin: 6px 0 0;
}
.finding { border-top: 1px solid var(--pl-line, #e3e3e0); padding: 12px 0; }
.finding:first-of-type { border-top: none; }
.finding h3 { margin: 0 0 4px; font-size: 15px; }
.finding .loc { font-size: 13px; }
.excerpt { font-size: 13px; color: var(--pl-text-muted, #555); word-break: break-word; }
.sev-head { display: flex; gap: 10px; align-items: center; }

/* Universal UX correction (2026-11-13): the product-key bridge is a
   quiet disclosure under the one primary sign-in action, and the
   topbar wraps instead of squeezing at phone widths. */
details.bridge summary { cursor: pointer; font-weight: 700; font-size: 20px; }
@media (max-width: 640px) {
  .topbar { flex-wrap: wrap; padding: 10px 14px; row-gap: 8px; }
  .brand { flex: 1 1 auto; }
  .wordmark { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .topbar-right { min-width: 0; }
  .topbar-right .muted { display: inline-block; max-width: 52vw; vertical-align: bottom; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
