.cache-path,
.poison-sequence,
.threshold-grid {
  display: grid;
  max-width: 900px;
  gap: 12px;
  margin: 32px 0;
}

.cache-path {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cache-path > div,
.poison-sequence > div,
.threshold-grid > div {
  position: relative;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--cyan) 6%, transparent), transparent 60%),
    color-mix(in srgb, var(--surface-solid) 74%, transparent);
}

.cache-path > div:not(:last-child)::after {
  position: absolute;
  top: 26px;
  right: -18px;
  z-index: 2;
  color: var(--cyan);
  font-family: var(--font-mono);
  content: "→";
}

.cache-path span,
.threshold-grid span {
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.52rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cache-path strong,
.threshold-grid strong {
  display: block;
  margin-top: 28px;
  color: var(--text);
  font-size: 0.82rem;
}

.cache-path p,
.threshold-grid p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.55;
}

.poison-sequence {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.poison-sequence > div {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 15px;
  border-color: color-mix(in srgb, #ff5c70 18%, var(--line));
}

.poison-sequence b {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid color-mix(in srgb, #ff5c70 34%, var(--line));
  border-radius: 10px;
  color: #ff8291;
  font-family: var(--font-mono);
  font-size: 0.62rem;
}

.poison-sequence p {
  margin: 0;
  color: var(--muted-strong);
  font-size: 0.72rem;
  line-height: 1.65;
}

.threshold-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.threshold-grid > div {
  min-height: 175px;
}

.threshold-grid .safe {
  border-color: color-mix(in srgb, var(--lime) 30%, var(--line));
}

.threshold-grid .safe span {
  color: var(--lime);
}

.threshold-grid .cautious {
  border-color: color-mix(in srgb, #ffb15c 30%, var(--line));
}

.threshold-grid .cautious span {
  color: #ffc17d;
}

.threshold-grid .blocked {
  border-color: color-mix(in srgb, #ff5c70 30%, var(--line));
}

.threshold-grid .blocked span {
  color: #ff8291;
}

@media (max-width: 900px) {
  .cache-path {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cache-path > div::after {
    display: none;
  }

  .threshold-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .cache-path,
  .poison-sequence {
    grid-template-columns: 1fr;
  }
}
