@import url("/static/shared/buttons.css?v=20261008teaserbtn");

.scan-detail-disclaimer {
  margin: 1.25rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.45;
}

.scan-detail-alert {
  margin: 0 0 1rem;
}

.scan-overview.card {
  margin-top: 1.5rem;
  padding: 1.35rem 1.4rem 1.3rem;
  border-radius: 16px;
  border-color: color-mix(in srgb, var(--accent) 16%, var(--border));
  background:
    linear-gradient(
      165deg,
      color-mix(in srgb, var(--accent) 9%, var(--surface)) 0%,
      var(--surface) 42%,
      var(--surface) 100%
    );
  box-shadow:
    0 1px 0 color-mix(in srgb, #fff 40%, transparent) inset,
    0 10px 28px color-mix(in srgb, var(--accent) 7%, transparent);
  animation: scan-overview-in 0.45s ease both;
}

@keyframes scan-overview-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scan-overview.card {
    animation: none;
  }
}

.scan-overview > .scan-detail-header {
  margin: 0;
  padding: 0 0 1rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.scan-detail-header {
  margin: 2rem 0 1.25rem;
  padding: 1.15rem 1.25rem 1rem;
  border-top: 3px solid var(--accent);
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 7%, var(--surface));
  box-shadow: inset 0 1px 0 color-mix(in srgb, #fff 35%, transparent);
}

.scan-detail-header-identity {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  flex: 1 1 auto;
  min-width: 0;
}

.scan-detail-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}

.scan-detail-header-mark {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--border));
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
  color: var(--accent);
  box-shadow: 0 6px 16px color-mix(in srgb, var(--accent) 10%, transparent);
}

.scan-detail-header-logo {
  display: none;
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.scan-detail-header-mark.is-loaded .scan-detail-header-logo {
  display: block;
}

.scan-detail-header-initial {
  font-size: 1.2rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1;
}

.scan-detail-header-mark.is-loaded .scan-detail-header-initial {
  display: none;
}

.scan-detail-header-text {
  min-width: 0;
}

.scan-detail-header-title {
  margin: 0 0 0.2rem;
  font-size: 1.65rem;
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.scan-detail-header-meta {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.scan-detail-header-url {
  margin: 0.25rem 0 0;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.4;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.scan-detail-header-failure {
  margin: 0.7rem 0 0;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.45;
}

.scan-detail-header .share-wrap {
  margin: 0;
  padding: 0;
  border: 0;
  flex: 0 0 auto;
  width: max-content;
  max-width: 100%;
}

.scan-detail-action-notes {
  margin-top: 0.75rem;
}

.scan-detail-header .scan-detail-menu {
  margin-left: 0;
}

.scan-detail-header .report-action-feedback,
.scan-detail-header .feature-lock-hint {
  text-align: right;
}

@media (max-width: 720px) {
  .scan-detail-header-bar {
    flex-wrap: wrap;
  }

  .scan-detail-header .share-wrap {
    flex: 1 1 100%;
  }

  .scan-detail-header .report-actions {
    justify-content: flex-start;
  }

  .scan-detail-header .report-action-feedback,
  .scan-detail-header .feature-lock-hint {
    text-align: left;
  }
}

.scan-overview-split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(16rem, 0.85fr);
  gap: 0.65rem 0.75rem;
  align-items: center;
  margin-top: 0.15rem;
  padding-top: 1rem;
  border-top: 1px solid color-mix(in srgb, var(--border) 78%, transparent);
}

.scan-overview-split:has(.scan-detail-outcome-badge:not(:empty)):not(:has(#interaction-card.hidden)) {
  grid-template-columns: minmax(0, 1.15fr) auto minmax(16rem, 0.85fr);
}

.scan-overview-split:has(#interaction-card.hidden) {
  grid-template-columns: 1fr;
}

.scan-overview-split:has(#interaction-card.hidden) .scan-detail-outcome-badge {
  display: none;
}

.scan-overview-score {
  min-width: 0;
  padding: 0.15rem 0.2rem 0.1rem 0;
}

.scan-overview-score-hero {
  min-width: 0;
}

.scan-overview-split > .scan-detail-outcome-badge {
  display: inline-flex;
  align-items: center;
  align-self: start;
  margin-top: 0.45rem;
  justify-self: end;
}

.scan-overview-split > .scan-detail-outcome-badge:empty {
  display: none;
}

.scan-overview-split > .scan-detail-outcome-badge .badge {
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  padding: 0.28rem 0.65rem;
  white-space: nowrap;
  background: color-mix(in srgb, var(--muted) 12%, transparent);
  color: var(--muted);
  border: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
}

.scan-overview-consent {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-width: 0;
  padding: 0.95rem 1.05rem;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 14%, var(--border));
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--accent) 6%, var(--surface)) 0%,
      color-mix(in srgb, var(--surface) 88%, var(--bg)) 100%
    );
  box-shadow: 0 1px 0 color-mix(in srgb, #fff 30%, transparent) inset;
}

@media (max-width: 768px) {
  .scan-overview-split:has(.scan-detail-outcome-badge:not(:empty)):not(:has(#interaction-card.hidden)) {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .scan-overview-score {
    grid-column: 1 / -1;
  }

  .scan-overview-split > .scan-detail-outcome-badge {
    margin-top: 0;
    justify-self: start;
  }

  .scan-overview-split:has(#interaction-card.hidden) {
    grid-template-columns: 1fr;
  }

  .scan-overview-split:has(#interaction-card.hidden) .scan-overview-score {
    grid-column: auto;
  }
}

.scan-consent-cmp {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.scan-consent-cmp .section-title-line {
  font-size: inherit;
  font-weight: inherit;
}

.scan-score-teaser {
  margin: 0.75rem 0 0;
}

.scan-score-teaser-link {
  color: var(--muted);
  font-size: 0.88rem;
  text-decoration: none;
  font-weight: 550;
  cursor: pointer;
}

.scan-score-teaser-link:hover,
.scan-score-teaser-link:focus-visible {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.scan-pass-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-radius: 10px;
  overflow: hidden;
  background: color-mix(in srgb, var(--muted) 6%, transparent);
}

.scan-pass {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.48rem 0.65rem;
  font-size: 0.88rem;
  line-height: 1.3;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}

.scan-pass:last-child {
  border-bottom: 0;
}

.scan-pass-label {
  color: var(--text);
  font-weight: 550;
}

.scan-pass-status {
  flex: none;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  border-radius: 999px;
  padding: 0.18rem 0.55rem;
}

.scan-pass-status.is-done {
  color: var(--ok);
  background: color-mix(in srgb, var(--ok) 14%, transparent);
}

.scan-pass-status.is-missed {
  color: var(--warn);
  background: color-mix(in srgb, var(--warn) 16%, transparent);
}

.scan-pass-status.is-na {
  color: var(--muted);
  background: color-mix(in srgb, var(--muted) 14%, transparent);
}

.scan-consent-note {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.4;
}

.scan-overview .score-row {
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 0.75rem 1rem;
}

.scan-overview .summary {
  margin: 0.45rem 0 0;
  font-size: 0.95rem;
  line-height: 1.35;
  color: var(--text);
  max-width: 34rem;
}

.scan-overview .score {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
}

/* Full-width under score + consent banner. */
.scan-overview > .scan-gap-chips {
  margin-top: 0.85rem;
}
.scan-consent-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

.scan-consent-value {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.45;
  color: var(--text);
}

.score-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

.score-block {
  flex: 1 1 200px;
}

.score {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
}

.score-line {
  position: relative;
  display: inline-block;
  padding-right: 0.85rem;
  vertical-align: top;
}

.score-line .info-tip {
  position: absolute;
  top: 0.15rem;
  right: 0;
  margin: 0;
  transform: translate(20%, -45%);
}

/* Score sits on the left of the page — keep the tip from clipping under overflow-x. */
.score-line .info-tip::after {
  left: 0;
  right: auto;
  transform: none;
  z-index: 100;
}

.score-breakdown-accordion {
  margin: 0.65rem 0 0;
  font-size: 0.9rem;
}

.score-breakdown-accordion > summary {
  cursor: pointer;
  color: var(--muted);
  font-weight: 500;
  list-style: none;
}

.score-breakdown-accordion > summary::-webkit-details-marker {
  display: none;
}

.score-breakdown-accordion > summary::before {
  content: "";
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  margin-right: 0.4rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  vertical-align: 0.1em;
  transition: transform 0.15s ease;
}

.score-breakdown-accordion[open] > summary::before {
  transform: rotate(45deg);
}

.score-breakdown-accordion[open] > summary {
  margin-bottom: 0.35rem;
}

.section-title-line {
  position: relative;
  display: inline-block;
  max-width: 100%;
  padding-right: 0.85rem;
  line-height: 1.25;
  vertical-align: baseline;
}

.section-title-line .info-tip {
  position: absolute;
  top: 0;
  right: 0;
  margin: 0;
  transform: translate(20%, -45%);
}

.section-title-line .info-tip-icon {
  width: 0.7rem;
  height: 0.7rem;
}

.interaction-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
}

.interaction-section-title-main {
  min-width: 0;
}

.interaction-section-title .badge,
.scan-failed-title .badge {
  flex-shrink: 0;
  font-size: 0.72rem;
}

.scan-failed-title .section-title-line {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding-right: 0;
}

#interaction-card-title {
  margin: 0;
  width: 100%;
}

.info-tip,
button.info-tip,
a.info-tip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  color: var(--muted);
  font: inherit;
  font-weight: 400;
  line-height: 1;
  cursor: help;
  vertical-align: middle;
  text-decoration: none;
}

a.info-tip {
  cursor: pointer;
}

a.info-tip:hover,
a.info-tip:focus-visible {
  color: var(--accent);
}

/* scans.css loads after dashboard.css — keep .hidden effective on tips */
.info-tip.hidden,
.info-tip[hidden] {
  display: none !important;
}

.info-tip-icon {
  width: 1.125rem;
  height: 1.125rem;
  display: block;
  flex-shrink: 0;
}

.score-line .info-tip-icon {
  width: 1.25rem;
  height: 1.25rem;
}

.info-tip::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.45rem);
  top: auto;
  transform: translateX(-50%);
  z-index: 12;
  width: max-content;
  max-width: 20rem;
  padding: 0.45rem 0.65rem;
  border-radius: 6px;
  background: color-mix(in srgb, var(--text) 92%, transparent);
  color: var(--bg);
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: normal;
  text-transform: none;
  white-space: normal;
  text-align: left;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.12s ease, visibility 0.12s ease;
}

.info-tip:not([data-tip])::after,
.info-tip[data-tip=""]::after {
  content: none;
  display: none;
}

.info-tip:hover::after,
.info-tip:focus-visible::after {
  opacity: 1;
  visibility: visible;
}

.scan-gap-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
}

.scan-gap-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0.28rem 0.7rem 0.28rem 0.28rem;
  border: 1px solid color-mix(in srgb, var(--border) 85%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 80%, var(--bg));
  color: var(--text);
  font: inherit;
  font-size: 0.82rem;
  line-height: 1.25;
  cursor: pointer;
  text-align: left;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    transform 0.15s ease;
}

.scan-gap-chip.is-critical {
  border-color: color-mix(in srgb, var(--critical) 28%, var(--border));
  background: color-mix(in srgb, var(--critical) 7%, var(--surface));
}

.scan-gap-chip.is-high {
  border-color: color-mix(in srgb, var(--warn) 28%, var(--border));
  background: color-mix(in srgb, var(--warn) 8%, var(--surface));
}

.scan-gap-chip.is-medium,
.scan-gap-chip.is-low {
  border-color: color-mix(in srgb, var(--muted) 28%, var(--border));
  background: color-mix(in srgb, var(--muted) 7%, var(--surface));
}

/* Beat dashboard.css `button:hover` accent fill — keep readable text. */
button.scan-gap-chip:hover:not(:disabled),
button.scan-gap-chip:focus-visible:not(:disabled),
button.scan-gap-chip:active:not(:disabled) {
  border-color: color-mix(in srgb, var(--text) 28%, var(--border));
  background: color-mix(in srgb, var(--muted) 10%, var(--surface));
  color: var(--text);
  outline: none;
  transform: translateY(-1px);
}

.scan-gap-chip .badge {
  font-size: 0.64rem;
  padding: 0.16rem 0.45rem;
  letter-spacing: 0.04em;
}

.scan-gap-chip-label {
  font-weight: 550;
}

.scan-gap-chip-more {
  padding: 0.32rem 0.75rem;
  color: var(--muted);
  font-weight: 650;
  text-decoration: none;
  border-style: dashed;
  background: color-mix(in srgb, var(--muted) 8%, var(--surface));
}

a.scan-gap-chip-more:hover,
a.scan-gap-chip-more:focus-visible {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 28%, var(--border));
  background: color-mix(in srgb, var(--accent) 6%, var(--surface));
  text-decoration: none;
  outline: none;
  transform: translateY(-1px);
}

.scan-inventory {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 1.05rem;
  padding-top: 1.05rem;
  border-top: 1px solid color-mix(in srgb, var(--border) 78%, transparent);
}

.scan-inventory-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.18rem;
  min-width: 0;
  min-height: 4.6rem;
  margin: 0;
  padding: 0.8rem 0.85rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: color-mix(in srgb, var(--muted) 6%, var(--surface));
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
}

/* Beat dashboard.css `button:hover` accent fill — keep readable text. */
button.scan-inventory-tile:hover:not(:disabled),
button.scan-inventory-tile:focus-visible:not(:disabled),
button.scan-inventory-tile:active:not(:disabled) {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
  background: color-mix(in srgb, var(--accent) 6%, var(--surface));
  color: var(--text);
  outline: none;
  box-shadow: 0 8px 18px color-mix(in srgb, var(--accent) 10%, transparent);
  transform: translateY(-1px);
}

.scan-inventory-value {
  font-size: 1.4rem;
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.scan-inventory-value.is-text {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.scan-inventory-label {
  font-size: 0.8rem;
  font-weight: 650;
  line-height: 1.25;
  color: var(--text);
}

.scan-inventory-detail {
  margin-top: 0.12rem;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.35;
}
@media (max-width: 900px) {
  .scan-inventory {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .scan-inventory {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


.violation-item,
#violations-card,
#cookies-section,
#declared-section,
#storage-entries-section,
#network-destinations-subsection,
#iframe-destinations-subsection,
#cookie-details-accordion,
#third-party-destinations-card,
#violations-card,
.violation-item {
  scroll-margin-top: 4.5rem;
}

.violation-item.scan-gap-target,
#violations-card.scan-gap-target {
  outline: 2px solid color-mix(in srgb, var(--accent) 55%, transparent);
  outline-offset: 3px;
}

.summary {
  color: var(--text);
  margin: 0.75rem 0 0;
  font-size: 0.95rem;
}

.scan-consent-label {
  color: var(--text);
  font-weight: 700;
}

.score-breakdown {
  margin: 0;
  padding: 0 0 0 1rem;
  list-style: none;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--muted);
}

.score-breakdown li + li {
  margin-top: 0.15rem;
}

.limitations-wrap {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  background: color-mix(in srgb, var(--warn) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--warn) 30%, transparent);
}

.limitations-wrap h3 {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  color: var(--warn);
}

.limitations {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--text);
  font-size: 0.9rem;
}

.limitations.is-single {
  padding-left: 0;
  list-style: none;
}

h2 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

th,
td {
  text-align: left;
  padding: 0.5rem 0.65rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

th {
  color: var(--muted);
  font-weight: 500;
}

.btn-tip {
  position: relative;
  cursor: help;
}

.btn-tip::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.45rem);
  top: auto;
  transform: translateX(-50%);
  z-index: 5;
  width: max-content;
  max-width: min(18rem, calc(100vw - 2rem));
  padding: 0.45rem 0.65rem;
  border-radius: 6px;
  background: color-mix(in srgb, var(--text) 92%, transparent);
  color: var(--bg);
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: normal;
  text-transform: none;
  white-space: normal;
  text-align: left;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.12s ease, visibility 0.12s ease;
}

.btn-tip:hover::after,
.btn-tip:focus-visible::after {
  opacity: 1;
  visibility: visible;
}

.score-incomplete-note {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
}

.cookie-details-accordion.card {
  padding: 0;
  margin-bottom: 1.15rem;
  border-radius: 16px;
  border-color: color-mix(in srgb, var(--accent) 14%, var(--border));
  background:
    linear-gradient(
      165deg,
      color-mix(in srgb, var(--accent) 7%, var(--surface)) 0%,
      var(--surface) 38%,
      var(--surface) 100%
    );
  box-shadow:
    0 1px 0 color-mix(in srgb, #fff 40%, transparent) inset,
    0 10px 26px color-mix(in srgb, var(--accent) 6%, transparent);
}

/* Space the annex family away from the violations card */
#violations-card {
  margin-bottom: 1.65rem;
}

.cookie-details-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.85rem;
  padding: 1.05rem 1.2rem;
  cursor: pointer;
  list-style: none;
  transition: background 0.15s ease;
}

.cookie-details-summary:hover {
  background: color-mix(in srgb, var(--accent) 4%, transparent);
}

.cookie-details-summary::-webkit-details-marker {
  display: none;
}

.cookie-details-summary::marker {
  content: "";
}

.cookie-details-summary::before {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  margin-right: 0.15rem;
  border-right: 2px solid color-mix(in srgb, var(--muted) 80%, var(--text));
  border-bottom: 2px solid color-mix(in srgb, var(--muted) 80%, var(--text));
  transform: rotate(-45deg);
  transition: transform 0.18s ease, border-color 0.15s ease;
  flex-shrink: 0;
}

.cookie-details-accordion[open] > .cookie-details-summary::before {
  transform: rotate(45deg);
  margin-top: 0.15rem;
  border-color: var(--accent);
}

.cookie-details-accordion[open] > .cookie-details-summary {
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 12%, var(--border));
  background: color-mix(in srgb, var(--accent) 3%, transparent);
}

.cookie-details-title {
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text);
  line-height: 1.3;
}

.cookie-details-summary-meta {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  flex: 1 1 12rem;
  min-width: 0;
}

.cookie-details-meta-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
  background: color-mix(in srgb, var(--surface) 88%, var(--bg));
  font-size: 0.72rem;
  font-weight: 650;
  line-height: 1.25;
  color: var(--muted);
  white-space: nowrap;
}

.cookie-details-meta-chip.is-neutral {
  color: var(--text);
  border-color: color-mix(in srgb, var(--accent) 16%, var(--border));
  background: color-mix(in srgb, var(--accent) 6%, var(--surface));
}

.cookie-details-meta-chip.is-warn {
  color: color-mix(in srgb, var(--warn) 72%, var(--text));
  border-color: color-mix(in srgb, var(--warn) 32%, var(--border));
  background: color-mix(in srgb, var(--warn) 10%, var(--surface));
}

.cookie-details-meta-chip.is-muted {
  color: var(--muted);
}

.cookie-details-body {
  padding: 0.95rem 1.05rem 1.15rem;
  overflow: visible;
}

.cookie-details-subsection {
  padding: 0.95rem 1rem 1.05rem;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--border) 88%, transparent);
  background: color-mix(in srgb, var(--surface) 92%, var(--bg));
  box-shadow: 0 1px 0 color-mix(in srgb, #fff 28%, transparent) inset;
}

.cookie-details-subsection + .cookie-details-subsection {
  margin-top: 0.85rem;
}

.cookie-details-subsection h3 {
  margin: 0 0 0.85rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 75%, transparent);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.35;
  color: var(--text);
}

.cookie-details-subsection .section-help {
  margin-top: 0;
  margin-bottom: 0.85rem;
}

.marketing-tags-check-list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.marketing-tags-check-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--border) 85%, transparent);
  background: color-mix(in srgb, var(--bg) 35%, var(--surface));
}

.marketing-tags-check-item.is-ok {
  border-color: color-mix(in srgb, var(--ok, #16a34a) 35%, var(--border));
}

.marketing-tags-check-item.is-ko {
  border-color: color-mix(in srgb, var(--danger, #dc2626) 35%, var(--border));
}

.marketing-tags-check-platform {
  font-weight: 600;
  color: var(--text);
}

.marketing-tags-check-status {
  color: var(--muted);
  font-size: 0.92rem;
}

.marketing-tags-check-item.is-ok .marketing-tags-check-status {
  color: var(--ok, #16a34a);
}

.marketing-tags-check-item.is-ko .marketing-tags-check-status {
  color: var(--danger, #dc2626);
}

.cookie-pass-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.65rem;
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.cookie-pass-legend-row td {
  border-bottom: none;
  padding: 0.3rem 0.55rem 0.45rem;
}

.cookie-pass-legend-cell {
  background: color-mix(in srgb, var(--border) 28%, transparent);
}

.observed-cookies-table-wrap {
  overflow: visible;
}

.cookie-summary-wrap {
  margin: 0 0 1rem;
  width: fit-content;
  max-width: 100%;
}

.cookie-summary-filters {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  width: fit-content;
  max-width: 100%;
  padding: 0.75rem 0.9rem 0.85rem;
  border: 1px solid color-mix(in srgb, var(--border) 90%, transparent);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: none;
}

.cookie-summary-filters.has-active-filters {
  border-color: color-mix(in srgb, var(--accent) 28%, var(--border));
}

.cookie-summary-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 1.2rem;
}

.cookie-summary-heading-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.65rem;
  min-width: 0;
}

.cookie-summary-heading {
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.2;
}

.cookie-summary-inert-hint {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
  line-height: 1.3;
}

.cookie-summary-filters.is-inert .cookie-summary-chip,
.cookie-summary-filters.is-inert span.cookie-summary-chip {
  cursor: default;
  pointer-events: none;
}

.cookie-summary-filters.is-inert .cookie-summary-chip:hover,
.cookie-summary-filters.is-inert span.cookie-summary-chip:hover {
  background: var(--surface);
  color: var(--text);
  box-shadow: none;
  border-color: color-mix(in srgb, var(--border) 85%, transparent);
}

.cookie-summary-actions {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem 0.65rem;
  margin-left: auto;
}

button.cookie-summary-reset,
.cookie-summary-reset {
  margin: 0;
  padding: 0.15rem 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
  transition: color 0.15s ease, opacity 0.15s ease;
}

button.cookie-summary-reset:hover:not(:disabled),
button.cookie-summary-reset:focus-visible:not(:disabled) {
  color: color-mix(in srgb, var(--accent) 78%, var(--text));
  text-decoration: underline;
  text-underline-offset: 0.14em;
  outline: none;
}

button.cookie-summary-copy,
.cookie-summary-copy {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin: 0;
  padding: 0.22rem 0.55rem 0.22rem 0.45rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 650;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.cookie-summary-copy-icon {
  width: 0.9rem;
  height: 0.9rem;
  flex-shrink: 0;
}

.cookie-summary-copy-label {
  line-height: 1.2;
}

button.cookie-summary-copy:hover:not(:disabled),
button.cookie-summary-copy:focus-visible:not(:disabled) {
  border-color: color-mix(in srgb, var(--accent) 30%, var(--border));
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
  color: var(--accent);
  outline: none;
}

button.cookie-summary-copy.is-copied,
.cookie-summary-copy.is-copied {
  border-color: color-mix(in srgb, var(--ok) 40%, var(--border));
  background: color-mix(in srgb, var(--ok) 10%, var(--surface));
  color: color-mix(in srgb, var(--ok) 75%, var(--text));
}

button.cookie-summary-copy.is-copy-failed,
.cookie-summary-copy.is-copy-failed {
  border-color: color-mix(in srgb, var(--bad) 40%, var(--border));
  background: color-mix(in srgb, var(--bad) 10%, var(--surface));
  color: color-mix(in srgb, var(--bad) 75%, var(--text));
}

/* Hover tip (same family as .info-tip), above the compact toolbar action. */
button.cookie-summary-copy[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.4rem);
  z-index: 20;
  width: max-content;
  max-width: min(16rem, 70vw);
  padding: 0.4rem 0.55rem;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--border) 85%, transparent);
  background: var(--surface);
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.35;
  white-space: normal;
  text-align: center;
  box-shadow: 0 8px 20px color-mix(in srgb, #000 8%, transparent);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(0.15rem);
  transition: opacity 0.12s ease, transform 0.12s ease;
}

button.cookie-summary-copy[data-tip]:hover::after,
button.cookie-summary-copy[data-tip]:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.cookie-summary-groups {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  row-gap: 0.55rem;
  column-gap: 0;
}

.cookie-summary-group {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.4rem;
  width: auto;
  max-width: 100%;
  min-width: 0;
  position: relative;
  padding: 0;
  border: none;
}

/* Séparateur collé à la fin de l'axe — suit le wrap (pas d'orphelin en début de ligne). */
.cookie-summary-group:not(:last-child) {
  margin-right: 1.15rem;
  padding-right: 1.15rem;
}

.cookie-summary-group:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 1rem;
  background: color-mix(in srgb, var(--border) 85%, transparent);
}

.cookie-summary-group-label {
  flex: 0 0 auto;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  color: var(--muted);
  line-height: 1.2;
}

.cookie-summary-group-chips {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
  max-width: 100%;
}

.cookie-category-cell {
  font-size: 0.86rem;
  color: var(--muted);
  white-space: nowrap;
  line-height: 1.35;
}

.cookie-category-bucket {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  max-width: 100%;
  padding: 0.18rem 0.48rem 0.18rem 0.36rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  line-height: 1.2;
  vertical-align: middle;
}

.cookie-category-icon {
  flex: 0 0 auto;
  display: block;
}

.cookie-category-label {
  white-space: nowrap;
}

.cookie-category-necessary {
  color: color-mix(in srgb, var(--ok) 78%, var(--text));
  background: color-mix(in srgb, var(--ok) 14%, var(--surface));
  border-color: color-mix(in srgb, var(--ok) 22%, transparent);
}

.cookie-category-analytics {
  color: color-mix(in srgb, var(--accent) 82%, var(--text));
  background: color-mix(in srgb, var(--accent) 14%, var(--surface));
  border-color: color-mix(in srgb, var(--accent) 22%, transparent);
}

.cookie-category-marketing {
  color: color-mix(in srgb, var(--warn) 78%, var(--text));
  background: color-mix(in srgb, var(--warn) 16%, var(--surface));
  border-color: color-mix(in srgb, var(--warn) 24%, transparent);
}

.cookie-category-unknown {
  color: var(--muted);
  background: color-mix(in srgb, var(--muted) 10%, var(--surface));
  border-color: color-mix(in srgb, var(--muted) 18%, transparent);
}

.cookie-summary-chip,
button.cookie-summary-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0.22rem 0.3rem 0.22rem 0.55rem;
  border: 1px solid color-mix(in srgb, var(--border) 85%, transparent);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.74rem;
  font-weight: 550;
  line-height: 1.25;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease,
    box-shadow 0.15s ease;
}

/* Beat dashboard.css `button:hover` accent fill — keep readable text. */
button.cookie-summary-chip:hover:not(:disabled),
button.cookie-summary-chip:focus-visible:not(:disabled) {
  background: color-mix(in srgb, var(--accent) 6%, var(--surface));
  border-color: color-mix(in srgb, var(--accent) 28%, var(--border));
  color: var(--text);
  outline: none;
}

.cookie-summary-chip.is-active,
button.cookie-summary-chip.is-active {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
  background: color-mix(in srgb, var(--accent) 9%, var(--surface));
  color: var(--text);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 10%, transparent);
}

button.cookie-summary-chip.is-active:hover:not(:disabled),
button.cookie-summary-chip.is-active:focus-visible:not(:disabled) {
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
  color: var(--text);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
}

.cookie-summary-chip-label {
  white-space: nowrap;
}

.cookie-summary-chip-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.15rem;
  padding: 0.08rem 0.32rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--muted) 14%, transparent);
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.2;
}

.cookie-summary-chip.is-active .cookie-summary-chip-count,
button.cookie-summary-chip.is-active .cookie-summary-chip-count {
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent);
}

.cookie-name-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
}

.cookie-cmp-vendor {
  display: block;
  margin-top: 0.12rem;
  font-size: 0.8rem;
  font-weight: 550;
  color: var(--text);
  line-height: 1.25;
  word-break: break-word;
}

.cookie-domain-cell {
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  min-width: 8.5rem;
  width: 18%;
  line-height: 1.35;
}

.cookie-domain-value {
  display: inline;
  margin-right: 0.35rem;
  font-size: 0.86rem;
  line-height: 1.35;
  color: var(--text);
  vertical-align: middle;
}

.cookie-domain-value.is-empty {
  color: var(--muted);
}

.cookie-party-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.38rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  line-height: 1.2;
  vertical-align: middle;
}

.cookie-party-first {
  color: color-mix(in srgb, var(--ok) 72%, var(--text));
  background: color-mix(in srgb, var(--ok) 10%, var(--surface));
  border-color: color-mix(in srgb, var(--ok) 18%, transparent);
}

.cookie-party-third {
  color: color-mix(in srgb, var(--warn) 75%, var(--text));
  background: color-mix(in srgb, var(--warn) 12%, var(--surface));
  border-color: color-mix(in srgb, var(--warn) 20%, transparent);
}

.observed-cookies-table thead th.observed-cookies-head-domain {
  min-width: 8.5rem;
  width: 18%;
}

.observed-cookies-table thead th.observed-cookies-head-category {
  min-width: 6.5rem;
  width: 12%;
}

.observed-cookies-table thead {
  position: relative;
  z-index: 2;
}

.observed-cookies-table thead th {
  overflow: visible;
}

.observed-cookies-table thead .info-tip::after {
  z-index: 100;
}

/* Name column sits on the left edge — keep tips from being clipped by overflow-x. */
.observed-cookies-table .cookie-name-cell,
.declared-cookies-table .cookie-name-cell {
  overflow: visible;
}

.observed-cookies-table .cookie-name-cell .info-tip::after,
.observed-cookies-table thead th.observed-cookies-head-name .info-tip::after,
.declared-cookies-table .cookie-name-cell .info-tip::after,
.declared-cookies-table thead th.cookie-declared-name-head .info-tip::after,
.declared-cookies-table thead th:first-child .info-tip::after {
  left: 0;
  right: auto;
  transform: none;
}

/* Status column sits on the right edge — keep tips inside the viewport. */
.observed-cookies-table thead th.observed-cookies-head-status .info-tip::after {
  left: auto;
  right: 0;
  transform: none;
}

.observed-cookies-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.observed-cookies-table th,
.observed-cookies-table td {
  border-bottom: 1px solid var(--border);
  padding: 0.5rem 0.6rem;
  text-align: left;
  vertical-align: middle;
}

/* Clearer header band vs body (shared inventory tables) */
.observed-cookies-table thead th,
.network-destinations-table thead th,
.declared-cookies-table thead th {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: normal;
  color: var(--muted);
  background: color-mix(in srgb, var(--bg) 42%, var(--surface));
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, var(--muted));
  padding: 0.45rem 0.55rem;
  line-height: 1.25;
}

/* Coins hauts arrondis — adoucit le bandeau d’en-tête sans overflow:hidden (tips). */
.observed-cookies-table thead tr:first-child th:first-child,
.network-destinations-table thead tr:first-child th:first-child,
.declared-cookies-table thead tr:first-child th:first-child {
  border-top-left-radius: 10px;
}

.observed-cookies-table thead tr:first-child th:last-child,
.network-destinations-table thead tr:first-child th:last-child,
.declared-cookies-table thead tr:first-child th:last-child {
  border-top-right-radius: 10px;
}

.observed-cookies-table thead th {
  vertical-align: bottom;
  text-align: center;
}

.observed-cookies-table thead th[rowspan="2"] {
  vertical-align: middle;
  text-align: left;
}

.observed-cookies-head-label {
  text-align: left;
}

.observed-cookies-head-name,
.observed-cookies-table thead th.observed-cookies-head-name {
  text-align: left;
}

.observed-cookies-head-passes-group {
  text-align: center;
  font-weight: 650;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.25;
  padding: 0.4rem 0.4rem 0.3rem;
  background: color-mix(in srgb, var(--accent) 6%, var(--surface));
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 14%, var(--border));
}

.observed-cookies-head-passes-group .observed-cookies-head-label {
  text-align: center;
}

.observed-cookies-head-passes-group .info-tip::after {
  white-space: pre-line;
}

.observed-cookies-table thead .observed-cookies-head-row-passes th {
  background: color-mix(in srgb, var(--accent) 4%, var(--surface));
  border-bottom-color: color-mix(in srgb, var(--accent) 12%, var(--border));
}

.observed-cookies-table th.cookie-pass-col,
.observed-cookies-table td.cookie-pass-indicator {
  width: 5.5rem;
  max-width: 5.5rem;
  text-align: center;
  vertical-align: middle;
}

.observed-cookies-table thead th.cookie-pass-col,
.observed-cookies-table thead .observed-cookies-head-row-passes th {
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  padding: 0.25rem 0.35rem;
  line-height: 1.15;
  vertical-align: top;
}

.observed-cookies-table .cookie-name-cell,
.observed-cookies-table thead th:first-child {
  width: 8.5rem;
  max-width: 8.5rem;
}

.observed-cookies-table .cookie-cmp-purpose-cell,
.observed-cookies-table thead th.observed-cookies-head-purpose {
  min-width: 10rem;
}

.observed-cookies-table .cookie-cmp-retention-cell,
.observed-cookies-table thead th.observed-cookies-head-retention {
  width: 7rem;
  max-width: 9rem;
  white-space: nowrap;
}

.observed-cookies-table .cookie-expiration-cell,
.observed-cookies-table thead th.observed-cookies-head-expiration {
  width: 7.5rem;
  max-width: 9rem;
  white-space: nowrap;
}

.observed-cookies-table .cookie-expiration-exceeds,
.observed-cookies-table .cookie-expiration-exceeds-value {
  color: var(--bad);
  font-weight: 600;
}

.observed-cookies-table .cookie-expiration-cell .cookie-cmp-empty {
  color: var(--muted);
  font-weight: 400;
}

.observed-cookies-table .cookie-cmp-truncated {
  display: inline;
}

.observed-cookies-table .cookie-cmp-empty {
  color: var(--muted);
}

.observed-cookies-table .cookie-cmp-purpose-cell {
  font-size: 0.86rem;
  line-height: 1.35;
  word-break: break-word;
}

.cookie-pass-legend-sep {
  color: color-mix(in srgb, var(--muted) 70%, transparent);
}

.cookie-pass-legend-symbol.is-present {
  color: var(--text);
}

.cookie-pass-legend-symbol.is-absent {
  color: color-mix(in srgb, var(--muted) 55%, transparent);
}

.cookie-pass-col {
  text-align: center;
}

.cookie-pass-indicator {
  text-align: center;
  vertical-align: middle;
  font-size: 0.9rem;
  line-height: 1;
}

.cookie-pass-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.72rem;
  line-height: 1;
}

.cookie-pass-indicator.is-present .cookie-pass-mark {
  color: color-mix(in srgb, var(--accent) 75%, var(--text));
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
  border-color: color-mix(in srgb, var(--accent) 22%, transparent);
}

.cookie-pass-indicator.is-absent .cookie-pass-mark {
  color: color-mix(in srgb, var(--muted) 55%, transparent);
  background: color-mix(in srgb, var(--muted) 6%, var(--surface));
  border-color: color-mix(in srgb, var(--muted) 12%, transparent);
}

.cookie-pass-indicator.is-present {
  color: var(--text);
}

.cookie-pass-indicator.is-absent {
  color: color-mix(in srgb, var(--muted) 55%, transparent);
}

/* Subtle row hover + shared density for report inventory tables */
.observed-cookies-table tbody tr:not(.cookies-expand-row):not(.teaser-ghost-row):hover,
.network-destinations-table tbody tr:not(.cookies-expand-row):not(.teaser-ghost-row):hover,
.declared-cookies-table tbody tr:not(.cookies-expand-row):not(.teaser-ghost-row):hover {
  background: color-mix(in srgb, var(--accent) 5%, var(--surface));
}

/* Écarts consentement : filet + fond léger sur la ligne */
.observed-cookies-table tbody tr[data-gap-avant="1"]:not(.cookies-expand-row):not(.teaser-ghost-row) {
  background: color-mix(in srgb, var(--warn) 7%, var(--surface));
  box-shadow: inset 3px 0 0 color-mix(in srgb, var(--warn) 65%, transparent);
}

.observed-cookies-table tbody tr[data-gap-apres="1"]:not(.cookies-expand-row):not(.teaser-ghost-row) {
  background: color-mix(in srgb, var(--bad) 7%, var(--surface));
  box-shadow: inset 3px 0 0 color-mix(in srgb, var(--bad) 70%, transparent);
}

.observed-cookies-table
  tbody
  tr[data-gap-avant="1"][data-gap-apres="1"]:not(.cookies-expand-row):not(.teaser-ghost-row) {
  background: color-mix(in srgb, var(--bad) 8%, var(--surface));
  box-shadow: inset 3px 0 0 color-mix(in srgb, var(--bad) 70%, transparent);
}

.observed-cookies-table
  tbody
  tr[data-gap-avant="1"]:not(.cookies-expand-row):not(.teaser-ghost-row):hover,
.observed-cookies-table
  tbody
  tr[data-gap-apres="1"]:not(.cookies-expand-row):not(.teaser-ghost-row):hover {
  background: color-mix(in srgb, var(--accent) 4%, color-mix(in srgb, var(--warn) 8%, var(--surface)));
}

.observed-cookies-table
  tbody
  tr[data-gap-apres="1"]:not(.cookies-expand-row):not(.teaser-ghost-row):hover {
  background: color-mix(in srgb, var(--accent) 4%, color-mix(in srgb, var(--bad) 9%, var(--surface)));
}

.network-destinations-table {
  width: 100%;
  max-width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 0.9rem;
}

#third-party-destinations-card {
  /* Do not set overflow-x here: it forces overflow-y clipping and cuts header tips. */
  max-width: 100%;
}

.network-destinations-table thead th {
  vertical-align: bottom;
  text-align: center;
}

.network-destinations-table thead th[rowspan="2"] {
  vertical-align: middle;
  text-align: left;
}

.network-destinations-table th,
.network-destinations-table td {
  text-align: left;
  padding: 0.5rem 0.6rem;
  border-bottom: 1px solid var(--border, #e5e7eb);
  vertical-align: middle;
}

.network-destinations-table > colgroup.inventory-pass-cols > .inv-col-primary,
.network-destinations-table > colgroup.inventory-pass-cols > .inv-col-type,
.network-destinations-table > colgroup.inventory-pass-cols > .inv-col-category {
  width: 18%;
}

.network-destinations-table > colgroup.inventory-pass-cols > .inv-col-pass {
  width: 15.333%;
}

.network-destinations-table .network-destination-host,
.network-destinations-table th.network-destinations-head-host,
.network-destinations-table .storage-entry-key,
.network-destinations-table th.storage-entries-head-key {
  overflow: visible;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.network-destinations-table .network-destination-kinds,
.network-destinations-table th.network-destinations-head-kinds,
.network-destinations-table .storage-entry-kind,
.network-destinations-table th.storage-entries-head-kind {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.network-destinations-table .network-destination-kinds,
.network-destinations-table th.network-destinations-head-kinds {
  color: var(--muted, #64748b);
  font-size: 0.86rem;
}

.network-destinations-table th.cookie-pass-col,
.network-destinations-table td.cookie-pass-indicator {
  text-align: center;
  vertical-align: middle;
}

.network-destinations-table thead th.network-destinations-head-passes-group {
  text-align: center;
  font-weight: 650;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.25;
  padding: 0.4rem 0.4rem 0.3rem;
  overflow: visible;
  background: color-mix(in srgb, var(--accent) 6%, var(--surface));
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 14%, var(--border));
}

.network-destinations-table thead .network-destinations-head-row-passes th {
  background: color-mix(in srgb, var(--accent) 4%, var(--surface));
  border-bottom-color: color-mix(in srgb, var(--accent) 12%, var(--border));
}

.network-destinations-table thead {
  position: relative;
  z-index: 3;
  overflow: visible;
}

.network-destinations-table thead th {
  overflow: visible;
}

.network-destinations-head-passes-group .observed-cookies-head-label {
  text-align: center;
  color: var(--muted);
  font-weight: 600;
}

/* Cancel .section-help's negative top margin when it is the first body child. */
.cookie-details-accordion .cookie-details-body > .section-help {
  margin-top: 0.85rem;
}

.network-destinations-head-passes-group .info-tip::after,
.network-destinations-head-kinds .info-tip::after {
  left: auto;
  right: 0;
  bottom: calc(100% + 0.55rem);
  top: auto;
  transform: none;
  white-space: pre-line;
  max-width: min(22rem, 18rem);
  z-index: 120;
}

/* Destination / Clé sit on the left edge — don't center tips (they get clipped). */
.network-destinations-table thead th.network-destinations-head-host .info-tip::after,
.network-destinations-table thead th.storage-entries-head-key .info-tip::after,
.storage-entries-table thead th.storage-entries-head-key .info-tip::after {
  left: 0;
  right: auto;
  transform: none;
  max-width: min(22rem, calc(100vw - 4rem));
  z-index: 120;
}

.network-destinations-head-kinds .observed-cookies-head-label {
  position: relative;
  display: inline-flex;
  align-items: flex-start;
  gap: 0.2rem;
  padding-right: 0;
  overflow: visible;
}

.network-destinations-head-kinds .info-tip {
  position: relative;
  top: 0.05rem;
}

.network-destinations-table thead th.cookie-pass-col,
.network-destinations-table thead .network-destinations-head-row-passes th {
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  padding: 0.25rem 0.35rem;
  line-height: 1.15;
  vertical-align: top;
}

#network-destinations-table-wrap,
.network-destinations-table-wrap {
  /* Same as .observed-cookies-table-wrap: overflow-x ≠ visible would
     compute overflow-y to auto and clip upward header tips. */
  overflow: visible;
  max-width: 100%;
}

.network-destination-host-main {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.55rem;
  line-height: 1.25;
}

.network-destination-vendor {
  font-size: 0.78rem;
  font-weight: 550;
  color: var(--muted, #64748b);
}

/* Same UI face as the proof line — hierarchy via weight/size/color, not monospace. */
.network-destinations-table .network-destination-host-code,
.network-destinations-table .network-destination-host-main > code {
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1.25;
  color: var(--text);
  background: none;
  padding: 0;
  border-radius: 0;
}

.network-destination-host-code.has-tip,
.network-destination-script-label.has-tip,
.network-destination-example-path.has-tip {
  cursor: help;
}

.network-destination-proof {
  margin-top: 0.28rem;
  font-size: 0.72rem;
  line-height: 1.3;
  color: var(--muted, #64748b);
  font-weight: 400;
  font-family: inherit;
  letter-spacing: 0.01em;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.network-destination-script-label,
.network-destination-example-path {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}

/* Fixed to body — avoids overflow-x:clip clipping CSS ::after tips. */
.network-destination-float-tip {
  position: fixed;
  z-index: 1200;
  width: max-content;
  max-width: min(28rem, calc(100vw - 1rem));
  padding: 0.45rem 0.65rem;
  border-radius: 6px;
  background: color-mix(in srgb, var(--text) 92%, transparent);
  color: var(--bg);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  text-align: left;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  pointer-events: none;
}

.network-destination-float-tip.hidden {
  display: none;
}

.storage-entries-table .storage-entry-key,
.storage-entries-table th.storage-entries-head-key {
  text-align: left;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.storage-entries-table thead th.storage-entries-head-key .info-tip::after {
  left: 0;
  right: auto;
  transform: none;
}

.storage-entries-table .storage-entry-key code {
  display: inline-block;
  max-width: 100%;
  white-space: normal;
  word-break: break-all;
  overflow-wrap: anywhere;
}

.storage-entries-table .storage-entry-kind,
.storage-entries-table th.storage-entries-head-kind {
  white-space: normal;
}

#storage-entries-section.cookie-details-subsection {
  margin-top: 0.85rem;
}

#storage-entries-section.cookie-details-subsection:first-child,
.cookie-details-body > #storage-entries-section.cookie-details-subsection:only-child {
  margin-top: 0;
}

.cookie-details-subsection .cookie-summary-filters {
  margin-top: 0.15rem;
}

.cookie-details-subsection .observed-cookies-table tbody td,
.cookie-details-subsection .declared-cookies-table tbody td,
.cookie-details-subsection .network-destinations-table tbody td,
.cookie-details-subsection .storage-entries-table tbody td {
  vertical-align: middle;
}

.storage-entries-table th,
.storage-entries-table td {
  vertical-align: middle;
}

.cookie-details-subsection .observed-cookies-table thead th,
.cookie-details-subsection .declared-cookies-table thead th,
.cookie-details-subsection .network-destinations-table thead th,
.cookie-details-subsection .storage-entries-table thead th {
  background: color-mix(in srgb, var(--accent) 5%, var(--surface));
  border-bottom-color: color-mix(in srgb, var(--accent) 12%, var(--border));
}

.cookie-details-subsection .observed-cookies-table thead tr:first-child th:first-child,
.cookie-details-subsection .declared-cookies-table thead tr:first-child th:first-child,
.cookie-details-subsection .network-destinations-table thead tr:first-child th:first-child,
.cookie-details-subsection .storage-entries-table thead tr:first-child th:first-child {
  border-top-left-radius: 10px;
}

.cookie-details-subsection .observed-cookies-table thead tr:first-child th:last-child,
.cookie-details-subsection .declared-cookies-table thead tr:first-child th:last-child,
.cookie-details-subsection .network-destinations-table thead tr:first-child th:last-child,
.cookie-details-subsection .storage-entries-table thead tr:first-child th:last-child {
  border-top-right-radius: 10px;
}

.cookie-details-subsection .observed-cookies-table tbody tr:last-child td,
.cookie-details-subsection .declared-cookies-table tbody tr:last-child td,
.cookie-details-subsection .network-destinations-table tbody tr:last-child td,
.cookie-details-subsection .storage-entries-table tbody tr:last-child td {
  border-bottom: none;
}

.observed-cookies-table code.cookie-name {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  vertical-align: top;
  word-break: break-all;
}

#interaction-body th {
  width: 38%;
  overflow: visible;
}

#interaction-body th .info-tip::after {
  z-index: 100;
}

#interaction-body tr.interaction-row-warn td {
  color: var(--warn);
  background: color-mix(in srgb, var(--warn) 10%, transparent);
  border-top: 1px solid color-mix(in srgb, var(--warn) 30%, transparent);
  font-size: 0.92rem;
  font-weight: 500;
}

td code {
  font-size: 0.85em;
  background: color-mix(in srgb, var(--bg) 60%, transparent);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

#status-line {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.75rem;
}

#status-line.scanner-status:not(.hidden) {
  color: var(--text);
  margin-top: 0.95rem;
}

.empty-state {
  margin: 0;
  padding: 1rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
  border: 1px dashed var(--border);
  border-radius: 8px;
}

.empty-state.ok {
  border-color: color-mix(in srgb, var(--ok) 40%, transparent);
  color: var(--ok);
  background: color-mix(in srgb, var(--ok) 8%, transparent);
}

.empty-state.partial {
  border: 1px solid color-mix(in srgb, var(--warn) 30%, transparent);
  border-style: solid;
  color: var(--text);
  background: color-mix(in srgb, var(--warn) 10%, transparent);
  text-align: left;
}

.violation-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.recommendation-text .recommendation-steps {
  margin: 0.35rem 0 0;
  padding-left: 1.2rem;
  font-size: 0.95rem;
}

.recommendation-text .recommendation-steps > li + li {
  margin-top: 0.4rem;
}

.recommendation-text .recommendation-nested-steps {
  margin: 0.4rem 0 0.15rem;
  padding-left: 1.15rem;
  list-style: disc;
  font-size: 0.92rem;
  color: var(--text);
}

.recommendation-text .recommendation-nested-steps > li + li {
  margin-top: 0.35rem;
}

.recommendation-text .recommendation-nested-substeps {
  margin: 0.35rem 0 0.1rem;
  padding-left: 1.1rem;
  list-style: circle;
  font-size: 0.9rem;
}

.recommendation-text .recommendation-nested-substeps > li + li {
  margin-top: 0.25rem;
}

.violation-item {
  border: 1px solid var(--border);
  border-left-width: 3px;
  border-radius: 12px;
  padding: 1rem 1.15rem 1.05rem;
  background: color-mix(in srgb, var(--surface) 88%, var(--bg));
  min-width: 0;
  overflow: visible;
}

.violation-item.severity-critical {
  border-color: color-mix(in srgb, var(--critical) 28%, var(--border));
  border-left-color: var(--critical);
  background: color-mix(in srgb, var(--critical) 5%, var(--surface));
}

.violation-item.severity-high {
  border-color: color-mix(in srgb, var(--warn) 28%, var(--border));
  border-left-color: var(--warn);
  background: color-mix(in srgb, var(--warn) 5%, var(--surface));
}

.violation-item.severity-medium,
.violation-item.severity-low {
  border-left-color: color-mix(in srgb, var(--muted) 70%, var(--border));
}

.violation-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.violation-heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.28rem;
  min-width: 0;
  flex: 1 1 12rem;
}

.violation-family {
  display: inline-flex;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.2;
}

.violation-title {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.violation-explanation {
  margin: 0.65rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.violation-section-divider {
  display: none;
}

.violation-detail {
  margin: 0.75rem 0 0;
  font-size: 0.88rem;
}

.violation-detail + .violation-detail {
  margin-top: 0.7rem;
}

.violation-detail dt {
  display: block;
  margin: 0;
  font-weight: 650;
  color: var(--text);
  font-size: 0.82rem;
}

.violation-detail dd {
  display: block;
  margin: 0.28rem 0 0;
  margin-left: 0;
  padding-left: 0;
  color: var(--muted);
  line-height: 1.45;
}

.violation-detail dd .cookie-tags {
  margin-top: 0.15rem;
  overflow: visible;
}

.violation-recommendation {
  margin: 0.85rem 0 0;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--border));
  background: color-mix(in srgb, var(--accent) 7%, var(--surface));
}

.violation-recommendation .violation-detail {
  margin: 0;
}

.violation-recommendation .violation-detail dt {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text);
}

.violation-recommendation .recommendation-text {
  color: var(--text);
}

.violation-recommendation .recommendation-fix {
  margin: 0 0 0.55rem;
  padding: 0 0 0 0.65rem;
  border-left: 2px solid var(--accent);
  font-size: 0.9rem;
  font-weight: 450;
  line-height: 1.4;
  color: var(--text);
}

.violation-recommendation .recommendation-text-body {
  color: var(--text);
}

.recommendation-text-body {
  display: block;
  white-space: pre-line;
}

.violation-doc-link {
  margin: 0.65rem 0 0;
  font-size: 0.88rem;
}

.violation-doc-link a {
  color: var(--accent);
  text-decoration: none;
}

.violation-doc-link a:hover {
  text-decoration: underline;
}

.violation-page {
  margin: 0.75rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.violation-recommendation + .violation-detail,
.violation-recommendation + .violation-page {
  margin-top: 0.85rem;
}

.cookie-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.4rem;
  overflow: visible;
}

.cookie-tag {
  font-size: 0.8rem;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: var(--bg);
  border: 1px solid var(--border);
  font-family: ui-monospace, monospace;
  max-width: 100%;
  overflow-wrap: anywhere;
}

button.cookie-tag.cookie-crosslink {
  appearance: none;
  cursor: pointer;
  position: relative;
  overflow: visible;
  display: inline-flex;
  align-items: center;
  margin-left: 0;
  padding: 0.15rem 0.45rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 0.8rem;
  font-family: ui-monospace, monospace;
  font-weight: 400;
  line-height: 1.35;
  text-align: left;
  vertical-align: baseline;
}

button.cookie-tag.cookie-crosslink:hover:not(:disabled),
button.cookie-tag.cookie-crosslink:focus-visible:not(:disabled) {
  color: var(--text);
  background: color-mix(in srgb, var(--accent) 8%, var(--bg));
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  outline: 2px solid color-mix(in srgb, var(--accent, #2563eb) 55%, transparent);
  outline-offset: 1px;
}

td.cookie-tags {
  margin-top: 0;
}

tr.cookie-unknown td:last-child {
  color: var(--warn);
  font-weight: 600;
}

.cookie-statut {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.16rem 0.45rem 0.16rem 0.34rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  line-height: 1.2;
  white-space: nowrap;
  vertical-align: middle;
}

.cookie-statut-icon {
  width: 0.95em;
  height: 0.95em;
  flex-shrink: 0;
}

.cookie-statut-declared {
  color: color-mix(in srgb, var(--ok) 78%, var(--text));
  background: color-mix(in srgb, var(--ok) 10%, var(--surface));
  border-color: color-mix(in srgb, var(--ok) 18%, transparent);
}

.cookie-statut-missing {
  color: color-mix(in srgb, var(--warn) 78%, var(--text));
  background: color-mix(in srgb, var(--warn) 12%, var(--surface));
  border-color: color-mix(in srgb, var(--warn) 20%, transparent);
}

.cookie-statut-unevaluated {
  color: var(--muted);
  background: color-mix(in srgb, var(--muted) 8%, var(--surface));
  border-color: color-mix(in srgb, var(--muted) 14%, transparent);
  font-weight: 550;
}

.cookie-observed-label {
  font-weight: 400;
  white-space: nowrap;
}

.cookie-observed-yes {
  color: var(--text);
}

.cookie-observed-no {
  color: var(--muted);
}

.cookie-tags-collapsible {
  align-items: center;
  width: 100%;
  min-width: 0;
}

.cookie-tags-extra:not(.hidden) {
  display: contents;
}

.cookie-tags-more {
  font-size: 0.78rem;
  padding: 0.15rem 0.5rem;
  flex-shrink: 0;
}

.cookies-expand-row td {
  padding-top: 0.65rem;
  border-bottom: none;
}

.declared-list {
  margin-top: 0;
}

.declared-cookies-table-wrap {
  margin-top: 0;
  overflow: visible;
}

.declared-cookies-table td,
.declared-cookies-table th {
  vertical-align: middle;
  padding: 0.5rem 0.6rem;
}

.declared-cookies-table thead th {
  text-align: left;
  vertical-align: middle;
}

.declared-cookies-table {
  table-layout: fixed;
  font-size: 0.9rem;
}

/* Default = OneTrust / CMPs without Service column: compact Nom/Catégorie, Finalité wide. */
.declared-cookies-table .cookie-name-cell,
.declared-cookies-table thead th.cookie-declared-name-head,
.declared-cookies-table thead th:first-child {
  width: 7.5rem;
  max-width: 7.5rem;
}

.declared-cookies-table code.cookie-name {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  vertical-align: top;
  word-break: break-all;
}

.observed-cookies-table code.cookie-name-truncated,
.declared-cookies-table code.cookie-name-truncated {
  position: relative;
  cursor: help;
  overflow: visible;
}

.observed-cookies-table code.cookie-name-truncated::after,
.declared-cookies-table code.cookie-name-truncated::after {
  content: attr(data-tip);
  position: absolute;
  left: 0;
  bottom: calc(100% + 0.35rem);
  z-index: 60;
  width: max-content;
  max-width: min(28rem, calc(100vw - 2rem));
  padding: 0.45rem 0.65rem;
  border-radius: 6px;
  background: color-mix(in srgb, var(--text) 92%, transparent);
  color: var(--bg);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.4;
  white-space: normal;
  word-break: break-word;
  text-align: left;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.12s ease, visibility 0.12s ease;
}

.observed-cookies-table code.cookie-name-truncated:hover::after,
.observed-cookies-table code.cookie-name-truncated:focus-visible::after,
.declared-cookies-table code.cookie-name-truncated:hover::after,
.declared-cookies-table code.cookie-name-truncated:focus-visible::after {
  opacity: 1;
  visibility: visible;
}

.declared-cookies-table .cookie-declared-service-cell,
.declared-cookies-table thead th.cookie-declared-service-head {
  width: 7.5rem;
  max-width: 7.5rem;
  white-space: normal;
}

.declared-cookies-table .cookie-declared-service {
  font-weight: 550;
  color: var(--text);
  word-break: break-word;
  line-height: 1.35;
}

.declared-cookies-table .cookie-declared-category-cell,
.declared-cookies-table thead th.cookie-declared-category-head {
  width: 6.5rem;
  max-width: 6.5rem;
  min-width: 6.5rem;
  white-space: normal;
}

.declared-cookies-table .cookie-declared-purpose-cell,
.declared-cookies-table thead th.cookie-declared-purpose-head {
  width: 42%;
  min-width: 12rem;
}

/* Tarteaucitron (+ Service): slightly tighter fixed cols so Finalité keeps room. */
.declared-cookies-table.has-service-column .cookie-name-cell,
.declared-cookies-table.has-service-column thead th.cookie-declared-name-head,
.declared-cookies-table.has-service-column thead th:first-child {
  width: 7rem;
  max-width: 7rem;
}

.declared-cookies-table.has-service-column .cookie-declared-service-cell,
.declared-cookies-table.has-service-column thead th.cookie-declared-service-head {
  width: 7.25rem;
  max-width: 7.25rem;
}

.declared-cookies-table.has-service-column .cookie-declared-category-cell,
.declared-cookies-table.has-service-column thead th.cookie-declared-category-head {
  width: 6rem;
  max-width: 6rem;
}

.declared-cookies-table.has-service-column .cookie-declared-purpose-cell,
.declared-cookies-table.has-service-column thead th.cookie-declared-purpose-head {
  width: 34%;
  min-width: 10rem;
}

.declared-cookies-table .cookie-declared-retention-cell,
.declared-cookies-table thead th.cookie-declared-retention-head {
  width: 5.5rem;
  max-width: 5.5rem;
  white-space: nowrap;
}

.declared-cookies-table .cookie-declared-observed-cell,
.declared-cookies-table thead th.cookie-declared-observed-head {
  width: 3.75rem;
  max-width: 3.75rem;
  white-space: nowrap;
}

.declared-cookies-table .cookie-declared-purpose-wrap {
  position: relative;
  display: block;
  cursor: help;
  line-height: 1.35;
}

.declared-cookies-table .cookie-declared-purpose-text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  word-break: break-word;
  line-height: 1.35;
}

.declared-cookies-table .cookie-declared-purpose-wrap::after {
  content: attr(data-tip);
  position: absolute;
  left: 0;
  bottom: calc(100% + 0.4rem);
  top: auto;
  z-index: 50;
  width: max-content;
  max-width: min(24rem, calc(100vw - 2rem));
  padding: 0.45rem 0.65rem;
  border-radius: 6px;
  background: color-mix(in srgb, var(--text) 92%, transparent);
  color: var(--bg);
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.4;
  white-space: normal;
  text-align: left;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.12s ease, visibility 0.12s ease;
}

.declared-cookies-table .cookie-declared-purpose-wrap:hover::after,
.declared-cookies-table .cookie-declared-purpose-wrap:focus-visible::after {
  opacity: 1;
  visibility: visible;
}

.cookie-crosslink,
button.cookie-crosslink {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.2rem;
  padding: 0.05rem;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: color-mix(in srgb, var(--muted) 85%, transparent);
  font: inherit;
  font-weight: 400;
  cursor: pointer;
  vertical-align: top;
  line-height: 1;
}

/* Beat dashboard.css `button:hover:not(:disabled)` (accent fill). */
button.cookie-crosslink:hover:not(:disabled),
button.cookie-crosslink:focus-visible:not(:disabled) {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  outline: none;
}

.cookie-crosslink-icon {
  width: 0.95em;
  height: 0.95em;
  display: block;
}

.cookie-crosslink::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.45rem);
  top: auto;
  transform: translateX(-50%);
  z-index: 30;
  width: max-content;
  max-width: min(18rem, calc(100vw - 2rem));
  padding: 0.45rem 0.65rem;
  border-radius: 6px;
  background: color-mix(in srgb, var(--text) 92%, transparent);
  color: var(--bg);
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: normal;
  text-transform: none;
  white-space: normal;
  text-align: left;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.12s ease, visibility 0.12s ease;
}

/* Name column / violation tags sit near the left edge — don't center tips. */
.observed-cookies-table .cookie-name-cell .cookie-crosslink::after,
.declared-cookies-table .cookie-name-cell .cookie-crosslink::after,
button.cookie-tag.cookie-crosslink::after {
  left: 0;
  right: auto;
  transform: none;
  max-width: min(18rem, calc(100vw - 4rem));
}

.cookie-crosslink:hover::after,
.cookie-crosslink:focus-visible::after {
  opacity: 1;
  visibility: visible;
}

.cookie-row-highlight td {
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  transition: background-color 0.35s ease;
}

.declared-cookies-table .cookie-declared-missing {
  color: var(--warn);
  font-weight: 600;
}

.declared-cookies-table thead .observed-cookies-head-label {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.history-table tbody tr {
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.history-table tbody tr:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.history-table tbody tr:hover {
  background: color-mix(in srgb, var(--accent) 7%, var(--surface));
}

.history-table tbody tr.selected {
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
  box-shadow: inset 3px 0 0 var(--accent);
  outline: none;
}

.history-table tbody tr.history-row-failed {
  opacity: 0.58;
}

.history-table tbody tr.history-row-failed td {
  color: color-mix(in srgb, var(--text) 52%, var(--muted));
}

.history-table tbody tr.history-row-failed:hover {
  background: color-mix(in srgb, var(--accent) 5%, var(--bg));
}

.history-table tbody tr.history-row-failed.selected {
  opacity: 0.8;
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
}

.history-table .history-status-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: normal;
  line-height: 1.35;
  background: color-mix(in srgb, var(--muted) 14%, transparent);
  color: color-mix(in srgb, var(--muted) 88%, var(--text));
}

.history-table .history-status-badge.badge-full,
.history-table .history-status-badge.badge-partial,
.history-table .history-status-badge.badge-blocked,
.history-table .history-status-badge.badge-failed,
.history-table .history-status-badge.badge-pending,
.history-table .history-status-badge.badge-running {
  background: color-mix(in srgb, var(--muted) 14%, transparent);
  color: color-mix(in srgb, var(--muted) 88%, var(--text));
}

.history-table tbody tr.history-row-failed .history-status-badge.badge-failed {
  opacity: 1;
}

.history-table .history-score {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.history-table td .history-score-muted {
  color: var(--muted);
  font-weight: 400;
}

.history-table td .history-score-perfect {
  color: var(--ok);
}

.history-table td .history-score-warn {
  color: var(--warn);
}

.history-table td .history-score-bad {
  color: var(--bad);
}

#history-card.is-loading .history-table {
  opacity: 0.55;
}

.history-loading {
  margin: 0 0 0.5rem;
  color: var(--muted);
}

#history-page-loading {
  margin: 0.75rem 0 1rem;
}

#history-split.hidden,
#history-page-loading.hidden {
  display: none;
}

.history-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  margin: -0.35rem 0 1rem;
}

.history-summary-count {
  font-size: 0.9rem;
  color: var(--text);
}

.history-summary.is-message .history-summary-count {
  color: var(--muted);
}

.history-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.75rem;
  margin: 0;
  padding-top: 0;
  border-top: none;
}

.history-failures-hidden-count {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.3;
}

.history-failures-hidden-count.hidden {
  display: none;
}

.history-table-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-top: 0.45rem;
  padding-top: 0.45rem;
  border-top: 1px solid var(--border);
}

.history-table-footer.hidden {
  display: none;
}

.history-table-footer .history-filters.hidden {
  display: none;
}

.history-pagination {
  margin-left: auto;
}

.history-page-list {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
}

.history-page-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 2.05rem;
  padding: 0 0.1rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1;
  user-select: none;
}

.history-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.05rem;
  height: 2.05rem;
  padding: 0 0.45rem;
  border: 1px solid color-mix(in srgb, var(--border) 90%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 88%, var(--bg));
  color: var(--text);
  font: inherit;
  font-size: 0.86rem;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    color 0.15s ease,
    background-color 0.15s ease,
    box-shadow 0.15s ease;
}

.history-page-btn:hover:not(.is-current):not(:disabled) {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
}

.history-page-btn.is-current {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
  cursor: default;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--accent) 28%, transparent);
}

.history-page-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.history-filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.88rem;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}

.history-filter-toggle-label {
  line-height: 1.3;
}

.toggle-switch {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  width: 2.35rem;
  height: 1.35rem;
}

.toggle-switch input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 1;
}

.toggle-switch-slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--muted) 35%, var(--border));
  transition: background 0.15s ease;
}

.toggle-switch-slider::after {
  content: "";
  position: absolute;
  top: 0.15rem;
  left: 0.15rem;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  background: var(--surface, #fff);
  box-shadow: 0 1px 2px color-mix(in srgb, var(--text) 18%, transparent);
  transition: transform 0.15s ease;
}

.toggle-switch input:checked + .toggle-switch-slider {
  background: var(--accent);
}

.toggle-switch input:checked + .toggle-switch-slider::after {
  transform: translateX(1rem);
}

.toggle-switch input:focus-visible + .toggle-switch-slider {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.history-table-wrap {
  position: relative;
}

.history-sortable {
  white-space: nowrap;
}

.history-sort-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  margin: 0;
  padding: 0.15rem 0.25rem;
  border: 0;
  border-radius: 6px;
  background: none;
  color: inherit;
  font: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
}

.history-sort-btn:hover,
.history-sort-btn:focus-visible,
button.history-sort-btn:hover:not(:disabled),
button.history-sort-btn:focus-visible:not(:disabled) {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--text);
}

.history-sort-btn.is-active {
  color: var(--text);
}

.history-sort-indicator {
  display: inline-block;
  font-size: 0.78rem;
  line-height: 1;
  color: var(--accent);
}

.history-sort-indicator:empty {
  display: none;
}

.history-table tbody.is-refreshing {
  opacity: 0.65;
}

.history-actions {
  position: relative;
  text-align: right;
  white-space: nowrap;
  width: 3rem;
}

.history-menu-col {
  width: 3rem;
}

.history-row-menu {
  position: relative;
  display: inline-flex;
  justify-content: flex-end;
}

.history-row-menu-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin: 0;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}

.history-row-menu-trigger:hover,
.history-row-menu-trigger:focus-visible,
button.history-row-menu-trigger:hover:not(:disabled),
button.history-row-menu-trigger:focus-visible:not(:disabled),
button.history-row-menu-trigger[aria-expanded="true"] {
  border-color: var(--border);
  background: color-mix(in srgb, var(--surface) 88%, var(--text) 12%);
  color: var(--text);
}

.history-row-menu-panel {
  position: absolute;
  top: calc(100% + 0.25rem);
  right: 0;
  z-index: 20;
  min-width: 14.5rem;
  padding: 0.35rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14);
}

.history-row-menu-panel.hidden {
  display: none;
}

.history-row-menu-item {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0.55rem 0.7rem;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.88rem;
  text-align: left;
  cursor: pointer;
}

.history-row-menu-item.hidden {
  display: none;
}

.history-row-menu-item:hover:not(:disabled),
.history-row-menu-item:focus-visible:not(:disabled) {
  background: color-mix(in srgb, var(--surface) 82%, var(--accent) 18%);
}

.history-row-menu-item:disabled {
  color: var(--muted);
  cursor: not-allowed;
}

.history-row-menu-item-danger {
  color: #dc2626;
}

.history-row-menu-item-danger:hover:not(:disabled),
.history-row-menu-item-danger:focus-visible:not(:disabled) {
  background: color-mix(in srgb, #fef2f2 88%, #dc2626 12%);
}

.history-confirm-dialog {
  width: min(28rem, calc(100vw - 2rem));
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.18);
}

.history-confirm-dialog::backdrop {
  background: rgba(15, 23, 42, 0.45);
}

.history-confirm-dialog-body {
  padding: 1.15rem 1.2rem 1.05rem;
}

.history-confirm-dialog-body {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.history-confirm-dialog-body p {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.history-confirm-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.55rem;
}

.history-pagination.hidden {
  display: none;
}

.share-wrap {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.report-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.scan-detail-menu {
  margin-left: auto;
}

.scan-detail-menu .history-row-menu-panel {
  right: 0;
  left: auto;
}

#pdf-btn.hidden,
#share-btn.hidden {
  display: none;
}

.report-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.report-action-icon {
  display: inline-flex;
  flex: none;
  line-height: 0;
}

.report-action-label {
  line-height: 1.2;
}

#pdf-btn,
#share-btn {
  padding: 0.55rem 1rem;
  font-size: 0.95rem;
  cursor: pointer;
}

#pdf-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

#share-btn {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

#share-btn:hover:not(:disabled) {
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
}

#share-btn.is-copied {
  border-color: color-mix(in srgb, var(--ok) 40%, var(--border));
  background: color-mix(in srgb, var(--ok) 10%, var(--surface));
  color: color-mix(in srgb, var(--ok) 75%, var(--text));
}

#share-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.history-row-menu-item.is-copied {
  color: color-mix(in srgb, var(--ok) 78%, var(--text));
  font-weight: 650;
}

.report-action-feedback {
  margin-top: 0.65rem;
  font-size: 0.88rem;
  color: var(--ok);
  line-height: 1.45;
}

.report-action-feedback.is-neutral {
  color: var(--muted);
}

.report-action-feedback.is-error {
  color: var(--bad);
}

.report-action-feedback a {
  color: var(--accent);
}

.report-action-feedback .share-hint-note {
  color: var(--muted);
}

.report-actions-hint {
  margin-top: 0.85rem;
  padding: 0.75rem 0.95rem;
  border-radius: 8px;
  background: color-mix(in srgb, var(--muted) 8%, transparent);
  border: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.55;
}

.report-actions-hint-list {
  margin: 0;
  padding-left: 1.15rem;
}

.report-actions-hint-list li + li {
  margin-top: 0.4rem;
}

.report-actions-hint-list strong {
  color: var(--text);
  font-weight: 600;
}

.report-actions-hint-single {
  margin: 0;
}

.share-hint-links {
  margin-top: 0.35rem;
  word-break: break-all;
}

.share-hint-links a {
  color: var(--accent);
}

.share-hint-note {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.history-split-list .history-table-wrap {
  overflow-x: auto;
}

.layout--historique {
  max-width: 1400px;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* Scanner: keep the form narrow, match Historique width for scan detail */
.layout:not(.layout--historique) {
  max-width: 1400px;
  padding-left: 1rem;
  padding-right: 1rem;
}

.layout:not(.layout--historique) > header,
.layout:not(.layout--historique) > #scan-card,
.layout--scanner > #scan-card {
  max-width: 880px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

#history-card.card.historique-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.25rem 1.2rem 1.15rem;
  margin-bottom: 1.25rem;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--accent) 20%, var(--border));
  background:
    linear-gradient(
      165deg,
      color-mix(in srgb, var(--accent) 6%, var(--surface)) 0%,
      var(--surface) 48%
    );
  box-shadow:
    0 1px 2px color-mix(in srgb, var(--text) 5%, transparent),
    0 16px 36px color-mix(in srgb, var(--accent) 9%, transparent);
  animation: historique-panel-in 0.45s ease both;
}

@keyframes historique-panel-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  #history-card.card.historique-panel {
    animation: none;
  }
}

.history-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.55rem 0.75rem;
  padding: 0 0.15rem 0.85rem;
  margin: 0;
  border: none;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 75%, transparent);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.history-filter-bar.hidden {
  display: none;
}

.history-filter-bar .history-domain-select {
  margin-left: 0;
}

.history-zone {
  border: 1px solid color-mix(in srgb, var(--border) 88%, transparent);
  border-radius: 14px;
  background: color-mix(in srgb, var(--bg) 28%, var(--surface));
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--surface) 70%, transparent);
}

.history-zone-list,
.history-zone-chart {
  padding: 1rem 1.05rem 0.95rem;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.history-zone-list {
  overflow: visible;
}

.history-zone-list .history-zone-title {
  position: relative;
  z-index: 5;
  flex: 0 0 auto;
}

.history-zone-list .history-zone-title .info-tip {
  z-index: 6;
}

.history-zone-chart {
  overflow: visible;
}

.history-zone-chart .score-history-title-row {
  position: relative;
  z-index: 5;
  flex: 0 0 auto;
}

.history-zone-chart .score-history-title {
  position: relative;
  z-index: 5;
  flex: 0 0 auto;
}

.history-zone-chart .score-history-title .info-tip {
  z-index: 6;
}

.history-zone-chart .score-history-wrap,
.history-zone-chart .score-history-domain-view {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  flex: 1 1 auto;
  min-height: 0;
  overflow: visible;
}

.history-chart-head-spacer {
  flex: 0 0 auto;
  width: 100%;
}

.history-zone-chart .score-history-chart {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface) 70%, var(--bg));
  padding: 0.35rem 0.15rem 0.15rem;
}

.history-zone-chart .score-history-legend {
  flex: 0 0 auto;
  margin-top: 0.65rem;
}

.history-zone-list .history-table-wrap {
  flex: 0 0 auto;
  border: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
  border-radius: 10px;
  overflow-x: auto;
  overflow-y: visible;
  background: var(--surface);
}

.history-zone-list .history-table-footer {
  margin-top: auto;
  padding-top: 0.7rem;
  flex: 0 0 auto;
  border-top: 1px solid color-mix(in srgb, var(--border) 75%, transparent);
}

.history-zone-list .history-table {
  table-layout: fixed;
  font-size: 0.84rem;
  border-collapse: collapse;
  width: 100%;
  margin: 0;
}

.history-zone-list .history-table thead th {
  background: transparent;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 85%, transparent);
  overflow: hidden;
}

.history-zone-list .history-table th,
.history-zone-list .history-table td {
  padding: 0.42rem 0.45rem;
  line-height: 1.25;
  vertical-align: middle;
}

.history-zone-list .history-table tbody tr + tr td {
  border-top: 1px solid color-mix(in srgb, var(--border) 55%, transparent);
}

.history-zone-list .history-table th:first-child,
.history-zone-list .history-table td.history-site-col,
.history-zone-list .history-table td:first-child {
  width: auto;
  min-width: 0;
  overflow: visible;
  padding-left: 0.65rem;
  white-space: nowrap;
  vertical-align: middle;
}

.history-site-tip {
  display: inline-block;
  max-width: 100%;
  cursor: help;
  vertical-align: bottom;
}

.history-site-domain {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-site-float-tip {
  position: fixed;
  z-index: 1200;
  width: max-content;
  max-width: min(22rem, calc(100vw - 1rem));
  padding: 0.45rem 0.65rem;
  border-radius: 6px;
  background: color-mix(in srgb, var(--text) 92%, transparent);
  color: var(--bg);
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  text-align: left;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  pointer-events: none;
}

.history-site-float-tip.hidden {
  display: none;
}

.history-zone-list .history-table th:nth-child(2),
.history-zone-list .history-table td.history-date-col,
.history-zone-list .history-table th:nth-child(3),
.history-zone-list .history-table td:nth-child(3),
.history-zone-list .history-table th:nth-child(4),
.history-zone-list .history-table td:nth-child(4),
.history-zone-list .history-table th:nth-child(5),
.history-zone-list .history-table td:nth-child(5) {
  width: 5.6rem;
  max-width: 5.6rem;
  padding-left: 0.15rem;
  padding-right: 0.15rem;
  text-align: center;
}

.history-zone-list .history-table th.history-sortable {
  white-space: nowrap;
  text-align: center;
  overflow: visible;
}

.history-zone-list .history-table th.history-sortable .history-sort-btn {
  display: inline-flex;
  width: auto;
  max-width: none;
  margin: 0 auto;
  justify-content: center;
  align-items: center;
  gap: 0.15rem;
  white-space: nowrap;
  text-align: center;
  line-height: 1.2;
  padding: 0.15rem 0.2rem;
  box-sizing: border-box;
}

.history-zone-list .history-table th.history-sortable .history-sort-indicator {
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
  margin: 0;
}

.history-zone-list .history-table .history-menu-col,
.history-zone-list .history-table .history-actions {
  width: 2.25rem;
  max-width: 2.25rem;
  padding-left: 0.15rem;
  padding-right: 0.35rem;
}

.history-zone-list .history-table .history-row-menu-trigger {
  width: 1.5rem;
  height: 1.5rem;
  font-size: 1rem;
}

.history-zone-list .history-table .history-status-badge {
  padding: 0.14rem 0.45rem;
  font-size: 0.74rem;
  border-radius: 999px;
}

.history-zone-title,
.score-history-title {
  margin: 0 0 0.85rem;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.score-history-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.score-history-title-row .score-history-title {
  margin-bottom: 0;
  min-width: 0;
}

.score-history-controls {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  min-width: 0;
}

.score-history-period-wrap {
  flex: 0 0 auto;
  margin: 0;
}

.score-history-period-select {
  display: block;
  width: auto;
  min-width: 6.5rem;
  max-width: 11rem;
  appearance: none;
  -webkit-appearance: none;
  padding: 0.35rem 2rem 0.35rem 0.65rem;
  border: 1px solid color-mix(in srgb, var(--border) 90%, transparent);
  border-radius: 8px;
  background-color: var(--surface);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%235B6B85' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 0.8rem;
  color: inherit;
  font: inherit;
  font-size: 0.82rem;
  box-shadow: 0 1px 2px color-mix(in srgb, var(--text) 4%, transparent);
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.score-history-period-select:hover {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
}

.score-history-period-select:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}

.history-domain-filter {
  margin-bottom: 0;
}

.layout--historique .history-domain-select {
  width: auto;
  min-width: 12rem;
  max-width: 18rem;
}

.history-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 0.95rem;
  align-items: start;
}

.history-split-list,
.history-split-chart {
  min-width: 0;
}

.history-split-chart {
  position: sticky;
  top: 1rem;
}

.history-split.is-unavailable .history-split-chart {
  position: static;
  top: auto;
}

.history-split.is-unavailable .history-chart-head-spacer {
  display: none;
  height: 0 !important;
}

.history-split.is-unavailable .history-summary,
.history-split.is-unavailable .history-loading,
.history-split.is-unavailable .history-table-wrap,
.history-split.is-unavailable .history-table-footer,
.history-split.is-unavailable .score-history-chart,
.history-split.is-unavailable .score-history-legend,
.history-split.is-unavailable .score-history-controls,
.history-split.is-unavailable .score-history-title .info-tip {
  display: none !important;
}

.history-split.is-unavailable #history-empty,
.history-split.is-unavailable #score-history-empty {
  margin-top: 0;
}

.history-split-chart .score-history-wrap {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.history-split-chart .score-sparkline {
  max-width: none;
  width: 100%;
  height: auto;
  display: block;
  overflow: hidden;
}

.history-table .history-date-col {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-size: 0.82rem;
}

@media (max-width: 1024px) {
  .history-split {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .history-split-chart {
    position: static;
  }

  .history-split-chart .score-history-wrap {
    padding-top: 0;
    border-top: none;
  }
}

.history-domain-select {
  display: block;
  width: 100%;
  max-width: 360px;
  appearance: none;
  -webkit-appearance: none;
  padding: 0.5rem 2rem 0.5rem 0.7rem;
  border: 1px solid color-mix(in srgb, var(--border) 90%, transparent);
  border-radius: 9px;
  background-color: var(--surface);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%235B6B85' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.65rem center;
  background-size: 0.85rem;
  color: inherit;
  font: inherit;
  font-size: 0.9rem;
  box-shadow: 0 1px 2px color-mix(in srgb, var(--text) 4%, transparent);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.history-domain-select:hover {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
}

.history-domain-select:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}

.score-history-wrap {
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: visible;
}

.score-history-domain-view {
  position: relative;
  overflow: visible;
}

.score-history-title {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

.score-history-chart {
  width: 100%;
  overflow-x: auto;
  position: relative;
}

.score-history-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-top: 0.75rem;
}

.score-history-series-note {
  flex: 1 1 100%;
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--muted);
}

.score-history-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.score-history-legend-swatch {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  flex-shrink: 0;
}

.score-history-tooltip {
  position: absolute;
  z-index: 2;
  box-sizing: border-box;
  width: max-content;
  max-width: calc(100% - 1rem);
  padding: 0.5rem 0.85rem;
  border-radius: 6px;
  background: color-mix(in srgb, var(--text, #111) 92%, transparent);
  color: #fff;
  font-size: 0.82rem;
  line-height: 1.4;
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 8px));
  white-space: normal;
  text-align: center;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.score-sparkline {
  display: block;
  width: 100%;
  max-width: 720px;
  height: auto;
  overflow: visible;
}

.score-sparkline-grid {
  stroke: var(--border);
  stroke-width: 1;
}

.score-sparkline-axis-label {
  fill: var(--muted);
  font-size: 16px;
}

.score-sparkline-axis-title {
  fill: var(--muted);
  font-size: 16px;
  font-weight: 600;
}

.score-sparkline-value-label {
  fill: var(--text, #111);
  font-size: 12px;
  font-weight: 600;
  text-anchor: middle;
}

.score-sparkline-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.score-sparkline-point {
  fill: var(--accent);
  stroke: var(--card-bg, #fff);
  stroke-width: 2.5;
  cursor: pointer;
  transition: opacity 0.15s ease, stroke 0.15s ease, stroke-width 0.15s ease;
}

.score-sparkline-point.is-dimmed {
  opacity: 0.35;
}

.score-sparkline-point.is-highlighted {
  stroke: #111;
  stroke-width: 3;
  opacity: 1;
}

.score-sparkline-point:hover,
.score-sparkline-point:focus {
  fill: color-mix(in srgb, var(--accent) 75%, #000);
  outline: none;
}

.score-sparkline-point.is-dimmed:hover,
.score-sparkline-point.is-dimmed:focus {
  opacity: 0.6;
}

/* Landing free-tool presentation (same report component, teaser overlay only).
   Width matches Scanner/Historique (.layout max-width: 1400px) via .landing-scan-detail. */
.landing-report {
  max-width: none;
  width: 100%;
  margin: 0;
}

.landing-report.hidden {
  display: none !important;
}

/* Public shared report (/report/:token) — same component, no teaser. */
.share-report {
  max-width: none;
  width: 100%;
  margin: 0;
}

.share-report.hidden {
  display: none !important;
}

.landing-teaser-zone {
  margin-top: 0;
}

.landing-teaser-content {
  position: relative;
}

.landing-teaser-blur-block {
  position: relative;
  margin-top: 0.65rem;
}

.landing-teaser-blur-content {
  pointer-events: none;
  user-select: none;
}

.landing-teaser-blur-content .teaser-ghost,
.landing-teaser-blur-content .teaser-ghost-row {
  filter: blur(3.5px);
  opacity: 0.55;
}

.landing-teaser-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 1.25rem 1rem;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
  background: linear-gradient(
    to bottom,
    color-mix(in srgb, var(--bg) 20%, transparent),
    color-mix(in srgb, var(--bg) 88%, transparent) 40%,
    color-mix(in srgb, var(--bg) 96%, transparent) 100%
  );
  box-shadow: 0 8px 24px color-mix(in srgb, #000 7%, transparent);
  cursor: pointer;
}

.landing-teaser-overlay:hover .landing-teaser-overlay-title,
.landing-teaser-overlay:focus-visible .landing-teaser-overlay-title {
  color: var(--accent);
}

.landing-teaser-overlay-title {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.25;
}

.landing-teaser-overlay-subtitle {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.35;
}

.landing-teaser-zone > .scan-detail-disclaimer {
  margin: 0.75rem 0 1rem;
  text-align: center;
}

.landing-teaser-cta {
  margin-top: 0;
  padding: 0 0.25rem 0.5rem;
  text-align: center;
}

.landing-teaser-cta p {
  margin: 0 0 0.85rem;
  font-size: 0.98rem;
  color: var(--text);
}

.landing-teaser-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  padding: 0.75rem 1.4rem;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.25;
  box-sizing: border-box;
}

.landing-teaser-btn-title {
  font-size: 1rem;
  font-weight: 700;
}

.landing-teaser-btn-subtitle {
  font-size: 0.82rem;
  font-weight: 500;
  opacity: 0.92;
}

.landing-report .card {
  margin-bottom: 1rem;
}

.landing-report .scan-overview.card {
  margin-bottom: 1rem;
}

.landing-report .scan-overview-split {
  align-items: start;
}

.landing-report .scan-overview > .scan-gap-chips {
  margin-top: 0.55rem;
}

.landing-report .scan-score-teaser {
  display: none;
}

.landing-report #retry-scan-btn {
  margin-top: 0.75rem;
}

.score-breakdown-teaser {
  list-style: none;
  margin-top: 0.35rem;
}

.score-breakdown-teaser-link {
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
  font-weight: 500;
  cursor: pointer;
}

.score-breakdown-teaser-link:hover,
.score-breakdown-teaser-link:focus-visible {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.12em;
}
