.assessment {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--cyan);
  border-radius: 12px;
  padding: 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px
}

.assessment h2 {
  font-size: 27px;
  margin: 8px 0
}

.assessment p {
  color: var(--muted);
  max-width: 690px
}

.assessment-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px
}

.assessment-bottom {
  display: flex;
  gap: 30px;
  flex-basis: 100%;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  font-size: 12px;
  color: var(--muted)
}

.domain-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px
}

.domain-card {
  grid-column: span 2;
  text-align: left;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
  min-height: 265px;
  transition: transform .18s, box-shadow .18s
}

.domain-card:nth-child(n+4) {
  grid-column: span 3
}

.domain-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 18px #172a4410;
  border-color: #b7cde8
}

.domain-number {
  position: absolute;
  right: 20px;
  top: 18px;
  font-size: 11px;
  color: #9aa9bb
}

.domain-card h3 {
  font-size: 15px;
  margin: 0 0 20px
}

.domain-value {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -1px
}

.domain-card p {
  font-size: 12px;
  color: var(--muted)
}

.domain-card p b {
  margin-left: 10px;
  color: var(--ink)
}

.domain-mini {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
  border-top: 1px solid #edf0f5;
  margin-top: 12px;
  padding-top: 10px
}

.domain-mini span {
  color: var(--muted)
}

.domain-statement {
  font-size: 20px;
  line-height: 1.5;
  max-width: 270px;
  color: #52677f
}

.view-details {
  margin-top: auto;
  padding-top: 20px;
  font-size: 12px;
  color: var(--blue);
  font-weight: 600
}

.finding-stack>div {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #edf0f5;
  font-size: 12px;
  flex-wrap: wrap
}

.finding-stack>div:last-child {
  border: 0
}

.finding-stack strong {
  min-width: 175px
}

.finding-dot {
  height: 7px;
  width: 7px;
  border: 2px solid var(--cyan);
  border-radius: 50%
}

.finding-stack .evidence-link {
  margin-left: auto
}

.regional-hero,
.traffic-hero {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 30px;
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: center
}

.regional-hero h2 {
  font-size: 44px;
  margin: 8px 0
}

.regional-hero>div>strong {
  font-size: 29px;
  display: block
}

.regional-hero>div>span:not(.eyebrow):not(.badge) {
  display: block;
  color: var(--muted);
  font-size: 12px
}

.rank-row {
  display: grid;
  grid-template-columns: 70px 1fr 90px;
  gap: 20px;
  align-items: center;
  padding: 14px 0;
  font-size: 12px
}

.rank-row .bar-track {
  height: 8px
}

.direction-hero {
  background: #edf4fa;
  border: 1px solid #d3e2ef;
  border-radius: 12px;
  padding: 28px;
  text-align: center
}

.direction-hero h2 {
  font-size: 28px;
  letter-spacing: .5px;
  margin: 8px 0
}

.direction-hero p {
  font-size: 12px;
  color: var(--muted)
}

.path-diagram {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 40px 20px
}

.path-node {
  min-width: 145px;
  border: 1px solid #d4e2ed;
  background: #f8fbfd;
  border-radius: 10px;
  padding: 20px;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 10px
}

.path-node strong {
  font-size: 24px
}

.path-node>span:not(.badge):not(.eyebrow) {
  font-size: 11px;
  color: var(--muted)
}

.path-end {
  color: var(--muted);
  font-weight: 600;
  font-size: 13px
}

.path-arrow {
  color: #809cb7;
  font-size: 25px
}

.path-bottom {
  display: flex;
  gap: 20px;
  justify-content: center;
  padding: 0 20px 30px
}

.path-bottom .path-node {
  min-width: 230px;
  background: white
}

.traffic-hero h2 {
  font-size: 48px;
  letter-spacing: -2px;
  margin: 8px 0
}

.traffic-hero p {
  color: var(--muted)
}

.traffic-delta {
  min-width: 45%;
}

.traffic-delta>strong {
  font-size: 28px;
  display: block
}

.traffic-delta>span {
  color: var(--muted);
  font-size: 12px
}

.ai-panel {
  padding: 26px;
  border: 1px solid #cbdced;
  border-radius: 12px;
  background: #f9fcff
}

.ai-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--blue);
  margin-bottom: 22px;
  flex-wrap: wrap
}

.ai-heading h2 {
  margin: 0
}

.ai-panel h3 {
  font-size: 13px;
  margin: 22px 0 6px
}

.ai-panel p {
  font-size: 13px;
  line-height: 1.8
}

.recommendation {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 18px;
  background: white
}

.recommendation h4 {
  margin: 0;
  font-size: 13px
}

.safeguard {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 20px
}

.safeguard+.safeguard {
  border-top: 1px solid var(--line)
}

.safeguard h3 {
  font-size: 14px
}

.safeguard p {
  margin: 4px 0;
  color: var(--muted);
  font-size: 12px
}

.welcome {
  text-align: center;
  padding: 38px 20px
}

.welcome-symbol {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border: 1px solid #cbdff2;
  border-radius: 18px;
  background: #eaf3fb;
  margin: 0 auto 22px;
  color: var(--blue)
}

.welcome-symbol .icon {
  width: 32px;
  height: 32px
}

.welcome h2 {
  font-size: 32px;
  letter-spacing: -.8px;
  margin: 12px 0
}

.welcome>p {
  max-width: 610px;
  margin: 0 auto;
  color: var(--muted);
  line-height: 1.8
}

.welcome-steps {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin: 32px 0;
  font-size: 11px;
  color: var(--muted)
}

.welcome-steps b {
  color: var(--blue);
  padding-right: 8px
}

.welcome-domains {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 34px 0
}

.welcome-domains button {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px 12px;
  display: flex;
  align-items: center;
  gap: 15px;
  flex-direction: column;
  transition: border .18s, transform .18s
}

.welcome-domains button:hover {
  border-color: #9bbfe7;
  transform: translateY(-2px)
}

.welcome-domains .icon {
  color: var(--blue);
  width: 25px;
  height: 25px
}

.welcome-domains strong {
  font-size: 12px
}

.welcome-domains span {
  font-size: 10px;
  color: var(--muted)
}

.welcome-note {
  font-size: 11px !important
}

.preview-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px
}

.preview-banner p {
  margin: 0
}

.session-item {
  display: block;
  background: transparent;
  text-align: left;
  border: 0;
  color: #afbdd0;
  width: 100%;
  padding: 9px 8px;
  border-radius: 5px;
  font-size: 10px;
  overflow: hidden
}

.session-item:hover {
  background: #ffffff0b
}

.session-item strong {
  display: block;
  color: #e3eaf4;
  font-size: 11px
}

.session-item span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap
}

.table-scroll td small {
  display: block;
  color: var(--muted);
  font-size: 10px
}

.table-scroll .evidence-link {
  display: block;
  margin-top: 5px
}

.kv dd {
  overflow-wrap: anywhere
}

.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px
}

.skeleton-card {
  height: 240px;
  border-radius: 12px
}

.run-note {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 20px;
  color: var(--muted);
  font-size: 13px
}

.copy-button {
  margin-left: auto
}

@media(max-width:1100px) {
  .welcome-domains {
    grid-template-columns: repeat(3, 1fr)
  }

  .path-diagram {
    gap: 12px
  }

  .path-node {
    min-width: 120px;
    padding: 16px
  }

  .domain-mini {
    flex-wrap: wrap
  }

  .comparison-row {
    gap: 5px !important
  }
}

@media(max-width:780px) {

  .domain-card,
  .domain-card:nth-child(n+4) {
    grid-column: span 3
  }

  .welcome-steps {
    flex-direction: column;
    gap: 12px
  }

  .path-diagram {
    flex-wrap: wrap
  }

  .regional-hero,
  .traffic-hero {
    flex-wrap: wrap
  }

  .traffic-delta {
    width: 100%
  }

  .assessment h2 {
    font-size: 23px
  }

  .assessment-meta {
    align-items: flex-start
  }

  .assessment-bottom {
    flex-direction: column;
    gap: 8px
  }
}

@media(max-width:620px) {

  .domain-card,
  .domain-card:nth-child(n+4) {
    grid-column: span 6
  }

  .welcome {
    padding: 24px 0
  }

  .welcome h2 {
    font-size: 27px
  }

  .welcome-domains {
    grid-template-columns: repeat(2, 1fr)
  }

  .path-bottom {
    flex-direction: column
  }

  .path-end,
  .path-arrow {
    display: none
  }

  .path-diagram {
    display: grid;
    grid-template-columns: 1fr 1fr
  }

  .preview-banner {
    flex-direction: column;
    align-items: flex-start
  }

  .skeleton-grid {
    grid-template-columns: 1fr
  }

  .finding-stack .evidence-link {
    margin-left: 0
  }
}

.bar-fill {
  display: block
}

.comparison-row b {
  font-size: 10px;
  color: #415772;
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap
}

.quality-row small {
  display: block;
  color: var(--muted);
  font-size: 10px
}

.quality-numbers span {
  color: var(--ink)
}

.filters {
  margin-bottom: 18px
}

.skeleton.skeleton-card {
  height: 240px
}

.run-note .spinner,
.notice .spinner {
  border-color: #b8cde5;
  border-top-color: var(--blue)
}

.toggle-track {
  pointer-events: none
}
