/* htmx indicator styles (moved here to avoid inline <style> CSP violation) */
.htmx-indicator{opacity:0}
.htmx-request .htmx-indicator{opacity:1;transition:opacity 200ms ease-in}
.htmx-request.htmx-indicator{opacity:1;transition:opacity 200ms ease-in}

/* DMARC inline style replacements (CSP style-src-attr compliance) */
.sp-dmarc-map { height: 320px; }
.sp-dmarc-toplists-scroll { max-height: 320px; overflow-y: auto; overflow-x: auto; }
.sp-dmarc-toplists-scroll-tall { max-height: 360px; overflow-y: auto; overflow-x: auto; }
.sp-dmarc-thead-sticky { background-color: var(--bs-body-bg); z-index: 1; }
.sp-dmarc-th-name { min-width: 260px; }
.sp-dmarc-th-name-wide { min-width: 280px; }
.sp-dmarc-th-provider { min-width: 220px; }

/* Colour, radius and font tokens live in tokens.css (DESIGN.md, STAT-422); --sp-* are aliases defined there. */
:root {
  --sp-public-shell-max-width: 1200px;
  --sp-public-shell-width: 92vw;
}

body {
  background:
    radial-gradient(1100px 520px at 75% -10%, var(--ls-bg-glow), transparent 70%),
    var(--ls-bg);
  background-attachment: fixed;
  color: var(--ls-text);
  font-family: var(--ls-font);
  min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: var(--ls-font);
  letter-spacing: -0.01em;
}

a {
  text-decoration: none;
  color: var(--ls-link);
}

a:hover,
a:focus {
  color: var(--ls-link-hover);
}

article,
section > article {
  background: var(--sp-card);
  border: 1px solid var(--sp-card-border);
  border-radius: var(--sp-radius);
  box-shadow: var(--sp-card-shadow);
  padding: 1.25rem;
  margin-bottom: 1.1rem;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

form.row {
  flex-direction: row;
  flex-wrap: wrap;
}

form label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--sp-muted);
  font-size: 0.9rem;
}

.sp-auth {
  display: flex;
  justify-content: center;
  padding: 2.5rem 0;
}

.sp-auth-card {
  width: min(520px, 100%);
}

/* The password forms group their fields in a fieldset; the browser's default border does not fit the card */
.sp-auth-card fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

/* Only articles inside the card: ".sp-auth article" also matched the card itself and overrode its 520px width */
.sp-auth-card article {
  width: 100%;
}

.sp-auth h1,
.sp-auth h2 {
  margin-bottom: 0.35rem;
}

.sp-auth p {
  margin-top: 1rem;
}

.sp-auth-note {
  margin-top: 1rem;
  color: var(--sp-muted);
}

.sp-auth-subtitle {
  margin-top: 0.5rem;
  color: var(--sp-muted);
  text-align: center;
}

.sp-signup-subtitle {
  margin-bottom: 2.5rem;
}

.sp-auth-help {
  margin: 0.35rem 0 0;
  color: var(--sp-muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.sp-auth-form-centered {
  margin: 0 auto;
  width: min(900px, 100%);
}

.sp-auth-form-left,
.sp-auth-form-left label,
.sp-auth-form-left .form-check-label {
  text-align: left;
}

.sp-form-switch label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
}

.sp-form-switch input[type="checkbox"] {
  margin: 0;
}

.sp-auth-form-compact {
  width: 100%;
}

.sp-auth-form-compact input,
.sp-auth-form-compact button {
  width: 100%;
  box-sizing: border-box; /* padding and border inside the width, so fields do not overflow the card */
}

.sp-form-page {
  display: flex;
  justify-content: center;
}

.sp-form-card {
  width: min(900px, 100%);
}

.sp-form-card-wide {
  width: 100%;
  max-width: none;
}

.sp-mfa-recovery-card {
  width: min(560px, 100%);
}

.sp-mfa-recovery-card h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
}

.sp-mfa-recovery-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  padding: 0;
  list-style: none;
}

.sp-mfa-recovery-list li {
  border: 1px solid var(--sp-card-border);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  background: rgba(255, 255, 255, 0.04);
}

.sp-mfa-recovery-list code {
  font-size: 0.95rem;
}

@media (max-width: 575.98px) {
  .sp-mfa-recovery-list {
    grid-template-columns: 1fr;
  }
}

.sp-form-card-host {
  width: min(980px, 100%);
}

.sp-host-url-field {
  margin-bottom: 0.8rem;
}

.sp-host-url-field p {
  margin: 0;
}

.sp-host-url-field input[type="url"] {
  width: 100%;
}

.sp-host-checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0.35rem 0 1rem;
}

input[name="visible_to_customers"] {
  width: 1.45rem;
  height: 1.45rem;
}

input[name="request_assessment_answers"] {
  width: 1.45rem;
  height: 1.45rem;
}

.sp-host-domain-step {
  margin: 0.2rem 0 0.9rem;
  padding: 1rem;
  border: 1px solid var(--sp-card-border);
  border-radius: 0.9rem;
  background: var(--sp-card-soft);
}

.sp-host-domain-step h2,
.sp-host-domain-step h4 {
  margin: 0 0 0.4rem;
}

.sp-host-domain-step p {
  margin: 0 0 0.7rem;
}

.sp-host-domain-step-grid {
  grid-template-columns: minmax(280px, 1fr) minmax(280px, 1fr);
}

@media (max-width: 767px) {
  .sp-host-domain-step-grid {
    grid-template-columns: 1fr;
  }
}

.ls-docs-compact .card-body {
  padding: 1rem;
}

.ls-docs-compact .accordion-body {
  padding: 1rem;
}

.ls-docs-compact p {
  margin-bottom: 0.5rem;
}

.ls-docs-compact ul {
  margin-bottom: 0.75rem;
}

.ls-docs-compact h6 {
  margin-top: 0.75rem;
  margin-bottom: 0.5rem;
}

.ls-docs-compact code,
.ls-docs-compact pre {
  font-size: 0.875rem;
}

.ls-docs-compact .accordion-collapse:not(.show):not(.collapsing) {
  display: none;
}

.ls-docs-compact .accordion-collapse.show,
.ls-docs-compact .accordion-collapse.collapsing {
  display: block;
}

.ls-docs-compact .accordion-item {
  border-radius: 0.6rem;
  overflow: hidden;
  margin-bottom: 0.6rem;
}

.ls-docs-compact .accordion-button {
  /* Keeps a wrapped heading clear of the arrow on a phone (STAT-519) */
  gap: 0.75rem;
  border-radius: 0;
  border: 0;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  background: var(--sp-card-soft);
  color: var(--sp-text);
  box-shadow: none;
}

.ls-docs-compact .accordion-button:hover,
.ls-docs-compact .accordion-button:focus {
  background: var(--sp-card-soft);
  color: var(--sp-text);
  box-shadow: none;
}

.ls-docs-compact .accordion-button:not(.collapsed) {
  background: rgba(59, 130, 246, 0.12);
  color: var(--sp-text);
}

html[data-bs-theme="light"] .ls-docs-compact .accordion-button {
  background: rgba(15, 23, 42, 0.04);
  color: #0f172a;
}

html[data-bs-theme="light"] .ls-docs-compact .accordion-button:hover,
html[data-bs-theme="light"] .ls-docs-compact .accordion-button:focus {
  background: rgba(15, 23, 42, 0.06);
  color: #0f172a;
}

html[data-bs-theme="light"] .ls-docs-compact .accordion-button:not(.collapsed) {
  background: rgba(37, 99, 235, 0.08);
  color: #0f172a;
}

.sp-form-card form {
  width: 100%;
}

.sp-form-stack {
  display: grid;
  justify-items: center;
  gap: 1rem;
}

.sp-form-stack > * {
  width: min(900px, 100%);
}

.secondary {
  background: rgba(148, 163, 184, 0.2);
  border-color: rgba(148, 163, 184, 0.3);
  color: var(--sp-text);
}

.secondary:hover {
  background: rgba(148, 163, 184, 0.35);
}

.error {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.5);
  color: #f87171;
}

.error:hover {
  background: rgba(239, 68, 68, 0.3);
}

mark.error {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  padding: 0.2rem 0.4rem;
  border-radius: 0.4rem;
}

html[data-bs-theme="light"] .secondary {
  background: rgba(15, 23, 42, 0.06);
  border-color: rgba(15, 23, 42, 0.12);
  color: #0f172a;
}

html[data-bs-theme="light"] .secondary:hover {
  background: rgba(15, 23, 42, 0.1);
}

html[data-bs-theme="light"] .error {
  color: #dc2626;
}

.sp-grid > div {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.errorlist {
  list-style: none;
  padding: 0;
  margin: 0.25rem 0 0;
  color: #f87171;
  font-size: 0.85rem;
}

.errorlist li {
  margin: 0.2rem 0;
}

.form-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-check-input {
  width: 1rem;
  height: 1rem;
  margin: 0;
}

.survey-answer-head .form-check-input {
  flex: 0 0 auto;
  margin-top: 0.2rem;
  border-width: 2px;
}

.form-check-label {
  margin: 0;
  color: var(--sp-muted);
}

.form-check label.form-check-label {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0;
}

.survey-answer-item {
  margin-bottom: 0.85rem;
}

.survey-answer-head {
  align-items: flex-start;
}

.survey-answer-head .form-check-label {
  display: inline;
  margin: 0;
  color: var(--sp-text);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
}

.survey-answer-help {
  margin-left: 1.55rem;
  color: var(--sp-muted);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.45;
}

.sp-assessment-score {
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  line-height: 1;
}

.sp-assessment-grade {
  font-size: 1.35rem;
  padding: 0.72rem 1.15rem;
}

html[data-bs-theme="light"] form label,
html[data-bs-theme="light"] .form-check-label {
  color: #475569;
}

html[data-bs-theme="light"] .survey-answer-head .form-check-label {
  color: #0f172a;
}

html[data-bs-theme="light"] .survey-answer-head .form-check-input {
  border-color: #64748b;
  background-color: #ffffff;
  box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.18);
}

html[data-bs-theme="light"] .survey-answer-head .form-check-input:hover {
  border-color: #2563eb;
}

html[data-bs-theme="light"] .survey-answer-head .form-check-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.18);
}

html[data-bs-theme="light"] .survey-answer-head .form-check-input:checked {
  background-color: #2563eb;
  border-color: #2563eb;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.18);
}

html[data-bs-theme="light"] .survey-answer-help {
  color: #52607a;
}

button,
input[type="submit"],
input[type="button"],
input[type="reset"],
a[role="button"] {
  border-radius: 999px;
  padding: 0.6rem 1.3rem;
  border: 1px solid var(--sp-card-border);
  background: rgba(255, 255, 255, 0.08);
  color: var(--sp-text);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

input[type="submit"],
a[role="button"],
button[type="submit"] {
  width: 100%;
}

@media (min-width: 768px) {
  input[type="submit"],
  a[role="button"],
  button[type="submit"] {
    width: auto;
    min-width: 180px;
  }
}

button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
a[role="button"]:hover {
  background: rgba(255, 255, 255, 0.16);
}

button:focus,
input[type="submit"]:focus,
input[type="button"]:focus,
input[type="reset"]:focus,
a[role="button"]:focus {
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(56, 189, 248, 0.2);
}

html[data-bs-theme="light"] button,
html[data-bs-theme="light"] input[type="submit"],
html[data-bs-theme="light"] input[type="button"],
html[data-bs-theme="light"] input[type="reset"],
html[data-bs-theme="light"] a[role="button"] {
  background: rgba(15, 23, 42, 0.04);
  color: #0f172a;
}

html[data-bs-theme="light"] button:hover,
html[data-bs-theme="light"] input[type="submit"]:hover,
html[data-bs-theme="light"] input[type="button"]:hover,
html[data-bs-theme="light"] input[type="reset"]:hover,
html[data-bs-theme="light"] a[role="button"]:hover {
  background: rgba(15, 23, 42, 0.08);
}

.sp-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem;
}

.sp-container-fluid {
  width: 100%;
  padding: 1.25rem;
}

.sp-grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  align-items: start;
  margin-bottom: 0.75rem;
}

.sp-overview-card :is(h2, h3) {
  margin-bottom: 0.65rem;
}

/* The explanations on the technical overview are folded away under "About this table" (STAT-493, owner 2026-11-15) */
.sp-overview-details {
  margin-bottom: 0.75rem;
}

.sp-overview-details > summary {
  color: var(--ls-link);
  cursor: pointer;
  min-height: 24px;
  margin-bottom: 0.5rem;
}

.sp-overview-copy {
  color: var(--sp-muted);
  line-height: 1.65;
  margin-bottom: 1rem;
}

.sp-overview-chart {
  margin-bottom: 1rem;
}

.sp-table-scroll {
  overflow-x: auto;
  border: 1px solid var(--sp-card-border);
  border-radius: 0.9rem;
  background: rgba(15, 23, 42, 0.24);
}

html[data-bs-theme="light"] .sp-table-scroll {
  background: rgba(255, 255, 255, 0.75);
}

.sp-table-scroll table {
  min-width: 860px;
  margin: 0;
}

.sp-table-scroll .table thead th {
  background: rgba(15, 23, 42, 0.5);
  border-bottom: 1px solid var(--sp-card-border);
}

.sp-table-scroll .table tbody td {
  background: transparent;
}

.sp-domain-list-page,
.sp-domain-list-page .sp-form-card {
  min-width: 0;
}

.sp-domain-list-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

/* As wide as the card but never under 640 px, so a tablet scrolls instead of squeezing the columns; was a fixed 1180 px
   that scrolled even at 1366 px (STAT-531) and 860 px before the list had five columns (STAT-591). Must come after
   .sp-table-scroll table. */
.sp-domain-list-table-wrap table {
  min-width: max(100%, 640px);
}

.sp-domain-list-table-wrap th,
.sp-domain-list-table-wrap td {
  white-space: nowrap;
}

.sp-domain-list-table-wrap .sp-posture-cell {
  white-space: normal;
}

.sp-table-scroll .table thead th:first-child,
.sp-table-scroll .table tbody td:first-child {
  padding-left: 1rem;
}

.sp-table-action-form {
  display: inline;
  margin: 0;
}

.sp-table-action-btn {
  width: auto !important;
  min-width: 0 !important;
  padding: 0.2rem 0.55rem !important;
}

html[data-bs-theme="light"] .sp-table-scroll .table thead th {
  background: rgba(148, 163, 184, 0.2);
}

.sp-overview-empty {
  margin-top: 0.9rem;
}

.sp-overview-note {
  display: block;
  margin-top: 0.5rem;
  color: var(--sp-muted);
}

fieldset[role="search"] {
  border: 0;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 0;
  align-items: center;
  margin-top: 0.75rem;
}

fieldset[role="search"] input[type="search"] {
  width: 100%;
  flex: 1 1 auto;
  box-sizing: border-box;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

fieldset[role="search"] input[type="submit"] {
  width: auto;
  white-space: nowrap;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-left: 0;
  height: 100%;
}

.sp-modal {
  border: 0;
  padding: 0;
  background: transparent;
}

.sp-modal::backdrop {
  background: rgba(2, 6, 23, 0.95);
}

.sp-modal article {
  background: var(--sp-card);
  border: 1px solid var(--sp-card-border);
  border-radius: var(--sp-radius);
  box-shadow: var(--sp-card-shadow);
  color: #fff;
  padding: 1.5rem;
  max-width: 700px;
  width: min(90vw, 700px);
}

.sp-modal header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  color: var(--sp-text);
}

.sp-modal .close {
  width: 1.5rem;
  height: 1.5rem;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--sp-card-border);
  background: rgba(255, 255, 255, 0.08);
  color: var(--sp-text);
}

.sp-modal .close::before,
.sp-modal .close::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 2px;
  background: currentColor;
}

.sp-modal .close::before {
  transform: rotate(45deg);
}

.sp-modal .close::after {
  transform: rotate(-45deg);
}

details[role="list"] {
  position: relative;
}

.sp-user-menu {
  position: relative;
}

details[role="list"] summary {
  list-style: none;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--sp-card-border);
  background: rgba(255, 255, 255, 0.08);
  color: var(--sp-text);
  cursor: pointer;
}

.sp-user-menu > summary {
  list-style: none;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--sp-card-border);
  background: rgba(255, 255, 255, 0.08);
  color: var(--sp-text);
  cursor: pointer;
}

details[role="list"] summary::-webkit-details-marker {
  display: none;
}

.sp-user-menu > summary::-webkit-details-marker {
  display: none;
}

details[role="list"][open] summary {
  background: rgba(255, 255, 255, 0.16);
}

.sp-user-menu[open] > summary {
  background: rgba(255, 255, 255, 0.16);
}

details[role="list"] [role="listbox"] {
  position: absolute;
  z-index: 1200;
  margin-top: 0.5rem;
  background: rgba(10, 22, 46, 0.95);
  border: 1px solid var(--sp-card-border);
  border-radius: 1rem;
  box-shadow: var(--sp-card-shadow);
  padding: 0.75rem;
  min-width: 220px;
}

.sp-user-menu .sp-user-panel {
  position: absolute;
  z-index: 1200;
  margin-top: 0.5rem;
  background: rgba(10, 22, 46, 0.95);
  border: 1px solid var(--sp-card-border);
  border-radius: 1rem;
  box-shadow: var(--sp-card-shadow);
  padding: 0.75rem;
  min-width: 220px;
}

details[role="list"] select {
  width: 100%;
  margin-top: 0.5rem;
}

.sp-user-menu select {
  width: 100%;
  margin-top: 0.5rem;
}

html[data-bs-theme="light"] details[role="list"] summary {
  background: rgba(15, 23, 42, 0.04);
  color: #0f172a;
}

html[data-bs-theme="light"] .sp-user-menu > summary {
  background: rgba(15, 23, 42, 0.04);
  color: #0f172a;
}

html[data-bs-theme="light"] details[role="list"][open] summary {
  background: rgba(15, 23, 42, 0.08);
}

html[data-bs-theme="light"] .sp-user-menu[open] > summary {
  background: rgba(15, 23, 42, 0.08);
}

html[data-bs-theme="light"] details[role="list"] [role="listbox"] {
  background: rgba(255, 255, 255, 0.95);
}

html[data-bs-theme="light"] .sp-user-menu .sp-user-panel {
  background: rgba(255, 255, 255, 0.95);
}

.sp-user-trigger {
  width: 44px;
  height: 44px;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #0ea5e9, #4f46e5) !important;
  color: #ffffff !important;
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
  cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  user-select: none;
}

.sp-user-trigger:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.sp-user-panel {
  display: grid;
  gap: 0.6rem;
  min-width: 320px;
}

.sp-user-section {
  display: grid;
  gap: 0.5rem;
}

.sp-user-section-title {
  margin: 0;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sp-muted);
  font-weight: 700;
}

.sp-user-divider {
  height: 1px;
  background: var(--sp-card-border);
  margin: 0.2rem 0;
}

.sp-user-menu .sp-user-panel {
  right: 0;
  left: auto;
  min-width: 320px;
  width: min(92vw, 320px);
}

@media (max-width: 420px) {
  .sp-user-menu .sp-user-panel {
    min-width: 0;
    width: 92vw;
  }
}

/* Base tables */
table {
  width: 100%;
  border-collapse: collapse;
}

table[role="grid"] {
  width: 100%;
}

th,
td {
  text-align: left;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--sp-card-border);
}

thead th {
  font-weight: 600;
  color: var(--sp-text);
}

tbody tr:hover {
  background: var(--sp-card-soft);
}

.sortable th {
  cursor: pointer;
  font-weight: 600;
  white-space: nowrap;
}

.sp-grade-col,
.sp-grade-cell {
  text-align: center;
}

/* A short note under a grade, such as an older certificate result (STAT-589) */
.sp-grade-note {
  display: block;
  margin-top: 0.2rem;
  color: var(--sp-muted);
  font-size: 0.75rem;
  line-height: 1.2;
}

/* Alerts */
.alert {
  padding: 0.85rem 1rem;
  border-radius: 1rem;
  border: 1px solid var(--sp-card-border);
  background: var(--sp-card-soft);
  color: var(--sp-text);
  margin-bottom: 0.75rem;
}

.alert-info {
  background: rgba(56, 189, 248, 0.2);
}

.alert-success {
  background: rgba(16, 185, 129, 0.2);
}

.alert-warning {
  background: rgba(245, 158, 11, 0.2);
}

.alert-danger {
  background: rgba(239, 68, 68, 0.2);
}

/* Tooltip */
.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 200px;
  background-color: #0f172a;
  color: #fff;
  text-align: center;
  padding: 6px 8px;
  border-radius: 8px;
  position: absolute;
  z-index: 10;
  bottom: 125%;
  left: 50%;
  margin-left: -100px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.tooltip .tooltiptext::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #0f172a transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

/* Grade boxes */
.gradebox_outer {
  display: flex;
  justify-content: center;
}

.gradebox {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 150px;
  width: 50%;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  font-size: 64px;
  font-weight: 700;
  color: #fff;
  border: 1px solid var(--sp-card-border);
  box-shadow: var(--sp-card-shadow);
}

.score-darkgreen { background-color: #0f7a2b; }
.score-green { background-color: #14892c; }
.score-blue { background-color: #4a6785; }
.score-orange { background-color: darkorange; }
.score-yellow { background-color: #ffd351; color: #0f172a; }
.score-red { background-color: #d04437; }
.score-gray { background-color: darkgray; color: #0f172a; }

.sp-grade-badges {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-left: 0.35rem;
  vertical-align: middle;
}

.sp-grade-badge {
  width: 176px;
  height: 176px;
  border-radius: 999px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.6rem;
  color: #fff;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.22);
  line-height: 1;
}

.sp-grade-badge.score-yellow,
.sp-grade-badge.score-gray {
  color: #0f172a;
}

.sp-grade-badge-letter {
  font-size: 1.5rem;
  font-weight: 700;
  opacity: 0.95;
}

.sp-grade-badge-count {
  font-size: 2rem;
  font-weight: 800;
}

.sp-landing-card {
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.7;
}

.sp-landing-panel {
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.6;
  padding: 1rem 1.5rem;
  border: 1px solid var(--sp-card-border);
  border-radius: var(--sp-radius);
  background: var(--sp-card-soft);
  margin: 1.5rem 0;
}

.sp-landing-card h2,
.sp-landing-card h3 {
  text-align: center;
}

.sp-landing-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.6rem;
  border: 2px solid currentColor;
  border-radius: 999px;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
}

.sp-expand-toggle {
  appearance: none;
  border: 1px solid var(--sp-card-border);
  background: transparent;
  color: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  margin-right: 0.6rem;
  /* WCAG 2.2 target size minimum: 24 x 24 CSS px (STAT-520) */
  min-width: 24px;
  min-height: 24px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.sp-expand-icon {
  display: inline-flex;
  align-items: center;
  transition: transform 0.2s ease-in-out;
}

.sp-expand-toggle[aria-expanded="true"] .sp-expand-icon {
  transform: rotate(180deg);
}

.sp-expand-panel.is-collapsed {
  display: none;
}

.sp-domain-explainer {
  max-width: 65%;
}

.sp-domain-explainer-note {
  width: 35%;
  vertical-align: top;
}

.sp-domain-report-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

.sp-domain-hero {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  align-items: start;
}

.sp-domain-kicker {
  margin: 0 0 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.72rem;
  color: var(--sp-muted);
}

.sp-domain-title {
  margin: 0;
}

.sp-domain-meta {
  margin: 1rem 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1rem;
}

.sp-domain-meta dt {
  margin: 0;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sp-muted);
}

.sp-domain-meta dd {
  margin: 0.2rem 0 0;
  font-weight: 600;
}

.sp-domain-hero-side {
  display: grid;
  gap: 0.85rem;
  align-content: start;
}

.sp-domain-hero .gradebox_outer {
  justify-content: stretch;
}

.sp-domain-hero .gradebox {
  width: 100%;
  min-height: 120px;
  font-size: clamp(2.2rem, 3.4vw, 3.2rem);
}

.sp-domain-pdf-label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--sp-muted);
}

/* PDF download spinner */
.sp-pdf-download {
  position: relative;
}

.sp-pdf-download.is-loading {
  pointer-events: none;
  opacity: 0.8;
}

.sp-pdf-download.is-loading .sp-domain-pdf-label {
  visibility: hidden;
}

.sp-pdf-download.is-loading .sp-pdf-loading-text {
  display: flex;
}

.sp-pdf-loading-text {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--sp-primary);
  animation: sp-pulse 1.5s ease-in-out infinite;
}

@keyframes sp-pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.sp-readmore-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.7rem;
  margin: 0.2rem 0 0;
}

.sp-readmore-inline {
  display: inline;
}

.sp-readmore-links {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.8rem;
}

.sp-readmore-item {
  white-space: nowrap;
}

.sp-domain-report-table th:nth-child(1),
.sp-domain-report-table td:nth-child(1) {
  padding-right: 0.4rem;
}

.sp-domain-report-table th:nth-child(2),
.sp-domain-report-table td:nth-child(2) {
  padding-left: 0.4rem;
}

.sp-domain-report-table th:last-child,
.sp-domain-report-table td:last-child {
  width: 90px;
  white-space: nowrap;
}

.sp-domain-report-table td:last-child {
  text-align: center;
}

.sp-domain-report-table {
  table-layout: fixed;
}

.sp-domain-report-table th:nth-child(1),
.sp-domain-report-table td:nth-child(1) {
  width: 60%;
}

.sp-domain-report-table th:nth-child(2),
.sp-domain-report-table td:nth-child(2) {
  width: 30%;
}

.sp-domain-report-v2 {
  gap: 1.15rem;
}

.sp-domain-report-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.sp-domain-report-card {
  min-height: 104px;
  padding: 0.8rem 0.9rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.65rem;
}

.sp-domain-report-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
}

.sp-domain-report-card-head > span:first-child {
  color: var(--sp-muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sp-domain-report-card > strong {
  font-size: clamp(1.05rem, 1.45vw, 1.35rem);
  line-height: 1.15;
  overflow-wrap: anywhere;
}

/* An old last scan, and why no newer scan comes (a missing verification TXT record) */
.sp-domain-report-card > strong.sp-domain-report-card-value-warning,
.sp-domain-report-card-note {
  color: var(--ls-warn);
}

.sp-domain-report-card-note {
  display: flex;
  gap: 0.35rem;
  align-items: flex-start;
  line-height: 1.35;
}

.sp-domain-report-card-note .ls-icon {
  flex: none;
  margin-top: 0.1rem;
}

.sp-domain-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  border-radius: 999px;
  padding: 0.22rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.1;
  white-space: normal;
  text-align: center;
  border: 1px solid transparent;
}

.sp-domain-status-success {
  color: #064e3b;
  background: rgba(16, 185, 129, 0.18);
  border-color: rgba(16, 185, 129, 0.35);
}

.sp-domain-status-warning {
  color: #7c2d12;
  background: rgba(245, 158, 11, 0.18);
  border-color: rgba(245, 158, 11, 0.35);
}

.sp-domain-status-danger {
  color: #7f1d1d;
  background: rgba(239, 68, 68, 0.17);
  border-color: rgba(239, 68, 68, 0.35);
}

.sp-domain-status-neutral {
  color: var(--sp-text);
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.28);
}

.sp-domain-report-v2-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 360px);
  gap: 1.2rem;
  align-items: start;
}

.sp-domain-report-v2-panel h2,
.sp-domain-report-v2-panel h4,
.sp-domain-section-heading h2,
.sp-domain-section-heading h4 {
  margin: 0 0 0.65rem;
}

.sp-domain-report-v2-note {
  padding: 0.85rem;
  border: 1px solid var(--sp-card-border);
  border-radius: 1rem;
  background: rgba(59, 130, 246, 0.08);
}

.sp-domain-report-v2-note p {
  margin: 0.35rem 0 0;
  color: var(--sp-muted);
}

.sp-domain-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.sp-domain-report-v2 .sp-domain-report-table {
  table-layout: fixed;
}

.sp-domain-report-v2 .sp-domain-control-col {
  width: 52%;
}

.sp-domain-report-v2 .sp-domain-status-col {
  width: auto;
}

.sp-domain-report-v2 .sp-domain-score-col {
  width: 7rem;
}

/* Child combinators: tables inside an expanded row (cookies, JavaScript libraries) keep wrapping (STAT-427) */
.sp-domain-report-v2 .sp-domain-report-table > thead > tr > th:last-child,
.sp-domain-report-v2 .sp-domain-report-table > tbody > tr:not(.sp-expand-panel) > td:last-child {
  width: 7rem;
  white-space: nowrap;
}

.sp-domain-report-v2 .sp-domain-report-table .sp-expand-panel td {
  width: auto;
  white-space: normal;
  text-align: left;
  background: var(--sp-card-soft);
}

.sp-domain-report-v2 .sp-domain-explainer {
  max-width: none;
}

.sp-domain-expanded-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: 1.25rem;
  align-items: start;
}

.sp-domain-expanded-grid .sp-domain-explainer-note {
  width: auto;
  min-width: 0;
}

.sp-domain-report-v2 .charts-container,
.sp-domain-report-v2 .chartCard {
  width: 100%;
}

.sp-domain-report-v2 .chartBox {
  width: 100%;
  height: clamp(260px, 28vw, 360px);
  max-height: none;
}

.sp-domain-report-v2 .chartBox canvas {
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
}

@media (max-width: 992px) {
  .sp-domain-hero {
    grid-template-columns: 1fr;
  }

  .sp-domain-meta {
    grid-template-columns: 1fr;
  }

  .sp-domain-report-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sp-domain-report-v2-panel {
    grid-template-columns: 1fr;
  }

  .sp-domain-expanded-grid {
    grid-template-columns: 1fr;
  }

  .sp-domain-section-heading {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .sp-domain-report-card-grid {
    grid-template-columns: 1fr;
  }
}

/* On a phone the score column narrows to its header, so the status column keeps room for "Status" and its badge
   instead of the headers running together at 320 px (STAT-515) */
@media (max-width: 575.98px) {
  .sp-domain-report-v2 .sp-domain-control-col {
    width: 40%;
  }

  .sp-domain-report-v2 .sp-domain-score-col,
  .sp-domain-report-v2 .sp-domain-report-table > thead > tr > th:last-child,
  .sp-domain-report-v2 .sp-domain-report-table > tbody > tr:not(.sp-expand-panel) > td:last-child {
    width: 4.5rem;
  }

  .sp-domain-report-v2 .sp-domain-report-table th:nth-child(1),
  .sp-domain-report-v2 .sp-domain-report-table th:nth-child(2) {
    width: auto;
  }

  /* A control name longer than its column ("Registrator-/registry-lås") wraps inside it instead of running into the
     status column; a name that fits is not broken */
  .sp-domain-report-v2 .sp-domain-report-table tbody th {
    overflow-wrap: break-word;
  }
}

.sp-note-icon {
  display: inline-flex;
  align-items: center;
  margin-right: 0.4rem;
  vertical-align: middle;
}

.sp-note-ok {
  color: #14892c;
}

.sp-note-note {
  color: #4a6785;
}

.sp-note-warning {
  color: #d04437;
}

/* Misc helpers */
.scrollable-table {
  overflow-x: auto;
}

.sp-cookie-cell {
  width: 100%;
}

.sp-cookie-matrix-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 0.75rem 0;
  border: 1px solid var(--sp-card-border);
  border-radius: 0.6rem;
}

.sp-cookie-matrix {
  width: 100%;
  min-width: 1100px;
  border-collapse: collapse;
}

.sp-cookie-matrix th,
.sp-cookie-matrix td {
  padding: 0.45rem 0.55rem;
  border-bottom: 1px solid var(--sp-card-border);
  vertical-align: middle;
}

.sp-cookie-matrix thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--sp-card-soft);
  white-space: nowrap;
}

.sp-cookie-matrix td strong {
  white-space: nowrap;
}

/* STAT-369: per-cookie issues below each row, in a smaller font */
.sp-cookie-matrix .sp-cookie-issues-row td {
  padding-top: 0;
}

.sp-cookie-issues {
  font-size: 0.8rem;
  color: var(--sp-muted);
}

.scantarget-item {
  width: min(1120px, 100%);
}

.sp-scantarget-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: start;
  width: 100%;
  max-width: 100%;
}

.sp-scantarget-main {
  min-width: 0;
}

.sp-scantarget-actions {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
}

.sp-scantarget-actions .sp-pill {
  min-width: 140px;
  width: auto;
}

.sp-network-scan-table-wrap {
  max-width: 100%;
  overflow-x: auto;
}

.sp-network-scan-table {
  table-layout: fixed;
  width: 100%;
}

.sp-network-scan-ip-col {
  width: clamp(150px, 15vw, 200px);
}

.sp-network-scan-table th:first-child,
.sp-network-scan-table td:first-child {
  width: clamp(150px, 15vw, 200px);
  max-width: 200px;
}

.sp-network-scan-country {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.15rem;
  white-space: nowrap;
}

.sp-network-scan-services-cell {
  min-width: 0;
}

.sp-network-scan-banner-summary {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.sp-network-scan-raw {
  max-width: 100%;
}

.sp-network-scan-raw pre {
  display: block;
  max-width: 100%;
  max-height: 220px;
  overflow: auto;
  white-space: pre;
}

@media (max-width: 900px) {
  .sp-scantarget-summary {
    grid-template-columns: 1fr;
  }

  .sp-scantarget-actions {
    justify-content: flex-start;
  }
}

#map {
  height: 420px;
  width: 100%;
  border-radius: var(--sp-radius) !important;
  overflow: hidden !important;
  isolation: isolate;
  clip-path: inset(0 round var(--sp-radius));
  border: 1px solid var(--sp-card-border);
  box-shadow: var(--sp-card-shadow);
  margin-bottom: 0.75rem;
}

.sp-map-frame {
  border-radius: var(--sp-radius);
  overflow: hidden;
  border: 1px solid var(--sp-card-border);
  box-shadow: var(--sp-card-shadow);
  margin-bottom: 0.75rem;
}

.sp-map-frame #map {
  border: 0;
  border-radius: 0 !important;
  box-shadow: none;
  margin-bottom: 0;
  clip-path: none;
}

#map.leaflet-container,
#map .leaflet-pane,
#map .leaflet-map-pane,
#map .leaflet-tile-pane,
#map .leaflet-overlay-pane,
#map .leaflet-shadow-pane,
#map .leaflet-marker-pane,
#map .leaflet-tooltip-pane,
#map .leaflet-popup-pane,
#map .leaflet-control-container {
  border-radius: inherit;
}

.sp-map-frame .leaflet-container,
.sp-map-frame .leaflet-pane,
.sp-map-frame .leaflet-map-pane,
.sp-map-frame .leaflet-tile-pane,
.sp-map-frame .leaflet-overlay-pane,
.sp-map-frame .leaflet-shadow-pane,
.sp-map-frame .leaflet-marker-pane,
.sp-map-frame .leaflet-tooltip-pane,
.sp-map-frame .leaflet-popup-pane,
.sp-map-frame .leaflet-control-container {
  border-radius: 0 !important;
}

.center { text-align: center; }
.left { text-align: left; }
.right { text-align: right; }

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.subscription-info {
  display: block;
  padding: 0.9rem 1rem;
  border: 1px solid var(--sp-card-border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
}

.subscription-info-title {
  white-space: normal;
  font-weight: 600;
  margin-bottom: 0.55rem;
}

.subscription-info-details {
  display: block;
  line-height: 1.45;
}

.subscription-main,
.subscription-meta,
.subscription-note {
  margin: 0.35rem 0;
}

.subscription-main {
  font-size: 1.02rem;
}

.subscription-meta {
  color: var(--sp-muted);
}

.subscription-meta strong {
  color: var(--sp-text);
  margin-left: 0.4rem;
}

.subscription-note {
  margin-top: 0.6rem;
  color: var(--sp-muted);
}

.subscription-note a {
  margin: 0 0.2rem;
}

.form-row label {
  color: var(--sp-muted);
  font-size: 0.9rem;
}

.account-section-title {
  margin-top: 2rem;
}

.sp-legal-page {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 1rem;
}

.sp-legal-page > article {
  width: 100%;
  max-width: none;
  overflow-wrap: normal;
  word-break: normal;
}

.sp-legal-page p,
.sp-legal-page h2 {
  max-width: none;
}

.sp-legal-meta {
  color: var(--sp-muted);
}

.sp-legal-row {
  margin-bottom: 1.25rem;
}

.sp-legal-row h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

/* The privacy policy's table as one block per group: readable at phone width without a horizontal scroll */
.sp-legal-row dl {
  display: grid;
  grid-template-columns: minmax(7rem, max-content) 1fr;
  gap: 0.25rem 1rem;
  margin: 0;
}

.sp-legal-row dt {
  font-weight: 600;
}

.sp-legal-row dd {
  margin: 0;
}

@media (max-width: 575.98px) {
  .sp-legal-row dl {
    grid-template-columns: 1fr;
  }

  .sp-legal-row dd {
    margin-bottom: 0.5rem;
  }
}

.sp-account-heading {
  margin-bottom: 5px;
}

.sp-shield-on-report .cls-1 {
  fill: #1d75b8;
}

.sp-shield-on-report .cls-2 {
  fill: #2d3e50;
}

.sp-actions {
  margin-top: 1rem;
}

.sp-actions small {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--sp-muted);
}

.sp-actions a[role="button"],
.sp-actions button,
.sp-actions input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sp-button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: stretch;
  width: 100%;
  justify-content: flex-start;
}

.sp-button-group > * {
  min-width: 200px;
  display: flex;
  flex: 1 1 200px;
}

.sp-button-group > * > a,
.sp-button-group > * > button,
.sp-button-group > * > input[type="submit"] {
  max-width: 100%;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-align: center;
  font-size: 1rem;
}

.sp-button-group-tight > * {
  min-width: 160px;
  flex: 1 1 160px;
  max-width: 100%;
}

.sp-form-note {
  margin-bottom: 0.75rem;
  color: var(--sp-muted);
}

.sp-button-group #submit_button,
.sp-button-group .width_240px,
.sp-button-group .width240px {
  width: 100% !important;
}
.submit-row {
  display: flex;
  justify-content: flex-start;
}

.help {
  color: var(--sp-muted);
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

.errornote {
  color: #f87171;
  margin-bottom: 0.75rem;
}

.sp-pill {
  border-radius: 999px;
}

.btn-primary {
  background-color: var(--sp-primary-button);
  border: 1px solid var(--sp-primary-button);
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  color: #ffffff;
  text-decoration: none;
  line-height: 1.2;
  font-weight: 700;
}

.btn-primary:hover {
  background-color: var(--sp-primary-button-hover);
  border-color: var(--sp-primary-button-hover);
  color: #ffffff;
}

html[data-bs-theme="light"] .btn-primary {
  background-color: var(--sp-primary-button);
  color: #ffffff;
  border: 1px solid var(--sp-primary-button);
  box-shadow: 0 12px 26px rgba(29, 78, 216, 0.24);
}

html[data-bs-theme="light"] .btn-primary:hover {
  background-color: var(--sp-primary-button-hover);
  border: 1px solid var(--sp-primary-button-hover);
  color: #ffffff;
  box-shadow: 0 16px 34px rgba(30, 64, 175, 0.28);
}

.btn-primary:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--sp-primary) 45%, transparent);
  outline-offset: 3px;
}

.btn-outline-primary {
  border: 1px solid var(--sp-primary);
  color: var(--sp-primary);
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  line-height: 1.2;
}

.btn-outline-danger {
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
}

.sp-hero-divider {
  height: 1px;
  background: rgba(148, 163, 184, 0.2);
  margin-top: 2.5rem;
}

.sp-glass {
  background: var(--sp-card);
  border: 1px solid var(--sp-card-border);
  border-radius: var(--sp-radius);
  box-shadow: var(--sp-card-shadow);
  backdrop-filter: blur(12px);
}

html[data-bs-theme="light"] .sp-glass {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 252, 0.88)),
    var(--sp-card);
  border-color: rgba(30, 64, 175, 0.15);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.12);
}

.sp-badge {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}

.sp-status-success {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

.sp-status-warning {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
}

.sp-status-danger {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

.sp-status-info {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
}

/* Grade-specific badge colors — match chart palette */
.sp-status-grade-a {
  background: rgba(20, 137, 44, 0.22);
  color: #34d399;
}

.sp-status-grade-b {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
}

.sp-status-grade-c {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
}

.sp-status-grade-d {
  background: rgba(249, 115, 22, 0.2);
  color: #fb923c;
}

.sp-status-grade-f {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

.sp-status-neutral {
  background: rgba(100, 116, 139, 0.2);
  color: #94a3b8;
}

.sp-posture-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
}

.sp-posture-cell .sp-badge {
  white-space: nowrap;
}

.sp-posture-detail {
  display: block;
  font-size: 0.72rem;
  line-height: 1.2;
  color: var(--sp-muted);
}

.ns-findings-table .ns-findings-nowrap {
  white-space: nowrap;
}

.ns-findings-filters {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(260px, 1.5fr) repeat(3, minmax(140px, 0.7fr)) auto;
  gap: 0.75rem;
  align-items: end;
}

.ns-findings-field {
  min-width: 0;
}

.ns-findings-field-search input,
.ns-findings-field .form-select {
  width: 100%;
}

.ns-findings-actions {
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 1200px) {
  .ns-findings-filters {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }

  .ns-findings-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .ns-findings-filters {
    grid-template-columns: 1fr;
  }
}

.ns-findings-table td.ns-findings-service-cell {
  min-width: 460px;
}

.ns-findings-service {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.ns-findings-service-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.ns-findings-muted {
  color: var(--sp-muted);
}

.ns-findings-raw pre {
  max-width: 100%;
  max-height: 220px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.ns-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  white-space: nowrap;
  line-height: 1.1;
  font-weight: 600;
}

.ns-pill-sm {
  padding: 0.22rem 0.55rem;
  font-size: 0.74rem;
}

.ns-pill-port-tcp {
  color: #dbeafe;
  background: rgba(37, 99, 235, 0.82);
}

.ns-pill-port-udp {
  color: #e0f2fe;
  background: rgba(14, 165, 233, 0.8);
}

.ns-pill-risk-info {
  color: #d1d5db;
  background: rgba(107, 114, 128, 0.34);
}

.ns-pill-risk-warning {
  color: #111827;
  background: rgba(245, 158, 11, 0.9);
}

.ns-pill-risk-danger {
  color: #fee2e2;
  background: rgba(220, 38, 38, 0.9);
}

html[data-bs-theme="light"] .ns-pill-risk-info {
  color: #334155;
  background: rgba(148, 163, 184, 0.3);
}

html[data-bs-theme="light"] .ns-pill-risk-warning {
  color: #111827;
  background: rgba(251, 191, 36, 0.92);
}

html[data-bs-theme="light"] .ns-pill-risk-danger {
  color: #991b1b;
  background: rgba(254, 202, 202, 0.95);
}

.sp-analyzed-cell {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
}

.sp-analyzed-date {
  font-size: 0.92rem;
}

.sp-analyzed-time {
  font-size: 0.72rem;
  color: var(--sp-muted);
}

.sp-muted {
  color: var(--sp-muted);
}

.table thead th {
  font-weight: 600;
  color: var(--sp-text);
}

.form-control,
.form-select {
  border-radius: 0.85rem;
  border: 1px solid var(--sp-card-border);
  background: var(--sp-card-soft);
  color: var(--sp-text);
}

input,
select,
textarea {
  border-radius: 0.85rem;
  border: 1px solid var(--sp-card-border);
  background: var(--sp-card-soft);
  color: var(--sp-text);
  padding: 0.55rem 0.75rem;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--sp-primary);
  box-shadow: 0 0 0 0.2rem rgba(56, 189, 248, 0.2);
  outline: none;
}

.form-select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 2.5rem;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--sp-muted) 50%),
    linear-gradient(135deg, var(--sp-muted) 50%, transparent 50%),
    linear-gradient(to right, var(--sp-card-soft), var(--sp-card-soft));
  background-position:
    calc(100% - 1.05rem) 55%,
    calc(100% - 0.85rem) 55%,
    0 0;
  background-size: 6px 6px, 6px 6px, 100% 100%;
  background-repeat: no-repeat;
}

.form-select option {
  background: var(--sp-card);
  color: var(--sp-text);
}

.sp-supplier-create-language-select {
  line-height: 1.2;
  height: 42px;
  min-height: 42px;
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
  background-color: rgba(255, 255, 255, 0.14);
  background-image:
    linear-gradient(45deg, transparent 50%, var(--sp-muted) 50%),
    linear-gradient(135deg, var(--sp-muted) 50%, transparent 50%),
    linear-gradient(to right, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.14));
}

html[data-bs-theme="light"] .sp-supplier-create-language-select {
  background-color: rgba(255, 255, 255, 0.96);
  background-image:
    linear-gradient(45deg, transparent 50%, var(--sp-muted) 50%),
    linear-gradient(135deg, var(--sp-muted) 50%, transparent 50%),
    linear-gradient(to right, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.96));
}

.form-control:focus,
.form-select:focus {
  border-color: var(--sp-primary);
  box-shadow: 0 0 0 0.2rem rgba(56, 189, 248, 0.2);
}

.sp-empty-state {
  border: 1px dashed var(--sp-card-border);
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  color: var(--sp-muted);
}

/* Consultants page */
.sp-consultants-alert {
  border-radius: 0.75rem;
}

.sp-consultants-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
  gap: 1rem;
}

.sp-consultant-card {
  background: var(--sp-card);
  border: 1px solid var(--sp-card-border);
  border-radius: var(--sp-radius);
  box-shadow: var(--sp-card-shadow);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
}

.sp-consultant-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.sp-consultant-type {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--sp-primary);
  margin-bottom: 0.25rem;
}

.sp-consultant-location {
  font-size: 0.875rem;
  color: var(--sp-muted);
}

.sp-consultant-meta {
  font-size: 0.75rem;
  color: var(--sp-muted);
  white-space: nowrap;
  padding-top: 0.25rem;
}

.sp-consultant-intro {
  font-size: 0.875rem;
  color: var(--sp-muted);
  flex: 1;
}

.sp-consultant-details > summary {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--sp-primary);
  cursor: pointer;
  list-style: none;
}

.sp-consultant-details > summary::-webkit-details-marker {
  display: none;
}

.sp-consultant-details > summary::before {
  content: "+ ";
}

.sp-consultant-details[open] > summary::before {
  content: "- ";
}

.sp-consultant-details-body {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--sp-card-border);
}

.sp-consultant-facts {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.sp-consultant-facts div {
  display: flex;
  gap: 0.5rem;
}

.sp-consultant-facts dt {
  font-size: 0.8125rem;
  font-weight: 600;
  min-width: 5.5rem;
  flex-shrink: 0;
}

.sp-consultant-facts dd {
  font-size: 0.8125rem;
  color: var(--sp-muted);
  margin: 0;
  word-break: break-word;
}

.sp-consultant-copy {
  font-size: 0.8125rem;
  color: var(--sp-muted);
  line-height: 1.6;
}

.sp-consultants-intro-card {
  background: var(--sp-card);
  border: 1px solid var(--sp-card-border);
  border-radius: var(--sp-radius);
  box-shadow: var(--sp-card-shadow);
}

.sp-consultants-footer-card {
  background: var(--sp-card);
  border: 1px solid var(--sp-card-border);
  border-radius: var(--sp-radius);
  box-shadow: var(--sp-card-shadow);
}

.sp-table-wrap {
  overflow-x: auto;
}

.sp-app-shell {
  --sp-sidebar-width: 220px;
  --sp-sidebar-collapsed-width: 72px;
  display: grid;
  grid-template-columns: var(--sp-sidebar-width) minmax(0, 1fr);
  min-height: 100vh;
  gap: 1.1rem;
  padding: 1rem;
}

.sp-app-main {
  min-width: 0;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sp-sidebar {
  width: 100%;
  min-width: var(--sp-sidebar-width);
  max-width: var(--sp-sidebar-width);
  align-self: start;
  position: relative;
  z-index: 1200;
  border-radius: var(--sp-radius);
  border: 1px solid var(--sp-card-border);
  overflow: hidden;
}

.sp-sidebar .offcanvas-body {
  padding: 1rem 0.75rem;
}

.sp-sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.65rem;
  min-width: 0;
  border-radius: 10px;
  color: var(--sp-text);
  background: transparent;
  transition: background 0.2s ease, color 0.2s ease;
}

.sp-sidebar-link:hover {
  background: rgba(56, 189, 248, 0.12);
  color: var(--sp-text);
}

.sp-sidebar-link.active {
  background: rgba(56, 189, 248, 0.2);
  color: var(--sp-text);
}

.sp-sidebar-link.disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.sp-sidebar-label {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 0.9rem;
}

.sp-topbar .form-select {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--sp-card-border);
  color: var(--sp-text);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sp-language-form {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0;
  width: 100%;
}

.sp-language-select {
  min-width: 132px;
  width: 100%;
  height: 42px;
  margin: 0;
  border-radius: 999px;
  padding: 0.45rem 2rem 0.45rem 0.95rem;
  font-weight: 600;
  line-height: 1.1;
  text-align: center;
}

.sp-account-selector {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0;
}

.sp-account-select {
  min-width: 220px;
  max-width: 360px;
  width: min(42vw, 360px);
  min-height: 46px;
  height: 46px;
  margin: 0;
  border-radius: 999px;
  padding: 0.55rem 2rem 0.55rem 0.95rem;
  font-weight: 600;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.sp-topbar .sp-account-selector {
  flex-direction: row;
}

.sp-user-panel .sp-pill,
.sp-user-panel .sp-icon-btn,
.sp-user-panel .sp-language-select {
  width: 100%;
  min-height: 42px;
  justify-content: center;
  text-align: center;
}

.sp-user-panel form {
  margin: 0;
}

html[data-bs-theme="light"] .sp-topbar .form-select {
  background: rgba(255, 255, 255, 0.9);
  color: var(--sp-text);
}

body[data-sidebar="collapsed"] .sp-sidebar,
body.sidebar-collapsed .sp-sidebar {
  min-width: var(--sp-sidebar-collapsed-width);
  max-width: var(--sp-sidebar-collapsed-width);
}

body[data-sidebar="collapsed"] .sp-app-shell,
body.sidebar-collapsed .sp-app-shell {
  grid-template-columns: var(--sp-sidebar-collapsed-width) minmax(0, 1fr);
}

body[data-sidebar="collapsed"] .sp-sidebar-label,
body[data-sidebar="collapsed"] .sp-sidebar-badge,
body.sidebar-collapsed .sp-sidebar-label,
body.sidebar-collapsed .sp-sidebar-badge {
  display: none;
}

body[data-sidebar="collapsed"] .sp-sidebar-link,
body.sidebar-collapsed .sp-sidebar-link {
  justify-content: center;
}

@media (max-width: 991.98px) {
  .sp-app-shell {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .sp-sidebar {
    width: 100%;
    min-width: 0;
    max-width: none;
    border-radius: 0;
  }
}

/* LetsSecure layout helpers to align with ServiceProof styling */
.sp-topbar {
  position: relative;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: var(--sp-radius);
}

.sp-topbar-left,
.sp-topbar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.sp-sidebar-toggle-btn {
  width: 38px;
  height: 38px;
  min-width: 38px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--sp-card-border);
  background: rgba(255, 255, 255, 0.08);
  color: var(--sp-text);
}

.sp-sidebar-toggle-btn:hover,
.sp-sidebar-toggle-btn:focus {
  background: rgba(56, 189, 248, 0.16);
}

.sp-topbar-account {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.sp-topbar-account-title {
  font-weight: 600;
  color: var(--sp-text);
}

.sp-topbar-account-title a {
  color: inherit;
}

.sp-mfa-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: 0.4rem;
  text-decoration: none;
  vertical-align: middle;
}

.sp-mfa-status-badge:hover,
.sp-mfa-status-badge:focus-visible {
  text-decoration: none;
  filter: brightness(1.06);
}

.sp-topbar-field {
  display: flex;
  align-items: center;
}

.small {
  font-size: 0.85rem;
}

.sp-public-topbar {
  position: sticky;
  top: 1rem;
  z-index: 1050;
  margin: 1rem auto 2.5rem;
  width: min(var(--sp-public-shell-max-width), var(--sp-public-shell-width));
  flex-direction: column;
  align-items: stretch;
}

.sp-public-topbar .sp-topbar-right {
  flex-wrap: nowrap;
}

.sp-public-topbar .sp-language-form {
  width: auto;
  flex: 0 0 auto;
}

.sp-public-topbar .sp-language-select {
  min-width: 98px;
  width: auto;
  padding: 0.45rem 1.7rem 0.45rem 0.75rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--sp-text);
  text-align: center;
  text-align-last: center;
}

.sp-public-desktop-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sp-public-mobile-menu {
  display: none;
}

.sp-public-mobile-menu summary {
  list-style: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border: 1px solid var(--sp-card-border);
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--sp-text);
  background: rgba(255, 255, 255, 0.06);
}

.sp-public-mobile-menu summary::-webkit-details-marker {
  display: none;
}

.sp-public-mobile-menu-icon,
.sp-public-mobile-menu-icon::before,
.sp-public-mobile-menu-icon::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.sp-public-mobile-menu-icon::before {
  transform: translateY(-6px);
}

.sp-public-mobile-menu-icon::after {
  transform: translateY(4px);
}

.sp-public-mobile-panel {
  margin-top: 0.6rem;
  min-width: 220px;
  border: 1px solid var(--sp-card-border);
  border-radius: 10px;
  background: var(--sp-card-bg);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.16);
  padding: 0.6rem 0.9rem;
}

.sp-public-mobile-links {
  display: grid;
  gap: 0.35rem;
}

.sp-public-mobile-links a,
.sp-public-mobile-theme {
  color: var(--sp-text);
  text-decoration: none;
  font-weight: 500;
  padding: 0.25rem 0;
}

.sp-public-mobile-theme {
  border: 0;
  background: transparent;
  text-align: left;
}

.sp-topbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  width: 100%;
}

.sp-public-logo img {
  max-height: 44px;
  width: auto;
  border-radius: 10px;
  padding: 0.35rem;
  background: rgba(255, 255, 255, 0.06);
}

html[data-bs-theme="dark"] .sp-public-logo img {
  background: transparent;
}

.sp-logo-light {
  display: none;
  background: transparent;
}

html[data-bs-theme="light"] .sp-logo-dark {
  display: none;
}

html[data-bs-theme="light"] .sp-logo-light {
  display: inline-block;
}

.sp-public-nav {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  font-weight: 600;
}

.sp-public-nav a {
  color: var(--sp-text);
  opacity: 0.95;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.sp-public-nav a:hover,
.sp-public-nav a:focus {
  opacity: 1;
  color: var(--sp-primary);
}

body.sp-public .page {
  padding-top: 2rem;
}

body.sp-public .text-black-50,
body.sp-public .text-muted {
  color: var(--sp-muted) !important;
}

.sp-public-hero {
  width: min(var(--sp-public-shell-max-width), var(--sp-public-shell-width));
  margin: 0 auto;
  padding-bottom: 3rem;
}

.sp-public-hero-tight {
  padding-bottom: 2rem;
}

.sp-signup-hero {
  width: min(var(--sp-public-shell-max-width), var(--sp-public-shell-width));
  margin: 0 auto;
}

.sp-hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 2.5rem;
  padding: 3rem;
  min-width: 0;
  overflow: hidden;
}

.sp-hero-panel-centered {
  grid-template-columns: 1fr;
  text-align: center;
}

.sp-hero-copy h1 {
  font-size: clamp(2.4rem, 2.6vw + 1.6rem, 4rem);
  line-height: 1.05;
  margin: 0.75rem 0 1rem;
  overflow-wrap: anywhere;
}

.sp-hero-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--sp-muted);
  font-weight: 600;
}

.sp-hero-lede {
  font-size: 1.1rem;
  color: var(--sp-muted);
  max-width: 560px;
  overflow-wrap: break-word;
}

.sp-hero-lede-center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.sp-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.75rem 0 1rem;
  min-width: 0;
}

.sp-hero-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.8), rgba(4, 15, 30, 0.9));
  border: 1px solid var(--sp-card-border);
  border-radius: calc(var(--sp-radius) - 4px);
  padding: 1.5rem;
  box-shadow: var(--sp-card-shadow);
}

html[data-bs-theme="light"] .sp-hero-card {
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.08), transparent 38%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(239, 246, 255, 0.92));
  border-color: rgba(37, 99, 235, 0.2);
  box-shadow: 0 24px 60px rgba(30, 64, 175, 0.16);
}

.sp-hero-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--sp-muted);
}

.sp-hero-card-header strong {
  font-size: 2.6rem;
  color: var(--sp-text);
}

.sp-hero-card-body {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}

.sp-hero-metric {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.95rem;
  color: var(--sp-muted);
}

.sp-hero-metric strong {
  font-size: 1.4rem;
  color: var(--sp-text);
}

.sp-hero-divider {
  height: 1px;
  background: var(--sp-card-border);
}

.sp-hero-alert {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--sp-text);
  font-weight: 600;
}

.sp-hero-alert strong {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.2);
  color: var(--sp-primary);
}

.sp-product-preview-table {
  gap: 0.75rem;
}

.sp-product-preview-table > div {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--sp-card-border);
}

.sp-product-preview-table > div:last-child {
  border-bottom: 0;
}

.sp-product-preview-table span {
  color: var(--sp-muted);
}

.sp-product-preview-table strong {
  min-width: 0;
  color: var(--sp-text);
  font-size: 0.95rem;
  text-align: right;
  overflow-wrap: anywhere;
}

.sp-product-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.28rem 0.6rem;
  border: 1px solid rgba(56, 189, 248, 0.34);
  border-radius: 999px;
  color: var(--sp-primary);
  background: rgba(56, 189, 248, 0.12);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.1;
}

.sp-product-badge-warning {
  border-color: rgba(250, 204, 21, 0.36);
  color: #fde68a;
  background: rgba(250, 204, 21, 0.12);
}

.sp-product-badge-risk {
  border-color: rgba(248, 113, 113, 0.36);
  color: #fecaca;
  background: rgba(248, 113, 113, 0.12);
}

html[data-bs-theme="light"] .sp-product-badge-warning {
  color: #92400e;
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(180, 83, 9, 0.24);
}

html[data-bs-theme="light"] .sp-product-badge-risk {
  color: #991b1b;
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(185, 28, 28, 0.22);
}

.sp-product-shot-placeholder-16x9 {
  aspect-ratio: 16 / 9;
}

.sp-error-page-content {
  max-width: 480px;
}

.sp-product-shot-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border: 1px solid var(--sp-card-border);
  border-radius: 18px;
  background: var(--sp-card-soft);
  box-shadow: 0 20px 54px rgba(2, 8, 23, 0.18);
}

html[data-bs-theme="light"] .sp-product-shot-image {
  border-color: rgba(30, 64, 175, 0.16);
  box-shadow: 0 20px 50px rgba(30, 64, 175, 0.14);
}

.sp-public-section {
  width: min(var(--sp-public-shell-max-width), var(--sp-public-shell-width));
  margin: 0 auto;
  padding: 0 0 3.5rem;
}

.sp-public-section-header {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}

.sp-feature-kpi {
  display: inline-grid;
  place-items: center;
  position: relative;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 0;
  background: var(--sp-card-soft);
  color: var(--sp-text);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
  flex: 0 0 auto;
  --sp-kpi-accent: var(--sp-primary);
  --sp-kpi-pct: 0;
}

.sp-feature-kpi::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 999px;
  border: 2px solid color-mix(in srgb, var(--sp-kpi-accent) 28%, transparent);
}

.sp-feature-kpi::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 999px;
  background: conic-gradient(
    var(--sp-kpi-accent) 0 calc(var(--sp-kpi-pct) * 1%),
    transparent 0
  );
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px));
}

.sp-feature-panel {
  padding: 2rem;
}

.sp-feature-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.sp-feature-panel-title {
  margin: 0.25rem 0 0.25rem;
}

.sp-feature-panel-lede {
  margin: 0;
  color: var(--sp-muted);
  max-width: 62ch;
}

.sp-feature-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.sp-feature-panel-body {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 2rem;
}

.sp-feature-panel-subtitle {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--sp-muted);
}

.sp-feature-panel-list {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--sp-text);
}

.sp-feature-panel-list li {
  margin: 0.35rem 0;
  color: var(--sp-muted);
}

.sp-feature-panel-list-compact li {
  margin: 0.25rem 0;
}

.sp-feature-panel-link {
  display: inline-block;
  margin-top: 0.85rem;
}

.sp-public-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.sp-public-card {
  padding: 2rem;
  min-height: 210px;
  display: grid;
  gap: 0.75rem;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

html[data-bs-theme="light"] .sp-public-card {
  border-color: rgba(30, 64, 175, 0.14);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.1);
}

.sp-public-card p {
  color: var(--sp-muted);
}

html[data-bs-theme="light"] .sp-public-card p,
html[data-bs-theme="light"] .sp-contact-card p,
html[data-bs-theme="light"] .sp-pricing-card header p,
html[data-bs-theme="light"] .sp-pricing-list,
html[data-bs-theme="light"] .sp-pricing-price em,
html[data-bs-theme="light"] .sp-pricing-included-copy p,
html[data-bs-theme="light"] .sp-hero-lede,
html[data-bs-theme="light"] .sp-hero-label,
html[data-bs-theme="light"] .sp-hero-proof-list,
html[data-bs-theme="light"] .sp-auth-subtitle,
html[data-bs-theme="light"] .sp-auth-help {
  color: #475569;
}

@media (hover: hover) and (pointer: fine) {
  .sp-public-card:hover,
  .sp-public-card:focus-within {
    transform: translateY(-6px);
    border-color: rgba(56, 189, 248, 0.38);
    box-shadow: 0 22px 56px rgba(2, 8, 23, 0.28);
  }

  html[data-bs-theme="light"] .sp-public-card:hover,
  html[data-bs-theme="light"] .sp-public-card:focus-within {
    border-color: rgba(37, 99, 235, 0.3);
    box-shadow: 0 20px 50px rgba(30, 64, 175, 0.16);
  }
}

.sp-reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.52s ease, transform 0.52s ease;
  transition-delay: var(--sp-reveal-delay, 0ms);
  will-change: opacity, transform;
}

.sp-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.sp-reveal-delay-1 {
  --sp-reveal-delay: 90ms;
}

.sp-reveal-delay-2 {
  --sp-reveal-delay: 180ms;
}

@keyframes sp-scroll-cue {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.72;
  }

  50% {
    transform: translateY(6px);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sp-public-card,
  .sp-pricing-card,
  .sp-reveal {
    transition: none;
  }

  .sp-public-card:hover,
  .sp-public-card:focus-within,
  .sp-pricing-card:hover,
  .sp-pricing-card:focus-within,
  .sp-reveal {
    transform: none;
  }

  .sp-reveal {
    opacity: 1;
  }

}

.sp-public-module .sp-public-card h3,
.sp-public-module .sp-public-card p {
  overflow-wrap: break-word;
  hyphens: auto;
}

.sp-public-module .sp-public-hero {
  padding-bottom: 3.5rem;
}

.sp-public-module .sp-hero-panel {
  padding: 3.25rem;
}

.sp-public-module .sp-public-section {
  padding: 0 0 4rem;
  scroll-margin-top: 8rem;
}

.sp-public-module .sp-public-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.sp-public-module .sp-public-card {
  padding: 2.25rem;
  align-content: start;
  min-width: 0;
}

.sp-public-module .sp-public-split.sp-glass {
  overflow: hidden;
  padding: 3rem;
}

.sp-public-module .sp-public-card .sp-inline-icon-row {
  align-items: flex-start;
}

.sp-public-module .sp-public-card .sp-inline-icon-row svg {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  color: var(--sp-primary);
}

.sp-public-module .sp-public-card h3,
.sp-public-module .sp-public-card p,
.sp-public-module .sp-public-card a,
.sp-public-module .sp-public-split,
.sp-public-module .sp-public-split > *,
.sp-product-shot-placeholder,
.sp-product-shot-placeholder__title,
.sp-product-shot-placeholder__copy {
  min-width: 0;
}

.sp-email-detail-panel {
  align-items: center;
}

.sp-public-modules .sp-public-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.sp-public-modules .sp-public-card {
  display: flex;
  flex-direction: column;
  align-content: start;
  min-width: 0;
}

.sp-public-modules .sp-public-card .sp-link {
  margin-top: auto;
  padding-top: 0.75rem;
}

.sp-public-modules .sp-public-card h3,
.sp-public-modules .sp-public-card p,
.sp-public-modules .sp-public-card a {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
}

.sp-public-modules .sp-public-card h3 {
  line-height: 1.25;
}

.sp-public-modules .sp-public-split.sp-glass {
  overflow: hidden;
  padding: 2.75rem;
}

.sp-public-module .sp-supplychain-summary,
.sp-public-module .sp-service-summary {
  padding: 2.85rem;
}

.sp-public-module .sp-service-detail-panel {
  align-items: center;
  overflow: hidden;
}

.sp-public-module .sp-service-detail-panel > div:first-child {
  align-self: center;
}

.sp-public-pricing .sp-pricing-summary {
  padding: 2.5rem;
}

.sp-public-pricing .sp-pricing-included-strip {
  display: grid;
  gap: 1.15rem;
  padding: 1.45rem;
}

.sp-pricing-included-copy {
  display: grid;
  gap: 0.35rem;
}

.sp-pricing-included-copy h2,
.sp-pricing-included-copy p {
  margin: 0;
}

.sp-pricing-included-copy p {
  color: var(--sp-muted);
  max-width: 72rem;
}

.sp-pricing-included-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem 1rem;
}

.sp-pricing-included-grid > div {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  color: var(--sp-text);
  font-weight: 650;
  line-height: 1.35;
}

.sp-check-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  flex: 0 0 1.35rem;
  border-radius: 999px;
  color: #eff6ff;
  background: linear-gradient(135deg, var(--sp-primary), #2563eb);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.2);
  font-size: 0.78rem;
  font-weight: 800;
}

.sp-public-helpdesk .sp-helpdesk-summary {
  padding: 2.5rem;
}

.sp-public-about .sp-about-mission-summary {
  padding: 2.5rem;
}

.sp-link {
  font-weight: 600;
  color: var(--sp-primary);
}

.sp-public-section-dark {
  padding-top: 1rem;
}

.sp-public-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
}

.sp-public-list {
  display: grid;
  gap: 1.25rem;
}

.sp-public-list strong {
  display: block;
  font-size: 1rem;
}

.sp-public-list span {
  color: var(--sp-muted);
}

.sp-public-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
  padding: 2.5rem;
}

.sp-email-how-it-works {
  padding: 3rem;
}

.sp-pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.sp-pricing-card {
  padding: 2rem;
  display: grid;
  gap: 1.5rem;
  position: relative;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.sp-public-pricing .sp-inline-icon-row {
  align-items: flex-start;
}

.sp-public-pricing .sp-inline-icon-row svg {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  color: var(--sp-primary);
}

@media (hover: hover) and (pointer: fine) {
  .sp-pricing-card:hover,
  .sp-pricing-card:focus-within {
    transform: translateY(-6px);
    border-color: rgba(56, 189, 248, 0.38);
    box-shadow: 0 22px 56px rgba(2, 8, 23, 0.28);
  }

  html[data-bs-theme="light"] .sp-pricing-card:hover,
  html[data-bs-theme="light"] .sp-pricing-card:focus-within {
    border-color: rgba(37, 99, 235, 0.3);
    box-shadow: 0 20px 50px rgba(30, 64, 175, 0.16);
  }
}

.sp-pricing-card h3 {
  margin: 0;
}

.sp-pricing-card header p {
  color: var(--sp-muted);
  margin: 0.35rem 0 0;
}

.sp-pricing-price {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  font-weight: 600;
  color: var(--sp-text);
}

.sp-pricing-price strong {
  font-size: 2.6rem;
}

.sp-pricing-price em {
  color: var(--sp-muted);
  font-style: normal;
  font-size: 0.9rem;
}

.sp-pricing-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.6rem;
  color: var(--sp-muted);
}

/* Plan limits behind an info icon on each pricing card (STAT-674); <details> works without JavaScript */
.sp-plan-limits summary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  color: var(--sp-primary);
  font-size: 0.9rem;
  list-style: none;
}

.sp-plan-limits summary::-webkit-details-marker {
  display: none;
}

.sp-plan-limits summary:focus-visible {
  outline: 2px solid var(--sp-primary);
  outline-offset: 3px;
  border-radius: 4px;
}

.sp-plan-limits dl {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.35rem 1rem;
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  color: var(--sp-muted);
}

.sp-plan-limits dt {
  font-weight: 400;
}

.sp-plan-limits-note {
  margin: 0.6rem 0 0;
  font-size: 0.85rem;
  color: var(--sp-muted);
}

.sp-plan-limits dd {
  margin: 0;
  text-align: right;
  font-weight: 600;
  color: var(--sp-text);
}

.sp-pricing-list li::before {
  content: \"•\";
  color: var(--sp-primary);
  margin-right: 0.5rem;
}

.sp-pricing-featured {
  border: 1px solid rgba(56, 189, 248, 0.4);
  box-shadow: 0 18px 50px rgba(56, 189, 248, 0.2);
}

.sp-pricing-badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(56, 189, 248, 0.2);
  color: var(--sp-primary);
  font-size: 0.75rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-weight: 600;
}

.sp-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.sp-team-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.75rem;
}

.sp-team-card-profile {
  display: grid;
  align-items: start;
  gap: 1rem;
}

.sp-team-photo {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 12px;
}

.sp-team-body p {
  color: var(--sp-muted);
  margin: 0.5rem 0 0;
}

.sp-public-about-copy {
  padding: 2rem;
  color: var(--sp-muted);
}

.sp-public-about-copy a {
  color: var(--sp-primary);
}

.sp-contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.sp-contact-card {
  padding: 1.75rem;
  display: grid;
  gap: 0.5rem;
}

.sp-contact-card p {
  color: var(--sp-muted);
  margin: 0;
}

.sp-contact-split {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
  padding: 2.5rem;
}

.sp-testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.sp-testimonial-card {
  padding: 2rem;
  display: grid;
  gap: 1.5rem;
}

.sp-testimonial-icon,
.sp-faq-card .sp-inline-icon-row svg {
  color: var(--sp-primary);
}

.sp-testimonial-icon svg {
  width: 42px;
  height: 42px;
}

.sp-faq-card .sp-inline-icon-row {
  align-items: flex-start;
}

.sp-faq-card .sp-inline-icon-row svg {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
}

.sp-public-about .sp-public-card .sp-inline-icon-row,
.sp-public-helpdesk .sp-public-card .sp-inline-icon-row,
.sp-public-contact .sp-contact-card .sp-inline-icon-row {
  align-items: flex-start;
}

.sp-public-about .sp-public-card .sp-inline-icon-row svg,
.sp-public-helpdesk .sp-public-card .sp-inline-icon-row svg,
.sp-public-contact .sp-contact-card .sp-inline-icon-row svg {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  color: var(--sp-primary);
}

.sp-testimonial-quote {
  font-size: 1.05rem;
  color: var(--sp-text);
}

.sp-testimonial-meta {
  display: grid;
  gap: 0.2rem;
  color: var(--sp-muted);
}

.sp-faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.sp-faq-card {
  padding: 1.75rem;
  display: grid;
  gap: 0.75rem;
}

.sp-faq-card p {
  color: var(--sp-muted);
}

.sp-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.sp-step-card {
  padding: 1.75rem;
  display: grid;
  gap: 0.6rem;
}

.sp-step-number {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--sp-primary);
}

.sp-post-list {
  display: grid;
  gap: 1.5rem;
}

.sp-post-card {
  padding: 1.75rem;
  display: grid;
  gap: 0.6rem;
}

.sp-post-meta {
  color: var(--sp-muted);
  font-size: 0.85rem;
}

.sp-public-footer {
  width: min(var(--sp-public-shell-max-width), var(--sp-public-shell-width));
  margin: 0 auto 2.5rem;
}

.sp-public-footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding: 1.5rem 2rem;
}

.sp-public-footer-brand {
  display: grid;
  gap: 0.25rem;
  color: var(--sp-muted);
}

.sp-public-footer-brand strong {
  color: var(--sp-text);
}

.sp-public-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-weight: 600;
}

.sp-public-footer-links a {
  color: var(--sp-muted);
}

.sp-public-footer-links a:hover,
.sp-public-footer-links a:focus {
  color: var(--sp-primary);
}

.sp-public-footer-copy {
  margin-top: 1rem;
  text-align: center;
  color: var(--sp-muted);
  font-size: 0.85rem;
}

@media (max-width: 991.98px) {
  .sp-hero-panel,
  .sp-public-split,
  .sp-feature-panel-body {
    grid-template-columns: 1fr;
  }

  .sp-hero-panel {
    padding: 2rem;
  }

  .sp-public-cta {
    padding: 2rem;
  }

  .sp-email-how-it-works {
    padding: 2.25rem;
  }

  .sp-public-home .sp-platform-grid,
  .sp-public-home .sp-detection-groups,
  .sp-public-home .sp-workflow-grid,
  .sp-public-home .sp-who-grid,
  .sp-public-module .sp-public-grid,
  .sp-public-modules .sp-public-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sp-public-module .sp-public-hero {
    padding-bottom: 2.5rem;
  }

  .sp-public-module .sp-hero-panel {
    padding: 2.35rem;
  }

  .sp-public-module .sp-public-section {
    padding-bottom: 3rem;
  }

  .sp-pricing-included-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sp-pricing-badge {
    position: static;
    margin-bottom: 0.5rem;
    width: fit-content;
  }
}

@media (max-width: 680px) {
  .sp-public-module .sp-public-grid,
  .sp-public-modules .sp-public-grid {
    grid-template-columns: 1fr;
  }

  .sp-public-module .sp-public-split.sp-glass {
    padding: 2rem;
  }

  .sp-pricing-included-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .sp-public,
  .sp-public * {
    box-sizing: border-box;
    max-width: 100%;
    min-width: 0;
  }

  .sp-public-hero,
  .sp-public-section,
  .sp-signup-hero {
    width: calc(100vw - 2rem);
  }

  .sp-hero-panel {
    gap: 1.5rem;
    padding: 1.65rem;
  }

  .sp-hero-copy h1 {
    font-size: 2.15rem;
    line-height: 1.12;
  }

  .sp-hero-lede {
    font-size: 1rem;
  }

  .sp-hero-copy,
  .sp-hero-card,
  .sp-hero-card-body,
  .sp-hero-proof-list {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .sp-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .sp-hero-actions .sp-pill,
  .sp-hero-actions .btn-primary,
  .sp-hero-actions .btn-outline-primary {
    min-width: 0;
    width: 100%;
    justify-content: center;
    white-space: normal;
  }

}

@media (max-width: 520px) {
  .sp-public-topbar,
  .sp-public-hero,
  .sp-public-section,
  .sp-public-footer,
  .sp-signup-hero {
    width: min(360px, calc(100vw - 2rem)) !important;
    margin-left: 1rem !important;
    margin-right: 1rem !important;
  }
}

@media (max-width: 991.98px) {
  .sp-public-topbar {
    position: static;
    margin: 1rem 1rem 2rem;
    width: auto;
  }

  .sp-topbar-row {
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.65rem;
  }

  .sp-public-nav {
    width: 100%;
  }

  .sp-public-topbar .sp-topbar-right {
    width: auto;
    margin-left: auto;
    justify-content: flex-end;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.5rem;
  }

  .sp-public-topbar .sp-language-select {
    min-width: 80px;
    padding: 0.4rem 1.5rem 0.4rem 0.55rem;
    font-size: 0.82rem;
  }

  .sp-public-desktop-actions,
  .sp-public-nav {
    display: none;
  }

  .sp-public-mobile-menu {
    display: block;
  }
}

.ls-sidebar-header {
  display: grid;
  gap: 0.35rem;
  text-align: center;
  margin-bottom: 1.25rem;
}

.ls-sidebar-header img {
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.4rem;
  justify-self: center;
  max-width: 175px;
  height: auto;
}

.links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.35rem;
}

.links li {
  margin: 0;
}

.sp-sidebar-group {
  margin-top: 0.75rem;
  margin-bottom: 0.1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sp-text);
  opacity: 0.6;
}

.sp-sidebar-link {
  text-decoration: none;
}

.sp-sidebar-icon {
  width: 18px;
  min-width: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.sp-sidebar-icon svg {
  width: 16px;
  height: 16px;
}

.sp-sidebar-label {
  color: inherit;
}

.sp-main-content {
  padding: 1.25rem;
  min-width: 0;
  overflow-x: clip;
}

.ls-card-compact .card-body {
  padding: 0.75rem 1rem !important;
}

.ls-card-compact .card {
  margin-bottom: 1rem;
}

.ls-card-compact article {
  padding: 1.15rem;
  margin-bottom: 1rem;
}

.ls-card-compact .container,
.ls-card-compact .container-fluid {
  padding-left: 0.85rem;
  padding-right: 0.85rem;
}

.ls-form-compact .form-label {
  margin-bottom: 0.25rem !important;
}

.ls-form-compact .mb-3 {
  margin-bottom: 0.5rem !important;
}

.ls-form-compact .mb-4 {
  margin-bottom: 0.75rem !important;
}

.ls-form-compact form {
  gap: 1rem;
}

body[data-sidebar="collapsed"] .ls-sidebar-header,
body.sidebar-collapsed .ls-sidebar-header,
body[data-sidebar="collapsed"] .sp-sidebar-group,
body.sidebar-collapsed .sp-sidebar-group {
  display: none;
}

.sp-app-shell-no-sidebar {
  grid-template-columns: minmax(0, 1fr);
  padding: 0;
  gap: 0;
}

.sp-app-shell-no-sidebar .sp-app-main {
  gap: 0;
}

.sp-app-shell-no-sidebar .sp-main-content {
  padding: 0;
}

body.sp-public .sp-app-shell {
  display: block;
  padding: 0;
  gap: 0;
  min-height: auto;
}

body.sp-public .sp-app-main {
  gap: 0;
}

body.sp-public .sp-main-content {
  padding: 0;
}

.sp-auth-alert {
  margin: 0 auto 1rem;
  width: min(620px, 100%);
  padding: 1rem 1.25rem;
  color: var(--sp-muted);
}

@media (max-width: 991.98px) {
  .sp-topbar {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* DMARC tab pills */
.sp-release-notes-wrap {
  width: min(960px, 100%);
  margin: 0 auto;
}

.sp-release-notes-card {
  padding: clamp(1.2rem, 2vw, 2rem);
}

.sp-release-notes-content h2,
.sp-release-notes-content h3 {
  margin-top: 1.4rem;
  margin-bottom: 0.6rem;
  color: var(--sp-text);
}

.sp-release-notes-content h4 {
  margin-top: 1rem;
  margin-bottom: 0.45rem;
  color: var(--sp-text);
  opacity: 0.95;
}

.sp-release-notes-content p {
  margin-bottom: 0.7rem;
  color: var(--sp-muted);
}

.sp-rn-entry {
  padding: 1rem 1.1rem;
  border: 1px solid var(--sp-card-border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  margin-bottom: 0.95rem;
}

.sp-rn-entry:last-child {
  margin-bottom: 0;
}

.sp-rn-meta {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--sp-text);
  background: rgba(56, 189, 248, 0.18);
  border: 1px solid rgba(56, 189, 248, 0.35);
  margin-bottom: 0.65rem;
}

.sp-rn-entry h3 {
  margin-top: 0;
}

.sp-release-notes-content code {
  padding: 0.12rem 0.35rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--sp-text);
}

.sp-release-notes-content ul {
  margin: 0.35rem 0 0.95rem 1.2rem;
}

.sp-release-notes-content li {
  margin-bottom: 0.35rem;
  color: var(--sp-muted);
}

html[data-bs-theme="light"] .sp-rn-entry {
  background: rgba(15, 23, 42, 0.02);
}

html[data-bs-theme="light"] .sp-release-notes-content code {
  background: rgba(15, 23, 42, 0.08);
}

.sp-report-stale-note {
  color: #f7d36a;
  font-weight: 600;
}

html[data-bs-theme="light"] .sp-report-stale-note {
  color: #8a5b00;
}

.sp-test-description {
  display: inline-block;
  color: var(--sp-muted);
  margin-bottom: 0.35rem;
  line-height: 1.45;
}

.sp-csp-level-badges {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: 0.5rem;
  vertical-align: middle;
}

.sp-csp-level-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.7rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  font-size: 0.67rem;
  letter-spacing: 0.03em;
  font-weight: 700;
  line-height: 1.2;
  border: 1px solid transparent;
}

.sp-csp-level-csp2 {
  background: rgba(56, 189, 248, 0.18);
  color: #8be3ff;
  border-color: rgba(56, 189, 248, 0.45);
}

.sp-csp-level-csp1 {
  background: rgba(245, 158, 11, 0.2);
  color: #fcd34d;
  border-color: rgba(245, 158, 11, 0.5);
}

.sp-csp-level-csp3 {
  background: rgba(34, 197, 94, 0.17);
  color: #86efac;
  border-color: rgba(34, 197, 94, 0.45);
}

html[data-bs-theme="light"] .sp-csp-level-csp1 {
  background: rgba(202, 138, 4, 0.12);
  color: #a16207;
  border-color: rgba(202, 138, 4, 0.38);
}

html[data-bs-theme="light"] .sp-csp-level-csp2 {
  background: rgba(37, 99, 235, 0.1);
  color: #1d4ed8;
  border-color: rgba(37, 99, 235, 0.35);
}

html[data-bs-theme="light"] .sp-csp-level-csp3 {
  background: rgba(22, 163, 74, 0.1);
  color: #15803d;
  border-color: rgba(22, 163, 74, 0.35);
}

/* Overview V2 */
.sp-overview-v2 {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sp-overview-v2-header,
.sp-overview-v2-section {
  padding: 1rem 1.25rem;
}

.sp-overview-v2-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.sp-overview-v2-title {
  margin: 0;
  font-size: 1.6rem;
}

.sp-overview-v2-subtitle {
  margin: 0.25rem 0 0;
  color: var(--sp-muted);
}

.sp-overview-v2-scorewrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.sp-overview-v2-score {
  display: block;
  font-size: 0.9rem;
  color: var(--sp-muted);
}

.sp-overview-v2-trend {
  border-radius: 999px;
  border: 1px solid var(--sp-card-border);
  padding: 0.2rem 0.7rem;
  font-size: 0.82rem;
}

.sp-overview-v2-trend.is-positive {
  color: #22c55e;
}

.sp-overview-v2-trend.is-negative {
  color: #ef4444;
}

.sp-overview-v2-trend.is-neutral {
  color: #93c5fd;
}

.sp-overview-v2-section-head h2,
.sp-overview-v2-section-head h3 {
  margin: 0;
  font-size: 1.18rem;
}

.sp-overview-v2-section-head p {
  margin: 0.25rem 0 0;
  color: var(--sp-muted);
  font-size: 0.9rem;
}

.sp-overview-v2-kpis {
  margin-top: 0.8rem;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sp-overview-v2-kpi {
  border-radius: 12px;
  border: 1px solid var(--sp-card-border);
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  background: rgba(15, 23, 42, 0.45);
  color: var(--sp-text);
}

.sp-overview-v2-kpi:hover,
.sp-overview-v2-kpi:focus {
  border-color: var(--sp-primary);
}

.sp-overview-v2-kpi-value {
  font-size: 1.6rem;
  font-weight: 700;
}

.sp-overview-v2-kpi-label {
  font-size: 0.95rem;
  font-weight: 600;
}

.sp-overview-v2-kpi-help {
  color: var(--sp-muted);
}

.sp-overview-v2-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.sp-overview-v2-driver-list {
  list-style: none;
  margin: 0.9rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.sp-overview-v2-driver-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.65rem;
  border: 1px solid var(--sp-card-border);
  border-radius: 10px;
  padding: 0.55rem 0.65rem;
  background: rgba(15, 23, 42, 0.35);
}

.sp-overview-v2-driver-main {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sp-overview-v2-driver-main small {
  display: block;
  color: var(--sp-muted);
}

.sp-overview-v2-cta {
  white-space: nowrap;
}

.sp-overview-v2-table {
  margin-top: 0.8rem;
}

.sp-overview-v2-table th,
.sp-overview-v2-table td {
  font-size: 0.86rem;
  vertical-align: middle;
}

.sp-overview-v2-grade-pill {
  border-radius: 999px;
  padding: 0.1rem 0.55rem;
  font-weight: 700;
  border: 1px solid transparent;
}

.sp-overview-v2-grade-pill.grade-a,
.sp-overview-v2-grade-pill.grade-a\+ {
  background: rgba(34, 197, 94, 0.16);
  color: #22c55e;
}

.sp-overview-v2-grade-pill.grade-f {
  background: rgba(239, 68, 68, 0.18);
  color: #f87171;
}

.sp-overview-v2-empty {
  color: var(--sp-muted);
  text-align: center;
}

.sp-overview-v2-stats {
  margin-top: 0.8rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.sp-overview-v2-stats div {
  border: 1px solid var(--sp-card-border);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.35);
  padding: 0.45rem 0.6rem;
}

.sp-overview-v2-stats span {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
}

.sp-overview-v2-stats small {
  color: var(--sp-muted);
}

.sp-overview-v2-trendline {
  margin: 0;
  color: var(--sp-muted);
}

@media (max-width: 1100px) {
  .sp-overview-v2-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sp-overview-v2-grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .sp-overview-v2-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .sp-overview-v2-scorewrap {
    align-items: flex-start;
  }

  .sp-overview-v2-kpis,
  .sp-overview-v2-stats {
    grid-template-columns: 1fr;
  }
}

.sp-metric-value-cell {
  text-align: right;
  padding-right: 20px !important;
}

.sp-supplier-infra-table {
  width: 100% !important;
  --bs-table-bg: transparent !important;
  --bs-table-color: var(--sp-text) !important;
  background: rgba(30, 64, 175, 0.08) !important;
  border: 1px solid rgba(59, 130, 246, 0.42) !important;
  border-radius: 12px;
  overflow: hidden;
}

.sp-supplier-infra-table thead th {
  background: rgba(59, 130, 246, 0.28) !important;
  border-bottom: 1px solid rgba(59, 130, 246, 0.45) !important;
}

.sp-supplier-infra-table tbody td {
  background: transparent !important;
  border-color: rgba(59, 130, 246, 0.22) !important;
}

.sp-supplier-infra-table tbody th {
  background: rgba(59, 130, 246, 0.2) !important;
  color: var(--sp-text) !important;
  border-color: rgba(59, 130, 246, 0.34) !important;
}

.sp-host-visibility-table tbody th {
  width: 9.5rem;
  min-width: 9.5rem;
  max-width: 9.5rem;
  white-space: normal;
  overflow-wrap: anywhere;
}

.sp-host-visibility-table code {
  white-space: normal;
  overflow-wrap: anywhere;
}

.sp-host-active-heading {
  margin-top: 1.5rem;
  margin-bottom: 0.7rem;
}

@media (max-width: 991px) {
  .sp-supplier-infra-table {
    width: 100% !important;
  }
}

.sp-domain-security-table thead th,
.sp-domain-security-table tbody td {
  padding: 0.75rem 0.95rem !important;
}

.sp-dmarc-page .sp-dmarc-page-card {
  background: linear-gradient(160deg, rgba(30, 64, 175, 0.24), rgba(29, 78, 216, 0.16));
  border-color: rgba(96, 165, 250, 0.45);
}

.sp-dmarc-page .card {
  background: rgba(30, 64, 175, 0.18);
  border-color: rgba(96, 165, 250, 0.4);
}

.sp-dmarc-page .sp-dmarc-top-list-table thead {
  background-color: rgba(30, 64, 175, 0.55) !important;
}

.sp-dmarc-page .sp-dmarc-top-list-table tbody td {
  border-color: rgba(96, 165, 250, 0.24);
}

html[data-bs-theme="light"] .sp-dmarc-page .sp-dmarc-page-card {
  background: linear-gradient(160deg, rgba(219, 234, 254, 0.7), rgba(191, 219, 254, 0.5));
  border-color: rgba(59, 130, 246, 0.3);
}

html[data-bs-theme="light"] .sp-dmarc-page .card {
  background: rgba(241, 245, 249, 0.85);
  border-color: rgba(148, 163, 184, 0.35);
}

html[data-bs-theme="light"] .sp-dmarc-page .sp-dmarc-top-list-table thead {
  background-color: rgba(241, 245, 249, 0.95) !important;
  color: #475569;
}

html[data-bs-theme="light"] .sp-dmarc-page .sp-dmarc-top-list-table tbody td {
  border-color: rgba(148, 163, 184, 0.2);
  color: #0f172a;
}

html[data-bs-theme="light"] .sp-dmarc-page .sp-dmarc-top-list-table .link-light {
  color: #1e40af !important;
}

html[data-bs-theme="light"] .sp-dmarc-thead-sticky {
  background-color: rgba(241, 245, 249, 0.95);
}

.sp-visibility-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  border: 1px solid transparent;
}

.sp-visibility-icon-on {
  background: #16a34a;
  color: #ffffff;
  border-color: #15803d;
}

.sp-visibility-off {
  color: var(--ls-muted);
}

html[data-bs-theme="light"] .sp-visibility-icon-on {
  background: #16a34a;
  color: #ffffff;
}


.sp-inline-icon-row {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.sp-cell-word-wrap {
  max-width: 300px;
  word-wrap: anywhere;
}

.sp-table-center-pad {
  padding: 8px;
  color: #4b5563;
}

.sp-sortable-table {
  width: 100%;
  border-collapse: collapse;
}

.sp-color-muted-block {
  color: #4b5563;
}

.sp-pill-dark {
  display: inline-block;
  border-radius: 999px;
  padding: 2px 8px;
  color: #fff;
  background: #6c757d;
}

.sp-portscan-head-row {
  background-color: #f2f2f2;
}

.sp-portscan-th,
.sp-portscan-cell {
  border: 1px solid #ddd;
  padding: 8px;
}

.sp-portscan-th-wide {
  width: 220px;
}

.sp-portscan-row {
  border: 1px solid #ddd;
}

.sp-portscan-pill {
  display: inline-block;
  border-radius: 999px;
  padding: 2px 8px;
}

.sp-portscan-pill-blue {
  color: #fff;
  background: #0d6efd;
}

.sp-portscan-pill-cyan {
  color: #fff;
  background: #0ea5e9;
}

.sp-portscan-service-name {
  margin-left: 6px;
}

.sp-portscan-pill-warning {
  color: #1f2937;
  background: #ffc107;
}

.sp-portscan-pill-danger {
  color: #fff;
  background: #dc3545;
}

.sp-portscan-pill-gray {
  color: #fff;
  background: #6c757d;
}

.sp-portscan-details {
  margin-top: 6px;
}

.sp-portscan-raw {
  max-width: 860px;
  max-height: 220px;
  overflow: auto;
  margin-top: 6px;
}

.sp-max-container {
  max-width: 980px;
}

.sp-col-75 {
  width: 75%;
}

.sp-col-25 {
  width: 25%;
}

.sp-svg-shield {
  enable-background: new 0 0 426.667 426.667;
}

.sp-svg-shield-fill {
  fill: #50c8ef;
}

/* Grouped report rows (STAT-434). The panel cell is the row's last cell, so it must undo the score column's
   width, nowrap and centring. */
.sp-domain-report-table td.sp-report-group-panel {
  width: auto;
  white-space: normal;
  text-align: left;
  overflow-wrap: anywhere;
  background: var(--sp-card-soft);
}

.sp-report-group-untested,
.sp-report-group-note {
  margin: 0 0 0.75rem;
  color: var(--sp-muted);
}

.sp-web-group-checks {
  width: 100%;
  margin: 0;
}

.sp-web-group-check th {
  font-weight: 600;
}

.sp-report-group-parts {
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
}

.sp-report-group-part {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--sp-card-border);
}

.sp-report-group-part:last-child {
  border-bottom: 0;
}

.sp-report-group-part-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.5rem;
}

.sp-report-group-part-head .sp-csp-level-badges {
  margin-left: 0;
}

.sp-report-group-part-score {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.sp-report-group-part-analysis {
  margin: 0.25rem 0;
}
