.graph-5w__eyebrow {
  margin: 0 0 0.65rem;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.graph-5w-overview {
  display: grid;
  gap: 1rem;
}

.graph-5w-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.85rem;
}

.graph-5w-stat {
  padding: 1rem 1.05rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(8, 12, 24, 0.42);
}

.graph-5w-stat__label {
  display: block;
  margin-bottom: 0.45rem;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.graph-5w-stat strong {
  font-size: 1.15rem;
}

.graph-5w-notice {
  margin: 0;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background: rgba(255, 208, 104, 0.12);
  border: 1px solid rgba(255, 208, 104, 0.24);
}

.graph-5w-panel {
  display: grid;
  gap: 1rem;
}

.graph-5w-toolbar {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.9fr);
}

.graph-5w-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.graph-5w-filter {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
}

.graph-5w-filter input {
  margin: 0;
}

.graph-5w-filter strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.75rem;
  min-height: 1.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
}

.graph-5w-highlight {
  padding: 1rem 1.1rem;
  border-radius: 18px;
  border: 1px solid rgba(122, 162, 255, 0.28);
  background: linear-gradient(135deg, rgba(36, 54, 110, 0.42), rgba(14, 20, 42, 0.72));
}

.graph-5w-highlight__label {
  margin: 0 0 0.5rem;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.graph-5w-highlight h2 {
  margin: 0 0 0.45rem;
  font-size: 1.08rem;
}

.graph-5w-highlight p:last-child {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
}

.graph-5w-stage {
  position: relative;
  min-width: 0;
  padding: 0.85rem;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at top, rgba(79, 134, 255, 0.08), transparent 40%),
    rgba(5, 9, 18, 0.82);
  overflow: hidden;
}

.graph-5w-svg {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 540px;
  height: auto;
}

.graph-5w-svg.is-dragging {
  user-select: none;
}

.graph-5w-svg__node {
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.graph-5w-svg__node.is-dragging {
  cursor: grabbing;
}

.graph-5w-svg__heading {
  fill: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.graph-5w-svg__edge {
  fill: none;
  stroke: rgba(152, 190, 255, 0.62);
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: stroke;
}

.graph-5w-svg__edge--strongest {
  stroke: rgba(255, 213, 95, 0.92);
}

.graph-5w-svg__node-title {
  fill: rgba(255, 255, 255, 0.96);
  font-size: 13px;
  font-weight: 700;
}

.graph-5w-svg__node-meta {
  fill: rgba(255, 255, 255, 0.72);
  font-size: 10px;
}

.graph-5w-highlight h2,
.graph-5w-relations__header h2,
.graph-5w-nodes__item strong,
.graph-5w-scope__list a,
#graph-5w-description {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.graph-5w-empty {
  margin: 0;
  padding: 0.85rem 1rem 0.1rem;
  color: rgba(255, 255, 255, 0.72);
}

.graph-5w-relations {
  display: grid;
  gap: 1rem;
}

.graph-5w-relations__item {
  padding: 1.1rem 1.15rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(8, 12, 24, 0.4);
}

.graph-5w-relations__item--strongest {
  border-color: rgba(255, 213, 95, 0.4);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.22);
}

.graph-5w-relations__header {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 0.55rem;
}

.graph-5w-relations__types {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.graph-5w-relations__header h2 {
  margin: 0;
  font-size: 1.06rem;
}

.graph-5w-relations__meta {
  margin: 0 0 0.9rem;
  color: rgba(255, 255, 255, 0.82);
}

.graph-5w-relations__articles h3 {
  margin: 0 0 0.75rem;
  font-size: 0.98rem;
}

.graph-5w-nodes {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.graph-5w-nodes__group {
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(8, 12, 24, 0.38);
}

.graph-5w-nodes__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.graph-5w-nodes__header h2 {
  margin: 0;
  font-size: 1rem;
}

.graph-5w-nodes__header span {
  color: rgba(255, 255, 255, 0.68);
}

.graph-5w-nodes__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.8rem;
}

.graph-5w-nodes__item {
  display: grid;
  gap: 0.25rem;
}

.graph-5w-nodes__item span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
}

.graph-5w-scope__list a {
  min-width: 0;
}

@media (max-width: 900px) {
  .graph-5w-toolbar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .graph-5w-stage {
    padding: 0.65rem;
  }

  .graph-5w-svg {
    min-height: 460px;
  }

  .graph-5w-filter {
    width: 100%;
    justify-content: space-between;
  }
}
